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 Run the Program on the Second GPU When the First GPU is Occupied? #93

Open
xiaosa269 opened this issue Sep 14, 2024 · 3 comments

Comments

@xiaosa269
Copy link

Hello, thank you very much for your work. My server has two GPUs, but the first one is currently in use by someone else. How can I configure your program to run on the second GPU?

@Gofinge
Copy link
Member

Gofinge commented Sep 18, 2024

# 0 - the first GPU; 1 - the second GPU
export CUDA_VISIBLE_DEVICES=1
sh script/train.sh -g 1 -d XXX -c XXX -n XXX

@SKY-LY777
Copy link

为啥显存在第二个GPU上训练,但是现存还是用第一张卡的?

@Gofinge
Copy link
Member

Gofinge commented Dec 3, 2024

环境问题千奇百怪,这个真只能靠自己排查了。通常情况下export CUDA_VISIBLE_DEVICES正确的话,不会出现这个问题。

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

3 participants