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

Multiple GPU #127

Open
Jbwasse2 opened this issue Jan 22, 2020 · 1 comment
Open

Multiple GPU #127

Jbwasse2 opened this issue Jan 22, 2020 · 1 comment

Comments

@Jbwasse2
Copy link

Can the use of multiple GPU be enabled? If so how?

@drasmuss
Copy link
Member

drasmuss commented Jan 23, 2020

You can switch between different GPUs by using the device parameter (e.g. nengo_dl.Simulator(net, device="/gpu:3")), but that's just running the model on one GPU at a time (although you could run separate model instances on separate GPUs in parallel). Runnning on multiple GPUs simultaneously (using e.g. tf.distribute.MirroredStrategy()) doesn't work at the moment, due to some incompatibilities between the Keras distribution strategy logic and some of the more unconventional Keras features used in Nengo DL. That might require changes upstream in TensorFlow/Keras. We're working on it though!

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

No branches or pull requests

2 participants