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

Does it unstable to use Multiple GPU per MPI Process? #163

Closed
johnkim126 opened this issue Feb 5, 2018 · 4 comments
Closed

Does it unstable to use Multiple GPU per MPI Process? #163

johnkim126 opened this issue Feb 5, 2018 · 4 comments
Labels

Comments

@johnkim126
Copy link

Hello, Great Team.

I knew that Horovod can execute tensorflow code with Multiple GPU.

In the usage, It looks like horovod recommended using GPU per process.
--> Pin a server GPU to be used by this process using config.gpu_options.visible_device_list. With the typical setup of one GPU per process, this can be set to local rank

So, Does it unstable to use Multiple GPU per MPI Process?

@alsrgv alsrgv added the question label Feb 5, 2018
@alsrgv
Copy link
Member

alsrgv commented Feb 5, 2018

@johnkim126, you can use multiple GPU per process - just make sure to change config.gpu_options.visible_device_list appropriately and manage data exchange between GPUs. E.g. see discussion / examples here - #96.

@johnkim126
Copy link
Author

@alsrgv Thanks.
I have another question.
Well, Keras code with multiple GPU code can use in Horovod?
-> using from keras.utils.training_utils import multi_gpu_model in Keras code
-> and remove config.gpu_options.visible_device_list and manage data exchange between GPUs.

@ppwwyyxx
Copy link
Contributor

from keras.utils.training_utils import multi_gpu_model does not scale, and that's one of the reason horovod is useful.

@johnkim126
Copy link
Author

@ppwwyyxx Okay, Thanks :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

3 participants