Cannot build CUDANative: CUDA toolkit at doesn't contain nvcc?


#1

Using Julia 1.0.1 on Windows 10, I tried to install CuArrays but one of the dependencies, CUDANative, couldn’t be built properly, how can I solve this?

julia> Pkg.build("CUDAnative")
  Building LLVM ──────→ `C:\Users\Seif\.julia\packages\LLVM\mcS4Y\deps\build.log`
  Building CUDAdrv ───→ `C:\Users\Seif\.julia\packages\CUDAdrv\LC5XS\deps\build.log`
  Building CUDAnative → `C:\Users\Seif\.julia\packages\CUDAnative\AGfq2\deps\build.log`
┌ Error: Error building `CUDAnative`:
│ ERROR: LoadError: CUDA toolkit at  doesn't contain nvcc
│ Stacktrace:
│  [1] error(::String) at .\error.jl:33
│  [2] find_toolkit_version(::Array{String,1}) at C:\Users\Seif\.julia\packages\CUDAapi\tF455\src\discovery.jl:268
│  [3] main() at C:\Users\Seif\.julia\packages\CUDAnative\AGfq2\deps\build.jl:114
│  [4] top-level scope at none:0
│  [5] include at .\boot.jl:317 [inlined]
│  [6] include_relative(::Module, ::String) at .\loading.jl:1041
│  [7] include(::Module, ::String) at .\sysimg.jl:29
│  [8] include(::String) at .\client.jl:388
│  [9] top-level scope at none:0
│ in expression starting at C:\Users\Seif\.julia\packages\CUDAnative\AGfq2\deps\build.jl:156
└ @ Pkg.Operations C:\cygwin\home\Administrator\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.0\Pkg\src\Operations.jl:1069

#2

I ran into the same problem, and had to install the CUDA toolkit: https://developer.nvidia.com/accelerated-computing-toolkit
and then it worked.