# AMDGPU.jl on Fedora 41 with RX 7600

**URL:** <https://discourse.julialang.org/t/amdgpu-jl-on-fedora-41-with-rx-7600/127160>\
**Category:** General Usage\
**Tags:** question, package\
**Created:** [March 20, 2025, 1:19am UTC](https://discourse.julialang.org/t/amdgpu-jl-on-fedora-41-with-rx-7600/127160 "2025-03-20T01:19:29Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![lxmota](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/lxmota/32/215915_2.png) [@lxmota](https://discourse.julialang.org/u/lxmota)\
**Post date:** [March 20, 2025, 1:19am UTC](https://discourse.julialang.org/t/amdgpu-jl-on-fedora-41-with-rx-7600/127160/1 "2025-03-20T01:19:29Z")

</div>

Here is my experience so far trying to use AMDGPU.jl on Fedora 41 with an RX 7600 GPU.

### Installed RPM Packages

```julia-auto
rocm-comgr-18-10.rocm6.2.1.fc41.x86_64
hsakmt-1.0.6-46.rocm6.2.1.fc41.x86_64
rocm-runtime-6.2.1-2.fc41.x86_64
rocminfo-6.2.1-1.fc41.x86_64
hsakmt-devel-1.0.6-46.rocm6.2.1.fc41.x86_64
rocm-runtime-devel-6.2.1-2.fc41.x86_64
rocm-comgr-devel-18-10.rocm6.2.1.fc41.x86_64
rocm-device-libs-18-10.rocm6.2.1.fc41.x86_64
hipcc-18-10.rocm6.2.1.fc41.x86_64
rocm-hip-6.2.1-5.fc41.x86_64
rocm-opencl-6.2.1-5.fc41.x86_64
rocm-smi-6.2.1-1.fc41.x86_64
rocm-core-6.2.0-1.fc41.x86_64
rocm-core-devel-6.2.0-1.fc41.x86_64
rocm-hip-devel-6.2.1-5.fc41.x86_64
rocm-smi-devel-6.2.1-1.fc41.x86_64
rocm-opencl-devel-6.2.1-5.fc41.x86_64
rocm-llvm-devel-18-10.rocm6.2.1.fc41.x86_64
rocm-compilersupport-macros-18-10.rocm6.2.1.fc41.x86_64
rocm-clinfo-6.2.1-5.fc41.x86_64
rocm-cmake-6.2.0-1.fc41.noarch
rocm-rpm-macros-6.2-1.fc41.x86_64
rocm-rpm-macros-modules-6.2-1.fc41.x86_64
hipcc-18-10.rocm6.2.1.fc41.x86_64
hipblas-gfx942-6.2.0-1.fc41.x86_64
hipblas-gfx90a-6.2.0-1.fc41.x86_64
hipblas-gfx1103-6.2.0-1.fc41.x86_64
hipblas-gfx1100-6.2.0-1.fc41.x86_64
hipblas-6.2.0-1.fc41.x86_64
hipblas-devel-6.2.0-1.fc41.x86_64
hipfft-6.2.1-1.fc41.x86_64
hipfft-devel-6.2.1-1.fc41.x86_64
hiprand-gfx942-6.2.0-1.fc41.x86_64
hiprand-gfx90a-6.2.0-1.fc41.x86_64
hiprand-gfx1103-6.2.0-1.fc41.x86_64
hiprand-gfx1100-6.2.0-1.fc41.x86_64
hiprand-6.2.0-1.fc41.x86_64
hiprand-devel-6.2.0-1.fc41.x86_64
hipsolver-6.2.0-1.fc41.x86_64
hipsolver-gfx1100-6.2.0-1.fc41.x86_64
hipsolver-gfx1103-6.2.0-1.fc41.x86_64
hipsolver-gfx90a-6.2.0-1.fc41.x86_64
hipsolver-gfx942-6.2.0-1.fc41.x86_64
hipsolver-devel-6.2.0-1.fc41.x86_64
hipsparse-gfx942-6.2.0-1.fc41.x86_64
hipsparse-gfx90a-6.2.0-1.fc41.x86_64
hipsparse-gfx1103-6.2.0-1.fc41.x86_64
hipsparse-gfx1100-6.2.0-1.fc41.x86_64
hipsparse-6.2.0-1.fc41.x86_64
hipsparse-devel-6.2.0-1.fc41.x86_64

```

### Configuration Details

Fedora places some files in `/usr/bin`, `/usr/include`, and `/usr/lib64`, but places architecture-specific files in `/usr/lib64/rocm/gfxXXX`. In my specific case, the folder is `gfx1100`, although `rocminfo` reports `gfx1102`.

Following @pxl-th’s suggestion, I created symlinks to:

```julia-auto
/usr/lib64/libamdhip64.so
/usr/lib64/libhsa-runtime64.so

```

These were placed in `/usr/lib64/rocm/gfx1100`, which allowed AMDGPU.jl to start working.

Additionally, I set the following environment variables:

```julia-auto
export HIP_VISIBLE_DEVICES=0

```

And I run Julia with:

```julia-auto
ROCM_PATH=/usr/lib64/rocm/gfx1100 julia

```

### Testing Results

I am using **Julia 1.11.4** and AMDGPU.jl freshly installed from scratch. Running the test suite with:

```julia-auto
pkg> test AMDGPU

```

Gives the following result:

```julia-auto
ERROR: LoadError: Some tests did not pass: 9371 passed, 116 failed, 1046 errored, 16 broken.
in expression starting at /home/mota/.julia/packages/AMDGPU/VTHhJ/test/runtests.jl:115
ERROR: Package AMDGPU errored during testing

```

Most of the errors point to failing to locate the file **`TensileLibrary.dat`**. While this file does not exist, there are numerous `TensileLibrary*` files located in:

```julia-auto
/usr/lib64/rocm/gfx1100/lib/rocblas/library/

```

### Request for Help

I’m unsure if the missing `TensileLibrary.dat` file is expected or if I need additional steps to configure AMDGPU.jl on Fedora 41. Has anyone else encountered similar issues? Any insights or suggestions would be greatly appreciated!

---

<div class="post-metadata">

**Author:** ![pxl-th](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pxl-th/32/31939_2.png) [@pxl-th](https://discourse.julialang.org/u/pxl-th)\
**Post date:** [March 20, 2025, 12:15pm UTC](https://discourse.julialang.org/t/amdgpu-jl-on-fedora-41-with-rx-7600/127160/2 "2025-03-20T12:15:18Z")

</div>

In your case, you might need to set `HSA_OVERRIDE_GFX_VERSION=11.0.0`. I don’t think ROCm ships blas files for `gfx1102`.

---

<div class="post-metadata">

**Author:** ![lxmota](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/lxmota/32/215915_2.png) [@lxmota](https://discourse.julialang.org/u/lxmota)\
**Post date:** [March 21, 2025, 2:27am UTC](https://discourse.julialang.org/t/amdgpu-jl-on-fedora-41-with-rx-7600/127160/3 "2025-03-21T02:27:04Z")

</div>

Defining `HSA_OVERRIDE_GFX_VERSION=11.0.0` leads to an immediate segfault:

```julia
     Testing Running tests...
Julia Version 1.11.4
Commit 8561cc3d68d (2025-03-10 11:36 UTC)
Build Info:
  Official https://julialang.org/ release
Platform Info:
  OS: Linux (x86_64-linux-gnu)
  CPU: 24 × AMD Ryzen 9 9900X 12-Core Processor
  WORD_SIZE: 64
  LLVM: libLLVM-16.0.6 (ORCJIT, generic)
Threads: 1 default, 0 interactive, 1 GC (on 24 virtual cores)
Environment:
  JULIA_LOAD_PATH = @:/tmp/jl_hAUl8h
[ Info: AMDGPU versioninfo

[17599] signal 11 (1): Segmentation fault
in expression starting at /home/mota/.julia/packages/AMDGPU/VTHhJ/test/runtests.jl:109
unknown function (ip: 0x7f0bb7ae59cd)
unknown function (ip: 0x7f0bb79b5d8a)
unknown function (ip: 0x7f0bb79bdda8)
unknown function (ip: 0x7f0bb79bfb53)
unknown function (ip: 0x7f0a31c026f9)
rocsparse_create_handle at /usr/lib64/rocm/gfx1100/lib/../lib/librocsparse.so.1 (unknown line)
macro expansion at /home/mota/.julia/packages/AMDGPU/VTHhJ/src/sparse/error.jl:60 [inlined]
rocsparse_create_handle at /home/mota/.julia/packages/AMDGPU/VTHhJ/src/sparse/librocsparse.jl:3
create_handle at /home/mota/.julia/packages/AMDGPU/VTHhJ/src/sparse/rocSPARSE.jl:30 [inlined]
#5 at /home/mota/.julia/packages/AMDGPU/VTHhJ/src/cache.jl:115 [inlined]
pop! at /home/mota/.julia/packages/AMDGPU/VTHhJ/src/cache.jl:49
new_state at /home/mota/.julia/packages/AMDGPU/VTHhJ/src/cache.jl:114
#9 at /home/mota/.julia/packages/AMDGPU/VTHhJ/src/cache.jl:127 [inlined]
get! at ./dict.jl:458
library_state at /home/mota/.julia/packages/AMDGPU/VTHhJ/src/cache.jl:127
lib_state at /home/mota/.julia/packages/AMDGPU/VTHhJ/src/sparse/rocSPARSE.jl:36 [inlined]
handle at /home/mota/.julia/packages/AMDGPU/VTHhJ/src/sparse/rocSPARSE.jl:40 [inlined]
version at /home/mota/.julia/packages/AMDGPU/VTHhJ/src/sparse/rocSPARSE.jl:45
_ver at /home/mota/.julia/packages/AMDGPU/VTHhJ/src/utils.jl:5 [inlined]
versioninfo at /home/mota/.julia/packages/AMDGPU/VTHhJ/src/utils.jl:6
unknown function (ip: 0x7f0c3412c6ef)
jl_apply at /cache/build/builder-amdci5-5/julialang/julia-release-1-dot-11/src/julia.h:2157 [inlined]
do_call at /cache/build/builder-amdci5-5/julialang/julia-release-1-dot-11/src/interpreter.c:126
eval_value at /cache/build/builder-amdci5-5/julialang/julia-release-1-dot-11/src/interpreter.c:223
eval_stmt_value at /cache/build/builder-amdci5-5/julialang/julia-release-1-dot-11/src/interpreter.c:174 [inlined]
eval_body at /cache/build/builder-amdci5-5/julialang/julia-release-1-dot-11/src/interpreter.c:666
jl_interpret_toplevel_thunk at /cache/build/builder-amdci5-5/julialang/julia-release-1-dot-11/src/interpreter.c:824
jl_toplevel_eval_flex at /cache/build/builder-amdci5-5/julialang/julia-release-1-dot-11/src/toplevel.c:943
jl_toplevel_eval_flex at /cache/build/builder-amdci5-5/julialang/julia-release-1-dot-11/src/toplevel.c:886
ijl_toplevel_eval_in at /cache/build/builder-amdci5-5/julialang/julia-release-1-dot-11/src/toplevel.c:994
eval at ./boot.jl:430 [inlined]
include_string at ./loading.jl:2734
_include at ./loading.jl:2794
include at ./sysimg.jl:38
unknown function (ip: 0x7f0c340fc082)
jl_apply at /cache/build/builder-amdci5-5/julialang/julia-release-1-dot-11/src/julia.h:2157 [inlined]
do_call at /cache/build/builder-amdci5-5/julialang/julia-release-1-dot-11/src/interpreter.c:126
eval_value at /cache/build/builder-amdci5-5/julialang/julia-release-1-dot-11/src/interpreter.c:223
eval_stmt_value at /cache/build/builder-amdci5-5/julialang/julia-release-1-dot-11/src/interpreter.c:174 [inlined]
eval_body at /cache/build/builder-amdci5-5/julialang/julia-release-1-dot-11/src/interpreter.c:666
jl_interpret_toplevel_thunk at /cache/build/builder-amdci5-5/julialang/julia-release-1-dot-11/src/interpreter.c:824
jl_toplevel_eval_flex at /cache/build/builder-amdci5-5/julialang/julia-release-1-dot-11/src/toplevel.c:943
jl_toplevel_eval_flex at /cache/build/builder-amdci5-5/julialang/julia-release-1-dot-11/src/toplevel.c:886
ijl_toplevel_eval_in at /cache/build/builder-amdci5-5/julialang/julia-release-1-dot-11/src/toplevel.c:994
eval at ./boot.jl:430 [inlined]
exec_options at ./client.jl:296
_start at ./client.jl:531
jfptr__start_73560 at /home/mota/.julia/juliaup/julia-1.11.4+0.x64.linux.gnu/lib/julia/sys.so (unknown line)
jl_apply at /cache/build/builder-amdci5-5/julialang/julia-release-1-dot-11/src/julia.h:2157 [inlined]
true_main at /cache/build/builder-amdci5-5/julialang/julia-release-1-dot-11/src/jlapi.c:900
jl_repl_entrypoint at /cache/build/builder-amdci5-5/julialang/julia-release-1-dot-11/src/jlapi.c:1059
main at /cache/build/builder-amdci5-5/julialang/julia-release-1-dot-11/cli/loader_exe.c:58
__libc_start_call_main at /lib64/libc.so.6 (unknown line)
__libc_start_main at /lib64/libc.so.6 (unknown line)
unknown function (ip: 0x4010b8)
Allocations: 6943231 (Pool: 6943015; Big: 216); GC: 8
ERROR: Package AMDGPU errored during testing (received signal: 11)

```
