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

LoadError: UndefVarError: CUDAnative not defined #67

Closed
cossio opened this issue Apr 27, 2020 · 13 comments
Closed

LoadError: UndefVarError: CUDAnative not defined #67

cossio opened this issue Apr 27, 2020 · 13 comments

Comments

@cossio
Copy link

cossio commented Apr 27, 2020

┌ Warning: Error requiring ReverseDiff from DistributionsAD:
│ LoadError: LoadError: UndefVarError: CUDAnative not defined
│ Stacktrace:
│  [1] top-level scope at /home/cossio/.julia/packages/DistributionsAD/0NPGX/src/reversediffx.jl:458
│  [2] eval(::Module, ::Any) at ./boot.jl:331
│  [3] top-level scope at /home/cossio/.julia/packages/DistributionsAD/0NPGX/src/reversediffx.jl:460
│  [4] include(::Module, ::String) at ./Base.jl:377
│  [5] include(::String) at /home/cossio/.julia/packages/DistributionsAD/0NPGX/src/reversediff.jl:1
│  [6] top-level scope at /home/cossio/.julia/packages/DistributionsAD/0NPGX/src/reversediff.jl:41
│  [7] include(::Module, ::String) at ./Base.jl:377
│  [8] include(::String) at /home/cossio/.julia/packages/DistributionsAD/0NPGX/src/DistributionsAD.jl:1
│  [9] top-level scope at /home/cossio/.julia/packages/DistributionsAD/0NPGX/src/DistributionsAD.jl:59
│  [10] eval at ./boot.jl:331 [inlined]
│  [11] eval at /home/cossio/.julia/packages/DistributionsAD/0NPGX/src/DistributionsAD.jl:1 [inlined]
│  [12] (::DistributionsAD.var"#362#366")() at /home/cossio/.julia/packages/Requires/qy6zC/src/require.jl:85
│  [13] err(::Any, ::Module, ::String) at /home/cossio/.julia/packages/Requires/qy6zC/src/require.jl:42
│  [14] (::DistributionsAD.var"#361#365")() at /home/cossio/.julia/packages/Requires/qy6zC/src/require.jl:84
│  [15] withpath(::Any, ::String) at /home/cossio/.julia/packages/Requires/qy6zC/src/require.jl:32
│  [16] (::DistributionsAD.var"#360#364")() at /home/cossio/.julia/packages/Requires/qy6zC/src/require.jl:83
│  [17] #invokelatest#1 at ./essentials.jl:712 [inlined]
│  [18] invokelatest at ./essentials.jl:711 [inlined]
│  [19] foreach at ./abstractarray.jl:1919 [inlined]
│  [20] loadpkg(::Base.PkgId) at /home/cossio/.julia/packages/Requires/qy6zC/src/require.jl:22
│  [21] #invokelatest#1 at ./essentials.jl:712 [inlined]
│  [22] invokelatest at ./essentials.jl:711 [inlined]
│  [23] _tryrequire_from_serialized(::Base.PkgId, ::UInt64, ::Nothing) at ./loading.jl:715
│  [24] _require_from_serialized(::String) at ./loading.jl:743
│  [25] _require(::Base.PkgId) at ./loading.jl:1039
│  [26] require(::Base.PkgId) at ./loading.jl:927
│  [27] require(::Module, ::Symbol) at ./loading.jl:922
│  [28] include(::Module, ::String) at ./Base.jl:377
│  [29] include(::String) at /home/cossio/.julia/packages/SafeTestsets/A83XK/src/SafeTestsets.jl:23
│  [30] top-level scope at /home/cossio/work/RBMpro/jl/RestrictedBoltzmannMachines.jl/test/runtests.jl:3
│  [31] top-level scope at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.4/Test/src/Test.jl:1113
│  [32] top-level scope at /home/cossio/work/RBMpro/jl/RestrictedBoltzmannMachines.jl/test/runtests.jl:3
│  [33] eval(::Module, ::Any) at ./boot.jl:331
│  [34] top-level scope at /home/cossio/.julia/packages/SafeTestsets/A83XK/src/SafeTestsets.jl:23
│  [35] include(::String) at ./client.jl:439
│  [36] top-level scope at none:6
│  [37] eval(::Module, ::Any) at ./boot.jl:331
│  [38] exec_options(::Base.JLOptions) at ./client.jl:264
│  [39] _start() at ./client.jl:484
│ in expression starting at /home/cossio/.julia/packages/DistributionsAD/0NPGX/src/reversediffx.jl:458
│ in expression starting at /home/cossio/.julia/packages/DistributionsAD/0NPGX/src/reversediff.jl:41
└ @ Requires ~/.julia/packages/Requires/qy6zC/src/require.jl:44
@mohamed82008
Copy link
Member

This is weird, I am pretty sure we do nothing with CUDAnative in DistributionsAD.

@cossio
Copy link
Author

cossio commented Apr 27, 2020

It's weird. I keep seeing this warning when running tests for a package. But I don't see the warning when using DistributionsAD. I'm not sure what is going on.

@mohamed82008
Copy link
Member

Any chance Revise is loaded?

@cossio
Copy link
Author

cossio commented Apr 27, 2020

Any chance Revise is loaded?

No.

Here are the packages that are loaded: https://gist.github.com/cossio/5250d893600443690a2344ea5d5c9731

@cossio
Copy link
Author

cossio commented Apr 30, 2020

I keep getting this warning. Any idea what is going on? I can provide more info if needed.

@mohamed82008
Copy link
Member

I will take a look in a bit.

@mohamed82008
Copy link
Member

Could you please tell me what you load exactly in what order to get this warning?

@mohamed82008
Copy link
Member

Also please try it with the branch mt/neurips2.

@cossio
Copy link
Author

cossio commented Apr 30, 2020

On a clean session, this triggers the warning:

using ReverseDiff, Flux, DistributionsAD

I have these versions: Flux v0.10.4, DiffResults v1.0.2, DistributionsAD v0.5.0.
Julia 1.4.1.

@cossio
Copy link
Author

cossio commented Apr 30, 2020

Same thing happens with DistributionsAD#master and branch mt/neurips2.

@mohamed82008
Copy link
Member

Ok found the problem, will make a PR.

@yebai yebai closed this as completed in 27a0c26 Apr 30, 2020
yebai added a commit that referenced this issue Apr 30, 2020
@cossio
Copy link
Author

cossio commented Apr 30, 2020

Can you tag a release with this fix? @mohamed82008 @yebai
Thanks.

@mohamed82008
Copy link
Member

A new release will be made shortly after #70 is merged which should happen very soon.

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

No branches or pull requests

2 participants