# UndefVarError: cuda\_version in Google Colab with CUDA.jl

**URL:** <https://discourse.julialang.org/t/undefvarerror-cuda-version-in-google-colab-with-cuda-jl/131557>\
**Category:** GPU\
**Tags:** question, colab\
**Created:** [August 12, 2025, 10:36am UTC](https://discourse.julialang.org/t/undefvarerror-cuda-version-in-google-colab-with-cuda-jl/131557 "2025-08-12T10:36:00Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![giordano](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/giordano/32/2166_2.png) [@giordano](https://discourse.julialang.org/u/giordano)\
**Post date:** [August 12, 2025, 10:57am UTC](https://discourse.julialang.org/t/undefvarerror-cuda-version-in-google-colab-with-cuda-jl/131557/2 "2025-08-12T10:57:14Z")

</div>

I suspect this is related to [Issues with Reactant unable to find GPU on Colab, but CUDA.jl can - #6 by giordano](https://discourse.julialang.org/t/issues-with-reactant-unable-to-find-gpu-on-colab-but-cuda-jl-can/129360/6). Try something like

```julia-auto
rm(joinpath(Base.DEPOT_PATH[1], "compiled", "v$(VERSION.major).$(VERSION.minor)", "CUDA_Compiler_jll"); recursive=true, force=true)
using CUDA
CUDA.versioninfo()

```

Does that solve the issue?

---

_[View the full topic](https://discourse.julialang.org/t/undefvarerror-cuda-version-in-google-colab-with-cuda-jl/131557)._
