faster_rcnn_pytorch icon indicating copy to clipboard operation
faster_rcnn_pytorch copied to clipboard

why multiple cpus are used in .cuda() mode

Open volkancirik opened this issue 8 years ago • 8 comments

Hello,

I migrate the model to gpu. however it still uses cpu. any idea why that is the case?

thanks!

volkancirik avatar May 15 '17 03:05 volkancirik

Did you test nvidia-smi and check the gpu usage?

zhanghang1989 avatar May 15 '17 03:05 zhanghang1989

It is a submodule in my network. so both gpu and multiple cpus are active.

volkancirik avatar May 15 '17 03:05 volkancirik

Typically cpu handle the data preprocessing and communication with gpu.

zhanghang1989 avatar May 15 '17 03:05 zhanghang1989

Multiple cpus are used even rcnn is run in isolation.

volkancirik avatar May 15 '17 03:05 volkancirik

do you observe the same behavior?

volkancirik avatar May 15 '17 03:05 volkancirik

I haven't checked the cpu usage, but the training was okay on my workstation.

zhanghang1989 avatar May 15 '17 03:05 zhanghang1989

thanks for the prompt response, I'll close the issue if I can track it down.

volkancirik avatar May 15 '17 03:05 volkancirik

This program contains some codes which process data in CPU, like this: https://github.com/longcw/faster_rcnn_pytorch/blob/master/faster_rcnn/faster_rcnn.py#L120-L122

acgtyrant avatar May 18 '17 11:05 acgtyrant