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

have problem to run on GPU. CUDA8.0+cudnn5+4 * 1080ti GPU #822

Open
Juicechen95 opened this issue Apr 14, 2018 · 0 comments
Open

have problem to run on GPU. CUDA8.0+cudnn5+4 * 1080ti GPU #822

Juicechen95 opened this issue Apr 14, 2018 · 0 comments

Comments

@Juicechen95
Copy link

My torch code always running on the CPU, not on the GPU.
In my code, I have put my model and tensor on cuda using ':cuda()' and use 'cutorch.setDevice(GPU_num)'.
when I run in the terminal, I add 'CUDA_VISIBLE_DEVICES=1' before th command.
But my code still fails to run on the GPU well. It uses up all the CPU kernels and GPU-Util is always 0.
During the training time, each epoch sometimes takes 0.5s, while sometimes takes 2s,10s.
The running speed is highly relative to the cpu.
I thought the reason would be that my code is running both on CPU and GPU, how can I make it to run on GPU only?

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

1 participant