-
Notifications
You must be signed in to change notification settings - Fork 751
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
use CPUs or multiple GPUs for tensorflow linux-x86_64-gpu 1.5 #533
Comments
According to the documentation, that sounds like what it should be doing, yes:
https://www.tensorflow.org/programmers_guide/using_gpu It sounds like it will respect the GPU we specify, though:
|
It looks like if we set the "device count" to 0, it will in effect ignore any GPUs: |
Also, |
Ok, now we should be able to do something like the following to disable the GPU: ConfigProto configProto = new ConfigProto();
configProto.mutable_device_count().put(new BytePointer("GPU"), 0);
SessionOptions options = new SessionOptions();
options.config(configProto);
Session sess = new Session(options);
Status s = sess.Create(def);
... |
Hi,
I am using gpu version of tensorflow 1.5 (linux-x86_64-gpu). And I have two Titan X GPUs. Here are some thing I found confusing when running tensorflow:
use:
tensorflow.GraphDef def = new tensorflow.GraphDef();
tensorflow.SetDefaultDevice(device, def);
when "device" is "/cpu:0" or "/cpu:1" or ... etc., I found that GPU:0 is being used.
Does it mean that when using the gpu version, a gpu would definitely be used even when no gpu is appointed (when only cpus are appointed)?
If I have multiple sessions using "cpu:0" and "cpu:1" ... etc., are these sessions sharing one GPU in this case?
If there are ONLY two sessions appointed with "gpu:0" and "gpu:1" individually, are these two sessions running solely on it's own appointed GPU?
Thanks a lot,
Andy
The text was updated successfully, but these errors were encountered: