# CuArrays deprecated?

**URL:** https://discourse.julialang.org/t/cuarrays-deprecated/43064
**Category:** GPU
**Created:** [July 14, 2020, 4:48pm UTC](https://discourse.julialang.org/t/cuarrays-deprecated/43064 "2020-07-14T16:48:33Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Ferran\_Mazzanti](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ferran_mazzanti/32/7458_2.png) [@Ferran\_Mazzanti](https://discourse.julialang.org/u/Ferran_Mazzanti)
#### Post date: [July 14, 2020, 4:48pm UTC](https://discourse.julialang.org/t/cuarrays-deprecated/43064/1 "2020-07-14T16:48:33Z")

</div>

Hi,  
I’ve just realized that CuArrays seems to be deprecated in favour of CUDA.jl.  
Now I tried

```julia
add CUDA

```

and failed, but did work

```julia
add CUDA.jl

```

why the .jl? Anyway it is not critical… Still I have lots of code lines written  
with CuArrays, and was wondering if sentences like

```julia
CuArrays.zeros(100)

```

will cease to work. If that was the case I’ll be in big trouble…  
Hopefully somebody can explain the status of things now?

Thanks in advance,

Ferran.

---

<div class="post-metadata">

### Author: ![ToucheSir](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/touchesir/32/14411_2.png) [@ToucheSir](https://discourse.julialang.org/u/ToucheSir)
#### Post date: [July 14, 2020, 5:42pm UTC](https://discourse.julialang.org/t/cuarrays-deprecated/43064/2 "2020-07-14T17:42:51Z")

</div>

`add CUDA` should work, just tried it locally. I would try it in a fresh project and post any errors here/on GitHub if you still run into them.

> Still I have lots of code lines written  
> with CuArrays, and was wondering if sentences like…

I believe most all of the CuArrays interface should be exported under the CUDA namespace now. Porting should be a simple find-and-replace (e.g. just tested `CuArrays.zeros` → `CUDA.zeros`)

> Hopefully somebody can explain the status of things now?

You can safely get rid of CuArrays, CUDAnative, CUDAdrv and CUDAapi now! See [this announcement](https://discourse.julialang.org/t/psa-cuda-jl-replacing-cuarrays-jl-cudanative-jl-cudadrv-jl-cudaapi-jl-call-for-testing/40205).
