A newbie can not use CUDA by follow official DOC!

Please use appropriate markup for code blocks, your posts are hard to read otherwise. See Please read: make it easier to help you

As I said, there seems to be something up with your Julia, as it does not render the exception (anything in your startup.jl?)

Also, the error being thrown is one not known to the wrapped CUDA headers. Could you try the following to see the actual code:

julia> using CUDAdrv
[ Info: Precompiling CUDAdrv [c5f51814-7f29-56b8-a69c-e4d8f6be1fde]

julia> CUDAdrv.unsafe_cuCtxGetCurrent(Ref{CUDAdrv.CUcontext}())
CUDA_SUCCESS::cudaError_enum = 0x00000000

julia> Int(ans)
0
2 Likes