-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Strange device selection behaviour when PyGPU is installed #2546
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
Comments
Upon further inspection, I think I can narrow down the possible issues a little bit:
|
I also have the GPUArrayException with njobs >1. |
do you have multiple GPUs? |
no, just one. |
So |
Just tried setting Here is my setup:
Here is my code. In this example
Here is the output:
|
fyi the number of chain kwarg is |
@junpenglao thanks for the clarification. |
Does it work with that?
…On Thu, Feb 1, 2018 at 6:06 PM, Brian ***@***.***> wrote:
@junpenglao <https://github.com/junpenglao> thanks for the clarification.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#2546 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AApJmHps8kwFWy3AbPNFq8bsbD1sDo6xks5tQe8XgaJpZM4POycR>
.
|
yes |
@twiecki It Really Really Works! Thanks so much! |
I found that as long as I have run PyMC3 on GPU once, regardless of how I configure Theano (through .theanorc or using
os.environ['THEANO_FLAGS'] = 'device=cpu,floatX=float32'
to revert to CPU, as long as PyGPU is installed, as soon as I declare a PyMC3 model with tensor creation (e.g.W = pm.Normal("weights", mu=0, sd=1, shape=(n_types, M))
), Theano will automatically switch to GPU mode with the following message:Using cuDNN version 5110 on context None
Uninstalling PyGPU forces Theano to use CPU again.
Tested with master (
33c8bff
) version of PyMC3.Env packages:
Also, if I set
device=cuda
in .theanorc, PyMC3 raises assertion error when sampling (possible double device initialisation conflict?). This error does not occur if I setdevice=cpu
and let PyMC3 (or is it PyGPU?) default to the GPU.The text was updated successfully, but these errors were encountered: