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 use multiple GPU training? #201

Open
xdsonglinliu opened this issue Feb 13, 2019 · 1 comment
Open

How to use multiple GPU training? #201

xdsonglinliu opened this issue Feb 13, 2019 · 1 comment

Comments

@xdsonglinliu
Copy link

From the file REPRODUCE_RESULTS.md, We know the code to start training is python main.py -- train --pipeline_name unet_weighted

But how to use multiple GPU training?
I have two NVIDIA 1080 graphics cards, if I want use both of them at the same time in training, how should I set the parameters of the training command?

@jakubczakon
Copy link
Collaborator

@xdsonglinliu we are using DataParallel by default so all you need to do is go:

CUDA_VISIBLE_DEVICES=0,1,2,3 python main.py -- train --pipeline_name unet_weighted 

I hope this helps.

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