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 GPUs? #6

Open
bilalsattar opened this issue Apr 20, 2020 · 1 comment
Open

How to use multiple GPUs? #6

bilalsattar opened this issue Apr 20, 2020 · 1 comment
Labels
enhancement New feature or request

Comments

@bilalsattar
Copy link

bilalsattar commented Apr 20, 2020

I have two GPUs in my machine. Is there a way to use multiple gpus for training? I can see training is not fully utilizing the GPU memory as well

@f90
Copy link
Owner

f90 commented Apr 20, 2020

Hey, parallel GPU usage should be a simple addition by wrapping the generator and discriminator(s) in a DataParallel module, for example in Image2Image.py. Do you want to make this addition yourself and then submit a pull request so I can add it to the codebase?

For GPU utilisation, it's true that some training loops are a bit GPU-starved because of slow data loading. This only applies to some tasks I think though - which one are you trying? We could investigate together how to speed things up in this regard.

@f90 f90 added the enhancement New feature or request label Apr 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants