# AMDGPUBackend is missing

**URL:** <https://discourse.julialang.org/t/amdgpubackend-is-missing/119096>\
**Category:** GPU\
**Tags:** package\
**Created:** [September 6, 2024, 1:39am UTC](https://discourse.julialang.org/t/amdgpubackend-is-missing/119096 "2024-09-06T01:39:07Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hector\_Yaker](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/hector_yaker/32/211805_2.png) [@Hector\_Yaker](https://discourse.julialang.org/u/Hector_Yaker)\
**Post date:** [September 6, 2024, 1:39am UTC](https://discourse.julialang.org/t/amdgpubackend-is-missing/119096/1 "2024-09-06T01:39:07Z")

</div>

I don’t really know what’s happening, I have reinstalled the AMDGPU package many times and it’s really missing. I’ve got the latest RoCM and Julia versions and nothing works. Could you help me import it? I am in a Jupyter environment for Python, here’s the error:

Thank you so so much

 ![image](https://global.discourse-cdn.com/julialang/original/3X/c/b/cb02fb9de04a6d3a7e8c91a4191ce37cd71c3cd4.png)

---

<div class="post-metadata">

**Author:** ![luraess](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/luraess/32/16189_2.png) [@luraess](https://discourse.julialang.org/u/luraess)\
**Post date:** [September 6, 2024, 6:09am UTC](https://discourse.julialang.org/t/amdgpubackend-is-missing/119096/2 "2024-09-06T06:09:30Z")

</div>

Hi, could you be slightly more explicit about what you are trying to achieve and how? What Julia package are you using? And ideally you have a minimal reproducer that would trigger the error (MWE) you are experiencing.

From within a Julia REPL, what is the output of:

```julia-repl
using AMDGPU

AMDGPU.versioninfo()

```

---

<div class="post-metadata">

**Author:** ![jar1](https://avatars.discourse-cdn.com/v4/letter/j/c0e974/32.png) [@jar1](https://discourse.julialang.org/u/jar1)\
**Post date:** [September 6, 2024, 6:21am UTC](https://discourse.julialang.org/t/amdgpubackend-is-missing/119096/3 "2024-09-06T06:21:20Z")

</div>

Some useful background for new forum members can be found here.

> [@Please read: make it easier to help you](https://discourse.julialang.org/t/please-read-make-it-easier-to-help-you/14757):
>
> Welcome to the Julia Discourse! We are enthusiastic about helping Julia programmers, both beginner and experienced. This public service announcement (PSA) outlines best practices when asking for help. Following these points makes it easier for us to help you and more likely you’ll get a prompt, useful answer. Keywords are highlighted to make it easier to refer to specific points. Choose a descriptive title that captures the key part of your question, eg “plots with multiple axes” instead of …

---

<div class="post-metadata">

**Author:** ![Hector\_Yaker](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/hector_yaker/32/211805_2.png) [@Hector\_Yaker](https://discourse.julialang.org/u/Hector_Yaker)\
**Post date:** [September 7, 2024, 2:00am UTC](https://discourse.julialang.org/t/amdgpubackend-is-missing/119096/4 "2024-09-07T02:00:35Z")

</div>

Hello, here I am again. I’m trying to use AMDGPU to optimize perfomance of ODE solving in Python through the diffeqpy library, taking into account this example ([Google Colab](https://colab.research.google.com/drive/1bnQMdNvg0AL-LyPcXBiH10jBij5QUmtY?usp=sharing#scrollTo=ThJggtZJYg2A)). I was just trying to execute “from diffeqpy import amdgpu”. Here the AMDGPU version you asked for :

````julia
[ Info: AMDGPU versioninfo
┌───────────┬──────────────────┬───────────┬───────────────────────────────────────────────────────────────────────────────────────────────┐
│ Available │ Name │ Version │ Path │
├───────────┼──────────────────┼───────────┼───────────────────────────────────────────────────────────────────────────────────────────────┤
│ + │ LLD │ - │ C:\\Program Files\\AMD\\ROCm\\6.1\\bin\\ld.lld.exe │
│ + │ Device Libraries │ - │ C:\\Users\\hayak\\.julia\\artifacts\\5ad5ecb46e3c334821f54c1feecc6c152b7b6a45\\amdgcn/bitcode │
│ + │ HIP │ 5.7.31541 │ C:\\windows\\SYSTEM32\\amdhip64.DLL │
│ + │ rocBLAS │ 4.1.2 │ C:\\Program Files\\AMD\\ROCm\\6.1\\bin\\rocblas.dll │
│ + │ rocSOLVER │ 3.25.0 │ C:\\Program Files\\AMD\\ROCm\\6.1\\bin\\rocsolver.dll │
│ + │ rocALUTION │ - │ C:\\Program Files\\AMD\\ROCm\\6.1\\bin\\rocalution.dll │
│ + │ rocSPARSE │ - │ C:\\Program Files\\AMD\\ROCm\\6.1\\bin\\rocsparse.dll │
│ + │ rocRAND │ 2.10.5 │ C:\\Program Files\\AMD\\ROCm\\6.1\\bin\\rocrand.dll │
│ + │ rocFFT │ 1.0.21 │ C:\\Program Files\\AMD\\ROCm\\6.1\\bin\\rocfft.dll │
│ - │ MIOpen │ - │ - │
└───────────┴──────────────────┴───────────┴───────────────────────────────────────────────────────────────────────────────────────────────┘

[ Info: AMDGPU devices
┌────┬─────────────────────────┬───────────────┬───────────┬───────────┐
│ Id │ Name │ GCN arch │ Wavefront │ Memory │
├────┼─────────────────────────┼───────────────┼───────────┼───────────┤
│ 1 │ AMD Radeon(TM) Graphics │ gfx90c:xnack- │ 64 │ 6.060 GiB │
└────┴─────────────────────────┴───────────────┴───────────┴───────────┘```
````

---

<div class="post-metadata">

**Author:** ![Hector\_Yaker](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/hector_yaker/32/211805_2.png) [@Hector\_Yaker](https://discourse.julialang.org/u/Hector_Yaker)\
**Post date:** [September 7, 2024, 2:05am UTC](https://discourse.julialang.org/t/amdgpubackend-is-missing/119096/5 "2024-09-07T02:05:57Z")

</div>

Here the error in code block:

```julia
---------------------------------------------------------------------------
JuliaError Traceback (most recent call last)
Cell In[20], line 5
      3 from scipy.integrate import solve_ivp
      4 from scipy.integrate import odeint
----> 5 from diffeqpy import ode,amdgpu
      7 def Graficar_Global(t_total, y_total, Pa):
      8 # Crear una figura con una sola gráfica
      9 plt.figure(figsize=(12, 8))

File c:\Users\hayak\AppData\Local\Programs\Python\Python312\Lib\site-packages\diffeqpy\amdgpu.py:5
      3 amdgpu, _ = load_julia_packages("DiffEqGPU", "AMDGPU")
      4 from juliacall import Main
----> 5 amdgpu.AMDGPUBackend = Main.seval("AMDGPU.AMDGPUBackend") # kinda hacky
      6 sys.modules[__name__] = amdgpu # mutate myself

File ~\.julia\packages\PythonCall\Nr75f\src\JlWrap\module.jl:27, in seval(self, expr)
     25 return ValueBase. __dir__ (self) + self._jl_callmethod($(pyjl_methodnum(pyjlmodule_dir)))
     26 def seval(self, expr):
---> 27 return self._jl_callmethod($(pyjl_methodnum(pyjlmodule_seval)), expr)
     28 """,
     29 @ __FILE__ (),

JuliaError: UndefVarError: `AMDGPUBackend` not defined
Stacktrace:
 [1] eval
   @ .\boot.jl:385 [inlined]
 [2] eval
   @ .\Base.jl:88 [inlined]
 [3] pyjlmodule_seval(self::Module, expr::Py)
   @ PythonCall.JlWrap C:\Users\hayak\.julia\packages\PythonCall\Nr75f\src\JlWrap\module.jl:13
 [4] _pyjl_callmethod(f::Any, self_::Ptr{PythonCall.C.PyObject}, args_::Ptr{PythonCall.C.PyObject}, nargs::Int64)
   @ PythonCall.JlWrap C:\Users\hayak\.julia\packages\PythonCall\Nr75f\src\JlWrap\base.jl:67
 [5] _pyjl_callmethod(o::Ptr{PythonCall.C.PyObject}, args::Ptr{PythonCall.C.PyObject})
   @ PythonCall.JlWrap.Cjl C:\Users\hayak\.julia\packages\PythonCall\Nr75f\src\JlWrap\C.jl:63

```

---

<div class="post-metadata">

**Author:** ![jpsamaroo](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jpsamaroo/32/46804_2.png) [@jpsamaroo](https://discourse.julialang.org/u/jpsamaroo)\
**Post date:** [September 8, 2024, 4:38pm UTC](https://discourse.julialang.org/t/amdgpubackend-is-missing/119096/6 "2024-09-08T16:38:19Z")

</div>

You want `ROCBackend` - which is passed through the DiffEq stack to KernelAbstractions.jl to launch kernels.
