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

Support for multiple GPUs #134

Open
thunterdb opened this issue Oct 26, 2017 · 0 comments
Open

Support for multiple GPUs #134

thunterdb opened this issue Oct 26, 2017 · 0 comments

Comments

@thunterdb
Copy link
Contributor

TensorFrames should be able to run tasks concurrently on separate GPUs, if they are available. This should be possible with the latest TensorFlow java API:
https://www.tensorflow.org/api_docs/java/reference/org/tensorflow/Session.html#Session(org.tensorflow.Graph, byte[])

Assuming that all the GPUs are available for running tasks, they can be locked onto specific sessions in python by using the following code:

config = tf.ConfigProto()
config.gpu_options.visible_device_list = "0" # Or different values
session = tf.Session(config=config)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant