# Add CUDA adds v0.1

**URL:** <https://discourse.julialang.org/t/add-cuda-adds-v0-1/43032>\
**Category:** GPU\
**Created:** [July 14, 2020, 10:45am UTC](https://discourse.julialang.org/t/add-cuda-adds-v0-1/43032 "2020-07-14T10:45:40Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![HenriDeh](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/henrideh/32/8316_2.png) [@HenriDeh](https://discourse.julialang.org/u/HenriDeh)\
**Post date:** [July 14, 2020, 10:45am UTC](https://discourse.julialang.org/t/add-cuda-adds-v0-1/43032/1 "2020-07-14T10:45:40Z")

</div>

I just moved from the deprecated CuArrays package to CUDA. I used `add CUDA` and `status` tells me v0.1 is installed. The most recent release is v1.1.0.

Am I doing something wrong ? Maybe I have to uninstall stuff before ?

---

<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:** [July 14, 2020, 10:59am UTC](https://discourse.julialang.org/t/add-cuda-adds-v0-1/43032/2 "2020-07-14T10:59:38Z")

</div>

What version of Julia are you using? I think `CUDA.jl` requires Julia v1.3 or later versions

---

<div class="post-metadata">

**Author:** ![HenriDeh](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/henrideh/32/8316_2.png) [@HenriDeh](https://discourse.julialang.org/u/HenriDeh)\
**Post date:** [July 14, 2020, 10:59am UTC](https://discourse.julialang.org/t/add-cuda-adds-v0-1/43032/3 "2020-07-14T10:59:55Z")

</div>

1.4.2

---

<div class="post-metadata">

**Author:** ![marius311](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/marius311/32/3953_2.png) [@marius311](https://discourse.julialang.org/u/marius311)\
**Post date:** [July 14, 2020, 11:00am UTC](https://discourse.julialang.org/t/add-cuda-adds-v0-1/43032/4 "2020-07-14T11:00:28Z")

</div>

If you do `add CUDA@1.1.0` it should tell you the conflict preventing the upgrade (granted it can sometimes be hard to decipher).

---

<div class="post-metadata">

**Author:** ![HenriDeh](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/henrideh/32/8316_2.png) [@HenriDeh](https://discourse.julialang.org/u/HenriDeh)\
**Post date:** [July 14, 2020, 11:00am UTC](https://discourse.julialang.org/t/add-cuda-adds-v0-1/43032/5 "2020-07-14T11:00:38Z")

</div>

Maybe this may be of some help

```julia
(DRL_SIP) pkg> status
Status `C:\Users\Henri\OneDrive - UCL\Doctorat\DRL_SIP\Project.toml`
  [fbb218c0] BSON v0.2.6
  [ad839575] Blink v0.12.3
  [336ed68f] CSV v0.7.3
  [052768ef] CUDA v0.1.0
  [c5f51814] CUDAdrv v6.3.0
  [be33ccc6] CUDAnative v3.0.4
  [861a8166] Combinatorics v1.0.2
  [3a865a2d] CuArrays v2.2.2
  [a93c6f00] DataFrames v0.21.4
  [31c24e10] Distributions v0.23.4
  [634d3b9d] DrWatson v1.14.4
  [587475ba] Flux v0.10.4
  [93e5fe13] Hyperopt v0.3.3
  [09f84164] HypothesisTests v0.10.0
  [c601a237] Interact v0.10.3
  [be94c240] InventoryModels v0.1.0 [`src\InventoryModels`]
  [b964fa9f] LaTeXStrings v1.1.0
  [d96e819e] Parameters v0.12.1
  [f27b6e38] Polynomials v1.1.3
  [92933f4c] ProgressMeter v1.3.2
  [d330b81b] PyPlot v2.9.0
  [1a8c2f83] Query v0.12.2
  [189a3867] Reexport v0.2.0
  [276daf66] SpecialFunctions v0.10.3
  [2913bbd2] StatsBase v0.33.0
  [f3b207a7] StatsPlots v0.14.6
  [e88e6eb3] Zygote v0.4.22
  [37e2e46d] LinearAlgebra

```

---

<div class="post-metadata">

**Author:** ![HenriDeh](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/henrideh/32/8316_2.png) [@HenriDeh](https://discourse.julialang.org/u/HenriDeh)\
**Post date:** [July 14, 2020, 11:00am UTC](https://discourse.julialang.org/t/add-cuda-adds-v0-1/43032/6 "2020-07-14T11:00:57Z")

</div>

ok let me try

---

<div class="post-metadata">

**Author:** ![HenriDeh](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/henrideh/32/8316_2.png) [@HenriDeh](https://discourse.julialang.org/u/HenriDeh)\
**Post date:** [July 14, 2020, 11:02am UTC](https://discourse.julialang.org/t/add-cuda-adds-v0-1/43032/7 "2020-07-14T11:02:17Z")

</div>

Ha, it tells me this

```julia
ERROR: Unsatisfiable requirements detected for package Adapt [79e6a3ab]:
 Adapt [79e6a3ab] log:
 ├─possible versions are: [0.3.0-0.3.1, 0.4.0-0.4.2, 1.0.0-1.0.1, 1.1.0, 2.0.0-2.0.2] or uninstalled
 ├─restricted by compatibility requirements with Flux [587475ba] to versions: [0.3.0-0.3.1, 0.4.0-0.4.2, 1.0.0-1.0.1, 1.1.0, 2.0.0-2.0.2]
 │ └─Flux [587475ba] log:
 │ ├─possible versions are: [0.4.1, 0.5.0-0.5.4, 0.6.0-0.6.10, 0.7.0-0.7.3, 0.8.0-0.8.3, 0.9.0, 0.10.0-0.10.4, 0.11.0] or uninstalled
 │ └─restricted to versions * by an explicit requirement, leaving only versions [0.4.1, 0.5.0-0.5.4, 0.6.0-0.6.10, 0.7.0-0.7.3, 0.8.0-0.8.3, 0.9.0, 0.10.0-0.10.4, 0.11.0]
 ├─restricted by compatibility requirements with CuArrays [3a865a2d] to versions: [0.3.0-0.3.1, 0.4.0-0.4.2, 1.0.0-1.0.1, 1.1.0]
 │ └─CuArrays [3a865a2d] log:
 │ ├─possible versions are: [0.2.1, 0.3.0, 0.4.0, 0.5.0, 0.6.0-0.6.2, 0.7.0-0.7.3, 0.8.0-0.8.1, 0.9.0-0.9.1, 1.0.0-1.0.2, 1.1.0, 1.2.0-1.2.1, 1.3.0, 1.4.0-1.4.7, 1.5.0, 1.6.0, 1.7.0-1.7.3, 2.0.0-2.0.1, 2.1.0, 2.2.0-2.2.2] or uninstalled
 │ ├─restricted to versions * by an explicit requirement, leaving only versions [0.2.1, 0.3.0, 0.4.0, 0.5.0, 0.6.0-0.6.2, 0.7.0-0.7.3, 0.8.0-0.8.1, 0.9.0-0.9.1, 1.0.0-1.0.2, 1.1.0, 1.2.0-1.2.1, 1.3.0, 1.4.0-1.4.7, 1.5.0, 1.6.0, 1.7.0-1.7.3, 2.0.0-2.0.1, 2.1.0, 2.2.0-2.2.2]
 │ └─restricted by compatibility requirements with CUDAdrv [c5f51814] to versions: [0.4.0, 0.5.0, 0.6.0-0.6.2, 0.7.0-0.7.3, 0.8.0-0.8.1, 0.9.0-0.9.1, 1.0.0-1.0.2, 1.1.0, 1.2.0-1.2.1, 1.3.0, 1.4.0-1.4.7, 1.5.0, 1.6.0, 1.7.0-1.7.3, 2.0.0-2.0.1, 2.1.0, 2.2.0-2.2.2] or uninstalled, leaving only versions: [0.4.0, 0.5.0, 0.6.0-0.6.2, 0.7.0-0.7.3, 0.8.0-0.8.1, 0.9.0-0.9.1, 1.0.0-1.0.2, 1.1.0, 1.2.0-1.2.1, 1.3.0, 1.4.0-1.4.7, 1.5.0, 1.6.0, 1.7.0-1.7.3, 2.0.0-2.0.1, 2.1.0, 2.2.0-2.2.2]
 │ └─CUDAdrv [c5f51814] log:
 │ ├─possible versions are: [0.8.0-0.8.6, 0.9.0, 1.0.0-1.0.1, 2.0.0, 3.0.0-3.0.1, 3.1.0, 4.0.0-4.0.4, 5.0.0-5.0.1, 5.1.0, 6.0.0-6.0.1, 6.1.0, 6.2.0-6.2.3, 6.3.0] or uninstalled
 │ ├─restricted to versions * by an explicit requirement, leaving only versions [0.8.0-0.8.6, 0.9.0, 1.0.0-1.0.1, 2.0.0, 3.0.0-3.0.1, 3.1.0, 4.0.0-4.0.4, 5.0.0-5.0.1, 5.1.0, 6.0.0-6.0.1, 6.1.0, 6.2.0-6.2.3, 6.3.0]  
 │ └─restricted by compatibility requirements with CuArrays [3a865a2d] to versions: [0.8.0-0.8.6, 1.0.1, 2.0.0, 3.0.0-3.0.1, 3.1.0, 4.0.1-4.0.4, 5.0.0-5.0.1, 5.1.0, 6.0.0-6.0.1, 6.1.0, 6.2.0-6.2.3, 6.3.0]
 │ └─CuArrays [3a865a2d] log: see above
 └─restricted by compatibility requirements with CUDA [052768ef] to versions: 2.0.0-2.0.2 — no versions left
   └─CUDA [052768ef] log:
     ├─possible versions are: [0.1.0, 1.0.0-1.0.2, 1.1.0] or uninstalled
     └─restricted to versions 1.1.0 by an explicit requirement, leaving only versions 1.1.0

```

So it’s a compatibility issue

---

<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:** [July 14, 2020, 11:06am UTC](https://discourse.julialang.org/t/add-cuda-adds-v0-1/43032/8 "2020-07-14T11:06:42Z")

</div>

As a general recommendation: use local environments for your projects and keep as few packages as possible in the global environment. This will drastically reduce the rate of these issues (and using local environments is a good thing for reproducibility anyway). It’s just impossible to install all packages you may want in a single huge environment without running into compatibility issues.

If you don’t want to follow the above recommendation, try at least to remove non-important packages and update the registry, to relax some constraints

---

<div class="post-metadata">

**Author:** ![HenriDeh](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/henrideh/32/8316_2.png) [@HenriDeh](https://discourse.julialang.org/u/HenriDeh)\
**Post date:** [July 14, 2020, 11:06am UTC](https://discourse.julialang.org/t/add-cuda-adds-v0-1/43032/9 "2020-07-14T11:06:56Z")

</div>

Okay, removing CUDAdrv, CUDAnative and CuArrays was necessary. Now everything seems to be in order.

Thank you for your help

---

<div class="post-metadata">

**Author:** ![HenriDeh](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/henrideh/32/8316_2.png) [@HenriDeh](https://discourse.julialang.org/u/HenriDeh)\
**Post date:** [July 14, 2020, 11:09am UTC](https://discourse.julialang.org/t/add-cuda-adds-v0-1/43032/10 "2020-07-14T11:09:21Z")

</div>

I don’t understand, this list I posted is from my project environment. I have almost no package in my global environment I think. Is that a problem you think ? I want people to be able to reproduce the experiments using `instantiate`.

---

<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:** [July 14, 2020, 11:11am UTC](https://discourse.julialang.org/t/add-cuda-adds-v0-1/43032/11 "2020-07-14T11:11:10Z")

</div>

Oh, ok, didn’t notice this was a local project, than it’s all good 🙂
