# CUDA app by PackageCompiler hangs at runtime on Ubuntu / Debian

**URL:** <https://discourse.julialang.org/t/cuda-app-by-packagecompiler-hangs-at-runtime-on-ubuntu-debian/124995>\
**Category:** General Usage\
**Created:** [January 21, 2025, 3:30am UTC](https://discourse.julialang.org/t/cuda-app-by-packagecompiler-hangs-at-runtime-on-ubuntu-debian/124995 "2025-01-21T03:30:02Z")\
**Posts on this page:** 4\
**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:** [January 21, 2025, 3:30am UTC](https://discourse.julialang.org/t/cuda-app-by-packagecompiler-hangs-at-runtime-on-ubuntu-debian/124995/1 "2025-01-21T03:30:02Z")

</div>

Dummy app made by PackageCompiler with CUDA@5.6.1 (latest) as sole dep hangs at runtime on Ubuntu 24 and Debian 12. Works on Windows.

```julia
module Dummy
function julia_main()::Cint
    return 0
end
end

```

```julia
name = "Dummy"
uuid = "60a98398-2d19-4130-ae20-63172a4a42f2"

[deps]
CUDA = "052768ef-5323-5732-b1bb-66c8b64840ba"

```

```julia
using PackageCompiler
create_app("Dummy", "CompiledDummy")

```

```julia
Julia Version 1.11.2
Commit 5e9a32e7af2 (2024-12-01 20:02 UTC)
Build Info:
Official https://julialang.org/ release
Platform Info:
OS: Linux (x86_64-linux-gnu)
CPU: 16 × AMD EPYC 7R32
WORD_SIZE: 64
LLVM: libLLVM-16.0.6 (ORCJIT, znver2)
Threads: 1 default, 0 interactive, 1 GC (on 16 virtual cores)

```

(also failed on Debian 12 w/ Xeon, Nvidia T4)

I made this MWE after discovering a more complicated PackageCompiler app worked after removing CUDA.

---

<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:** [January 21, 2025, 6:07pm UTC](https://discourse.julialang.org/t/cuda-app-by-packagecompiler-hangs-at-runtime-on-ubuntu-debian/124995/3 "2025-01-21T18:07:31Z")

</div>

works with CUDA@5.4.3 but breaks starting with 5.5.0

---

<div class="post-metadata">

**Author:** ![ufechner7](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ufechner7/32/51363_2.png) [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Post date:** [January 21, 2025, 9:10pm UTC](https://discourse.julialang.org/t/cuda-app-by-packagecompiler-hangs-at-runtime-on-ubuntu-debian/124995/4 "2025-01-21T21:10:16Z")

</div>

But this should be reported in an issue, not in Discourse. In Discourse the information gets lost quickly.

Using Discourse is good if you do not know in which package to report an issue.

---

<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:** [January 22, 2025, 12:49am UTC](https://discourse.julialang.org/t/cuda-app-by-packagecompiler-hangs-at-runtime-on-ubuntu-debian/124995/5 "2025-01-22T00:49:08Z")

</div>

Makes sense - I raised issue in PackageCompiler
