-
-
Notifications
You must be signed in to change notification settings - Fork 598
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
LoadError: LoadError: UndefVarError: libcudnn not defined #918
Comments
Likewise. I think the issue might be:
Flux#master has some more robust code for checking whether CUDA has loaded. But Flux#master relies on Zygote 3.4, which is broken due to another issue. Zygote 4.0 fixes that issue, but is incompatible with Flux#master. |
So I have to wait for an update then? |
I don't know. I don't work on Flux. And what I wrote may not actually be your error |
I don't think it's due to CUDAnative failing, CUDAnative passes all tests and I still have the error. CuArrays also passes all tests including Libcudnn related tests. |
The problem is this TODO that nobody fixed: Line 5 in 7104fd9
That constant went away a while ago, but there was a backwards-compatible definition. That definition is now also gone due to the changes in how CuArrays is loaded. For now, please downgrade to CuArrays 1.3, where this constant is still available. I've made a PR to retroactively add an upper bound to the current Flux release: JuliaRegistries/General#5066
No, CUDAnative should not fail to load. If it does, please file an issue. |
@maleadt The upper bound you added leads to Flux automatically being downgraded (while CuArrays is still being upgraded):
hence, the problem persists (at least for someone who isn't aware of what's going on behind the scenes):
|
Oh, and just for the record, downgrading to CuArrays 1.3 isn't straightforward either:
|
For what it's worth, a simple hack if you have |
Hm, I had hoped the resolver would react differently. In any case, it should prevent new users running into this, as IIUC it should prevent the upgrade in the first place. |
I actually downgraded to 1.3 and works perfectly for me |
@Sleort: Try downgrading CUDAdrv too
|
Yeah... I just figured out that CUDAnative was the one blocking the downgrade. Now I've got everything up and running again. Thanks! |
With #916 (fixing master) and JuliaRegistries/General#5066 (fixing 0.9) I think we can close this. |
Could you please provide the versions for CUDAapi, CUDAnative and Flux that won't result in any errors too? Currently my laptop has Julia v1.1.1, and the following
And it works fine with CUDA 9.0, and cuDNN 7.1.4. On the compute cluster which I don't have admin access, I used Julia 1.2.0 and the same versions for these 5 packages, but with CUDA 10.0.130 and cuDNN 7.6, and I keep getting this error message (both in Pkg.test("CuArrays") and during training, but Pkg.build() are successful for all):
Any help would be appreciated! |
I'm having the same problem as in #846 in Google colab when two weeks before It worked perfectly
The text was updated successfully, but these errors were encountered: