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

use_cuda=True时如何指定用哪块GPU #33

Closed
czy1747 opened this issue Jan 12, 2021 · 1 comment
Closed

use_cuda=True时如何指定用哪块GPU #33

czy1747 opened this issue Jan 12, 2021 · 1 comment

Comments

@czy1747
Copy link

czy1747 commented Jan 12, 2021

请问use_cuda=True模式时,怎么指定使用哪块GPU?

@zhangyimi
Copy link
Collaborator

默认使用的第0卡,但你可以通过CUDA_VISIBLE_DEVICES指定GPU,如os.environ["CUDA_VISIBLE_DEVICES"]='2'

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

2 participants