Error when trying to install Julia on Google Colaboratory


I am trying to install Julia on Google Colaboratory and getting the following error

Updating `~/.julia/environments/v1.0/Project.toml`
  [3a865a2d] + CuArrays v0.9.1
  Updating `~/.julia/environments/v1.0/Manifest.toml`
  [621f4979] + AbstractFFTs v0.3.2
  [79e6a3ab] + Adapt v0.4.2
  [9e28174c] + BinDeps v0.8.10
  [3895d2a7] + CUDAapi v0.6.0
  [c5f51814] + CUDAdrv v1.0.1
  [be33ccc6] + CUDAnative v1.0.1
  [bbf7d656] + CommonSubexpressions v0.2.0
  [3a865a2d] + CuArrays v0.9.1
  [163ba53b] + DiffResults v0.0.4
  [b552c78f] + DiffRules v0.0.10
  [7a1cc6ca] + FFTW v0.2.4
  [1a297f60] + FillArrays v0.4.0
  [f6369f11] + ForwardDiff v0.10.3
  [0c68f7d7] + GPUArrays v0.6.1
  [929cbde3] + LLVM v1.0.0
  [1914dd2f] + MacroTools v0.4.5
  [872c559c] + NNlib v0.4.3
  [77ba4419] + NaNMath v0.3.2
  [189a3867] + Reexport v0.2.0
  [ae029012] + Requires v0.5.2
  [276daf66] + SpecialFunctions v0.7.2
  [90137ffa] + StaticArrays v0.10.3
  [30578b45] + URIParser v0.4.0
  Building SpecialFunctions → `~/.julia/packages/SpecialFunctions/fvheQ/deps/build.log`
  Building CUDAdrv ─────────→ `~/.julia/packages/CUDAdrv/JWljj/deps/build.log`
  Building LLVM ────────────→ `~/.julia/packages/LLVM/tPWXv/deps/build.log`
  Building CUDAnative ──────→ `~/.julia/packages/CUDAnative/Mdd3w/deps/build.log`
┌ Error: Error building `CUDAnative`: 
│ CUDA 10.1 is not supported by
│ your driver (which supports up to 10.0).
│ This is not a fatal error, but GPU functionality will be unavailable.
│ If you expected this to work, please open a thread on
└ @ Pkg.Operations /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.0/Pkg/src/Operations.jl:1068
  Building FFTW ────────────→ `~/.julia/packages/FFTW/p7sLQ/deps/build.log`
  Building CuArrays ────────→ `~/.julia/packages/CuArrays/PD3UJ/deps/build.log`
┌ Error: Error building `CuArrays`: 
│ Dependent package CUDAnative.jl has not been built successfully
└ @ Pkg.Operations /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.0/Pkg/src/Operations.jl:1068 

Is there a way to overcome this issue?
Thank you


CUDAapi.jl needs to be updated for CUDA 10.1:


Great! Thank you very much.

@maleadt would it be possible to add the likely next version changes (the present case being likely from 10.1 to 10.2 or 11.0) since I believe that the CUDA versions available are hardcoded in CUDAapi.jl and it is difficult to change this approach?


Other information, such as the supported devices and PTX ISAs, or the supported host compilers, also change with every CUDA version so it’s probably not worth doing so.