Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No works on GPU #4

Open
houpingx opened this issue Mar 7, 2019 · 9 comments
Open

No works on GPU #4

houpingx opened this issue Mar 7, 2019 · 9 comments

Comments

@houpingx
Copy link

houpingx commented Mar 7, 2019

Try to run the code on GPU. But it seems still on CPU.

@wwyi1828
Copy link

wwyi1828 commented Aug 1, 2019

me too

@uvipen
Copy link
Owner

uvipen commented Aug 28, 2019

I trained on GPU. Let check your gpu configuration. My code will automatically detect if gpu is available and if yes, the model will be trained on gpu

@TuringTrain
Copy link

Doesn't run on GPU for me as well, only CPU.
I tried both ways, calling .cuda() and .to('cuda') on the model and the tensors, no success.

The model and the tensors return is_cuda=True, still the GPU load is close to 0% and CPU load is 100%.

@kenny1109
Copy link

I found the reason why GPU load is so low that the dataloader processes data so slowly and GPU is always waiting.

@cindyhi
Copy link

cindyhi commented Apr 9, 2020

I found the reason why GPU load is so low that the dataloader processes data so slowly and GPU is always waiting.

can you share your found ? I've been troubled by this problem too, the model and the tensors return is_cuda=True, still the GPU load is 0%.

@cindyhi
Copy link

cindyhi commented Apr 9, 2020

I found the reason why GPU load is so low that the dataloader processes data so slowly and GPU is always waiting.

can you share your found ? I've been troubled by this problem too, the model and the tensors return is_cuda=True, still the GPU load is 0%.

i have set num_workers=8 and pin_memory=true in dataloader, but it doesn't work ,still the GPU load is 0%

@kenny1109
Copy link

kenny1109 commented Apr 9, 2020 via email

@cindyhi
Copy link

cindyhi commented Apr 9, 2020

@kenny1109 thanks, it's very nice of you

@yongchaoyan
Copy link

@kenny1109
did you slove that problem,i met the same problem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants