FS#79358 - [python-pytorch-opt-rocm] 2.0.1-7 MAGMA library not found in compilation

Attached to Project: Arch Linux
Opened by larraine (larraine) - Saturday, 12 August 2023, 13:04 GMT
Last edited by Torsten Keßler (tpkessler) - Friday, 17 November 2023, 07:16 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Sven-Hendrik Haase (Svenstaro)
Konstantin Gizdov (kgizdov)
Torsten Keßler (tpkessler)
Architecture x86_64
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description: The package is not linked against MAGMA (magma-hip in my case)


Additional info:
* Archlinux Flavor: `Manjaro`
* uname -rv: `6.4.9-1-MANJARO #1 SMP PREEMPT_DYNAMIC`
* Error message: `RuntimeError: linalg.svd: MAGMA library not found in compilation. Please rebuild with MAGMA.`

Steps to reproduce:
* `python -c 'import torch; torch.svd(torch.rand(3,3).cuda())'`
This task depends upon

Closed by  Torsten Keßler (tpkessler)
Friday, 17 November 2023, 07:16 GMT
Reason for closing:  Fixed
Comment by Toolybird (Toolybird) - Saturday, 12 August 2023, 23:19 GMT
> Archlinux Flavor: `Manjaro`

Sorry, Arch derivatives cannot be supported here [1]. You'll need to refer to your distro maker.

[1] https://terms.archlinux.org/docs/code-of-conduct/#arch-linux-distribution-support-only
Comment by larraine (larraine) - Monday, 14 August 2023, 20:49 GMT
  • Field changed: Percent Complete (100% → 0%)
I can confirm that this reproduce on vanilla arch setup conforming with https://wiki.archlinux.org/title/Installation_guide. One note is some environment variables that are imperative for pytorch to work at all on my machine with emphasis to the first one.
HSA_OVERRIDE_GFX_VERSION=11.0.0
HIP_VISIBLE_DEVICES=0
HCC_AMDGPU_TARGET=gfx1100
Comment by Torsten Keßler (tpkessler) - Tuesday, 12 September 2023, 07:47 GMT
pytorch in testing links magma correctly. Can you confirm please?
Comment by George Sofianos (Luciddream) - Tuesday, 19 September 2023, 20:13 GMT
Related to this, `magma-hip` is not part of ROCm and IMO it should not be installed in /opt/rocm.
Comment by Torsten Keßler (tpkessler) - Tuesday, 14 November 2023, 20:06 GMT
ROCm 5.7.1 is in [extra-testing]. It fixes the issue for me.

Loading...