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

How to choose GPU #1 if you execute commands in conda env? #8

Closed
yyf17 opened this issue Jan 20, 2021 · 2 comments
Closed

How to choose GPU #1 if you execute commands in conda env? #8

yyf17 opened this issue Jan 20, 2021 · 2 comments

Comments

@yyf17
Copy link

yyf17 commented Jan 20, 2021

Ask a question:
If you execute the command in docker to select GPU #1:

NV_GPU=1 docker run ......

How to choose GPU #1 if you execute commands in conda env?

python3 src/main.py --config=......
@TonghanWang
Copy link
Owner

Hi! Sorry for the late reply!

I think you can try to export the environment variable CUDA_VISIBLE_DEVICES=x if you want to select GPU #x.

@yyf17
Copy link
Author

yyf17 commented Mar 8, 2021

@TonghanWang Thank You.

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