# Fedora amdgpu-install

**URL:** <https://community.frame.work/t/fedora-amdgpu-install/46553>\
**Category:** Framework Laptop 16\
**Tags:** framework-laptop-16-amd-7040\
**Created:** [March 6, 2024, 5:04pm UTC](https://community.frame.work/t/fedora-amdgpu-install/46553 "2024-03-06T17:04:42Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Liam\_Audibert](https://avatars.discourse-cdn.com/v4/letter/l/f4b2a3/32.png) [@Liam\_Audibert](https://community.frame.work/u/Liam_Audibert)\
**Post date:** [March 6, 2024, 5:04pm UTC](https://community.frame.work/t/fedora-amdgpu-install/46553/1 "2024-03-06T17:04:42Z")

</div>

It seems that Fedora39 conflicts with the installation of  
`amdgpu-install-6.0.60002-1718218.22.noarch.rpm`  
with

```auto
Error: Transaction test error:
  file /usr/bin from install of amdgpu-install-6.0.60002-1718218.22.noarch conflicts with file from package filesystem-3.18-6.fc39.x86_64

```

So the question is: How can we make sure we can use ROCM with mobile AMD GPU in Framework 16 under Fedora39?

Examples in Python would be helpful.

---

<div class="post-metadata">

**Author:** ![Mario\_Limonciello](https://sea1.discourse-cdn.com/flex001/user_avatar/community.frame.work/mario_limonciello/32/19277_2.png) [@Mario\_Limonciello](https://community.frame.work/u/Mario_Limonciello)\
**Post date:** [March 6, 2024, 10:12pm UTC](https://community.frame.work/t/fedora-amdgpu-install/46553/2 "2024-03-06T22:12:35Z")

</div>

You can use [Setting up ROCm and PyTorch on Fedora: A Step-By-Step Guide | by Anvesh G. Jhuboo | Medium](https://medium.com/@anvesh.jhuboo/rocm-pytorch-on-fedora-51224563e5be) to use the native packages to Fedora too.

---

<div class="post-metadata">

**Author:** ![Liam\_Audibert](https://avatars.discourse-cdn.com/v4/letter/l/f4b2a3/32.png) [@Liam\_Audibert](https://community.frame.work/u/Liam_Audibert)\
**Post date:** [March 8, 2024, 7:22pm UTC](https://community.frame.work/t/fedora-amdgpu-install/46553/3 "2024-03-08T19:22:40Z")

</div>

Thank you Mario.

The article is nice while it misses some elements for cupy (trying to find resources to get this last piece working).

Thank you again

---

<div class="post-metadata">

**Author:** ![Liam\_Audibert](https://avatars.discourse-cdn.com/v4/letter/l/f4b2a3/32.png) [@Liam\_Audibert](https://community.frame.work/u/Liam_Audibert)\
**Post date:** [March 13, 2024, 1:20am UTC](https://community.frame.work/t/fedora-amdgpu-install/46553/4 "2024-03-13T01:20:54Z")

</div>

After following all the steps of the article, I do get amd gpu ids not found.

I have try to set all the environment variables I could find on the web to point to GPU ID#0 since the framework has the additional GPU in first. Still get the same when running pytorch rocm 6.0.

Any idea?

---

<div class="post-metadata">

**Author:** ![Mario\_Limonciello](https://sea1.discourse-cdn.com/flex001/user_avatar/community.frame.work/mario_limonciello/32/19277_2.png) [@Mario\_Limonciello](https://community.frame.work/u/Mario_Limonciello)\
**Post date:** [March 13, 2024, 2:34am UTC](https://community.frame.work/t/fedora-amdgpu-install/46553/5 "2024-03-13T02:34:03Z")

</div>

I didn’t set any env variables and it just works for me. Not sure…

---

<div class="post-metadata">

**Author:** ![Liam\_Audibert](https://avatars.discourse-cdn.com/v4/letter/l/f4b2a3/32.png) [@Liam\_Audibert](https://community.frame.work/u/Liam_Audibert)\
**Post date:** [March 13, 2024, 4:12pm UTC](https://community.frame.work/t/fedora-amdgpu-install/46553/6 "2024-03-13T16:12:41Z")

</div>

So I’m getting somewhere.

Rocm 6.0 does not manage properly the hybrid cards in my machine (under Fedora 40), whereas Rocm5.7 does perfectly well.

Here are the details:

```auto
Projects/learning-python/pytorch via 🐍 v3.12.2
❯ python
Python 3.12.2 (main, Feb 21 2024, 00:00:00) [GCC 14.0.1 20240217 (Red Hat 14.0.1-0)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import torch
>>> print(torch. __version__ )
2.2.1+rocm5.7
>>> torch.cuda.is_available()
True
>>> torch.cuda.device_count()
1
>>> torch.cuda.current_device()
0
>>> torch.cuda.device(0)
<torch.cuda.device object at 0x7f913c3b2360>
>>> torch.cuda.get_device_name(0)
'AMD Radeon RX 7700S'
>>> quit()

Projects/learning-python/pytorch via 🐍 v3.12.2 took 57s
❯ source .venv/bin/activate

Projects/learning-python/pytorch via 🐍 v3.12.1 (.venv)
❯ python
Python 3.12.1 | packaged by Anaconda, Inc. | (main, Jan 19 2024, 15:51:05) [GCC 11.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import torch
amdgpu.ids: No such file or directory
amdgpu.ids: No such file or directory
>>> print(torch. __version__ )
2.3.0.dev20240312+rocm6.0
>>> torch.cuda.is_available()
True
>>> torch.cuda.device_count()
1
>>> torch.cuda.device(0)
<torch.cuda.device object at 0x7f0ff2000830>
>>> torch.cuda.get_device_name(0)
'AMD Radeon Graphics'
>>> quit()

```

So I guess I have to stick to Rocm 5.7 for now.

---

<div class="post-metadata">

**Author:** ![Mario\_Limonciello](https://sea1.discourse-cdn.com/flex001/user_avatar/community.frame.work/mario_limonciello/32/19277_2.png) [@Mario\_Limonciello](https://community.frame.work/u/Mario_Limonciello)\
**Post date:** [March 13, 2024, 4:24pm UTC](https://community.frame.work/t/fedora-amdgpu-install/46553/7 "2024-03-13T16:24:56Z")

</div>

Ah that might explain the difference. I tested on Fedora 39 after all. Please file a bug with upstream, this sounds like a ROCm bug from your findings.
