# New CUDA.jl version breaks previously working Base functions?

**URL:** https://discourse.julialang.org/t/new-cuda-jl-version-breaks-previously-working-base-functions/116102
**Category:** General Usage
**Tags:** cuda
**Created:** [June 22, 2024, 7:39pm UTC](https://discourse.julialang.org/t/new-cuda-jl-version-breaks-previously-working-base-functions/116102 "2024-06-22T19:39:07Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![pxshen](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pxshen/32/38776_2.png) [@pxshen](https://discourse.julialang.org/u/pxshen)
#### Post date: [June 22, 2024, 7:39pm UTC](https://discourse.julialang.org/t/new-cuda-jl-version-breaks-previously-working-base-functions/116102/1 "2024-06-22T19:39:07Z")

</div>

New CUDA.jl version circa v5 seems to break many functions that previously worked with CuArrav. eg

```julia
a = [1 2; 3 4] |> cu
diff(a; dims=1)

```

now raises LLVM IR error. Why is this?

---

<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: [June 22, 2024, 8:03pm UTC](https://discourse.julialang.org/t/new-cuda-jl-version-breaks-previously-working-base-functions/116102/2 "2024-06-22T20:03:19Z")

</div>

You’ll have to elaborate, at the very least by posting the error message. The snippet you posted works fine here.

---

<div class="post-metadata">

### Author: ![pxshen](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pxshen/32/38776_2.png) [@pxshen](https://discourse.julialang.org/u/pxshen)
#### Post date: [June 23, 2024, 1:52am UTC](https://discourse.julialang.org/t/new-cuda-jl-version-breaks-previously-working-base-functions/116102/3 "2024-06-23T01:52:35Z")

</div>

Thanks worked after upgrading from julia 10.1 to 11.0 🙂 for the record errors said unsupported dynamic function invocation but seemed to arise stochastically depending on GPU state…

---

<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: [June 23, 2024, 1:55am UTC](https://discourse.julialang.org/t/new-cuda-jl-version-breaks-previously-working-base-functions/116102/4 "2024-06-23T01:55:55Z")

</div>

> [@pxshen](#):
>
> upgrading from julia 10.1 to 11.0

Latest stable version of Julia is 1.10.4, I think you mixed up a bit the version numbers?

---

<div class="post-metadata">

### Author: ![pxshen](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pxshen/32/38776_2.png) [@pxshen](https://discourse.julialang.org/u/pxshen)
#### Post date: [June 23, 2024, 1:58am UTC](https://discourse.julialang.org/t/new-cuda-jl-version-breaks-previously-working-base-functions/116102/5 "2024-06-23T01:58:27Z")

</div>

Should’ve said 11.0-beta2
