handpose icon indicating copy to clipboard operation
handpose copied to clipboard

improper GPU utilization

Open ibrahimrazu opened this issue 5 years ago • 10 comments

Thanks a lot for sharing your code. While training the NYU dataset, seems like it is not utilizing GPU properly and training time is significantly higher. Could you please tell me how did you configure the GPU there? I tried to configure the GPU as following: It is noteworthy that i've checked the GPU are working, but utilization is pretty low, almost minimal

GPU_uti

GPU_uti1

ibrahimrazu avatar Jul 02 '19 20:07 ibrahimrazu

You are using cpu to train the model, so it must be very slow! I think there is somehing wrong about your gpu config. You shoud make sure that you can use tensorflow-gpu with right gput config ( like cuda cudnn)

dumyy avatar Jul 03 '19 14:07 dumyy

316MB is the memory that gpu is free.

dumyy avatar Jul 03 '19 14:07 dumyy

Thanks a lot for your advice. Yes, its working fine now. I have installed tensorflow-gpu at my conda environment. However, only one GPU is being utilized among all. I tried several combinations, but failed to assign the task to multi-gpus GPU_uti GPU_uti2

ibrahimrazu avatar Jul 03 '19 17:07 ibrahimrazu

Sorry, I have never used multi-gpu config to train the model, so maybe that I can't help you directly.

dumyy avatar Jul 04 '19 01:07 dumyy

No problem, thanks a lot! i'll post here if i can do that

ibrahimrazu avatar Jul 04 '19 13:07 ibrahimrazu

@ibrahimrazu did you figure out how to enable multi-gpu processing? @dumyy my GPU utilization is low, ranging between 15-30%. How would you parallelize and separate CPU/GPU tasks to maximize GPU utilization?

eparvizi avatar Jul 23 '19 20:07 eparvizi

@eparvizi not yet unfortunately. however my single GPU utilization is always highest. I tried with CUDA_VISIBLE_DEVICES=0,1,2,3 but it always uses the first GPU you mention.

ibrahimrazu avatar Jul 23 '19 21:07 ibrahimrazu

@ibrahimrazu have you tried this? https://www.tensorflow.org/guide/using_gpu#using_multiple_gpus

eparvizi avatar Jul 23 '19 21:07 eparvizi

Still not. But i’ll try. Thanks!

ibrahimrazu avatar Jul 23 '19 22:07 ibrahimrazu

@ibrahimrazu Hello, how does your program run on GPU? I did not find the program code in the following image in the source program. image

mslqing avatar Apr 26 '21 01:04 mslqing