Comments (4)
Could you run with JULIA_DEBUG=CUDAapi
? Where exactly is cudnn located?
from cudaapi.jl.
cudnn is located here:
/home/ibutter/anaconda3/pkgs/cudnn-7.3.1-cuda10.0_0/lib/libcudnn.so
/home/ibutter/anaconda3/pkgs/cudnn-7.3.1-cuda10.0_0/lib/libcudnn.so.7.3.1
/home/ibutter/anaconda3/pkgs/cudnn-7.3.1-cuda10.0_0/lib/libcudnn.so.7
/home/ibutter/anaconda3/lib/libcudnn.so
/home/ibutter/anaconda3/lib/libcudnn.so.7
/home/ibutter/anaconda3/lib/libcudnn.so.7.3.1
Running the above with JULIA_DEBUG=CUDAapi
Knet.gpuCount() = 8
Knet.gpu() = 3
Knet.tk = ["/usr/local/cuda-10.0"]
Knet.libknet8 = "/home/ibutter/.julia/packages/Knet/T1oum/deps/libknet8"
Knet.cudartfound = true
Knet.cudaRuntimeVersion = 10000
Knet.cudaDriverVersion = 10000
Knet.cudaGetDeviceCount() = 8
Knet.cudaGetDevice() = 3
Knet.cudaMemGetInfo() = (11604393984, 12621381632)
Knet.cudaDeviceSynchronize() = nothing
Knet.nvmlfound = true
Knet.nvmlDriverVersion = "410.93"
Knet.nvmlVersion = "10.410.93"
Knet.nvmlDeviceGetMemoryInfo() = (12621381632, 11604393984, 1016987648)
Knet.cublashandle() = Ptr{Nothing} @0x000000000fc025d0
Knet.cublasVersion = 10000
┌ Debug: Request to look for library cudnn
│ locations =
│ 1-element Array{String,1}:
│ "/usr/local/cuda-10.0"
└ @ CUDAapi ~/.julia/packages/CUDAapi/hv5e7/src/CUDAapi.jl:8
┌ Debug: Looking for library libcudnn.so, libcudnn.so.7, libcudnn.so.7.4, libcudnn.so.7.3, libcudnn.so.7.1, libcudnn.so.7.0, libcudnn.so.6, libcudnn.so.6.0, libcudnn.so.5, libcudnn.so.5.1, libcudnn.so.5.0, libcudnn.so.4, libcudnn.so.4.0, libcudnn.so.3, libcudnn.so.3.0, libcudnn.so.2, libcudnn.so.2.0, libcudnn.so.1, libcudnn.so.1.0
│ locations =
│ 3-element Array{String,1}:
│ "/usr/local/cuda-10.0"
│ "/usr/local/cuda-10.0/lib"
│ "/usr/local/cuda-10.0/lib64"
└ @ CUDAapi ~/.julia/packages/CUDAapi/hv5e7/src/CUDAapi.jl:8
gpu: Error During Test at /home/ibutter/.julia/packages/Knet/T1oum/test/gpu.jl:3
Got exception outside of a @test
Cannot find cudnn
Stacktrace:
[1] error(::String) at ./error.jl:33
[2] cudnnCreate() at /home/ibutter/.julia/packages/Knet/T1oum/src/gpu.jl:238
[3] cudnnhandle(::Int64) at /home/ibutter/.julia/packages/Knet/T1oum/src/gpu.jl:188
[4] cudnnhandle() at /home/ibutter/.julia/packages/Knet/T1oum/src/gpu.jl:182
[5] macro expansion at ./show.jl:555 [inlined]
[6] macro expansion at /home/ibutter/.julia/packages/Knet/T1oum/test/gpu.jl:28 [inlined]
[7] macro expansion at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.0/Test/src/Test.jl:1083 [inlined]
[8] top-level scope at /home/ibutter/.julia/packages/Knet/T1oum/test/gpu.jl:5
[9] include at ./boot.jl:317 [inlined]
[10] include_relative(::Module, ::String) at ./loading.jl:1044
[11] include(::Module, ::String) at ./sysimg.jl:29
[12] include(::String) at ./client.jl:392
[13] top-level scope at none:0
[14] eval(::Module, ::Any) at ./boot.jl:319
[15] eval_user_input(::Any, ::REPL.REPLBackend) at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.0/REPL/src/REPL.jl:85
[16] macro expansion at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.0/REPL/src/REPL.jl:117 [inlined]
[17] (::getfield(REPL, Symbol("##28#29")){REPL.REPLBackend})() at ./task.jl:259
Test Summary: | Error Total
gpu | 1 1
ERROR: LoadError: Some tests did not pass: 0 passed, 0 failed, 1 errored, 0 broken.
in expression starting at /home/ibutter/.julia/packages/Knet/T1oum/test/gpu.jl:3
from cudaapi.jl.
Yeah, that's a very custom path. You shouldn't expect CUDAapi to pick that up just like that.
We could add support for env vars to customize each library's location, but for now just set LD_LIBRARY_PATH
to /home/ibutter/anaconda3/lib
.
from cudaapi.jl.
Going to close this, since LD_LIBRARY_PATH
is a perfectly good way to influence find_cuda_library
(which falls back on Libdl.find_library
).
from cudaapi.jl.
Related Issues (20)
- Remove warning HOT 3
- @runtime_ccall thread safety HOT 5
- find_cuda_library("cudnn",tk) returns nothing HOT 4
- could not load library: "C:\Users\USER\.julia\artifacts\~~~\bin\cudnn64_7.dll" HOT 2
- Could not find nvToolsExt (libnvToolsExt.dylib.1.0 or libnvToolsExt.dylib.1) in /Users/imac/.julia/artifacts/b502baf54095dff4a69fd6aba8667124583f6929/lib HOT 1
- ERROR: Could not find a suitable GCC HOT 4
- Unable to find cudnn HOT 9
- Fix hardcoded CUDA versions to folder name autodetection? HOT 2
- macOS CI for CUDA 10+ HOT 1
- CI does not spot: libcudadevrt.lib is actually cudadevrt.lib on windows HOT 4
- find_library word_size
- Longer term goal with other CUDA libraries HOT 4
- Finding 8.0 files instead of 10.1 ones HOT 5
- CUDA discovery failing with 1.3.0-rc1 HOT 1
- Discovery fails if CUDA env vars are set to empty variable HOT 2
- Float64 HOT 1
- CUDA version warning throws MethodError: no method matching version()
- Sort paths from CUDAapi.find_toolkit() in the descending order? HOT 2
- find_host_compiler was removed, but is still exported
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cudaapi.jl.