# A newbie can not use CUDA by follow official DOC!

**URL:** <https://discourse.julialang.org/t/a-newbie-can-not-use-cuda-by-follow-official-doc/36010>\
**Category:** GPU\
**Created:** [March 15, 2020, 2:14pm UTC](https://discourse.julialang.org/t/a-newbie-can-not-use-cuda-by-follow-official-doc/36010 "2020-03-15T14:14:42Z")\
**Posts on this page:** 1\
**Showing post:** 13

<div class="post-metadata">

**Author:** ![maleadt](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/maleadt/32/10097_2.png) [@maleadt](https://discourse.julialang.org/u/maleadt)\
**Post date:** [April 22, 2020, 6:51am UTC](https://discourse.julialang.org/t/a-newbie-can-not-use-cuda-by-follow-official-doc/36010/13 "2020-04-22T06:51:39Z")

</div>

Please use appropriate markup for code blocks, your posts are hard to read otherwise. See [Please read: make it easier to help you](https://discourse.julialang.org/t/psa-make-it-easier-to-help-you/14757)

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
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

```

---

_[View the full topic](https://discourse.julialang.org/t/a-newbie-can-not-use-cuda-by-follow-official-doc/36010)._
