Still working with my RX560.
Thanks, @luciddream!
Git Clone URL: | https://aur.archlinux.org/opencl-amd.git (read-only, click to copy) |
---|---|
Package Base: | opencl-amd |
Description: | ROCm components repackaged from AMD's Ubuntu releases (ROCr runtime, ROCm runtime, HIP runtime) - This package is intended to work along with the free amdgpu stack. |
Upstream URL: | http://www.amd.com |
Keywords: | amd amdgpu computing gpgpu opencl radeon |
Licenses: | custom:AMD |
Conflicts: | amd-smi-lib, comgr, hip, hip-dev, hip-doc, hip-runtime-amd, hip-samples, hipcc, hsa-amd-aqlprofile, hsa-rocr, hsa-rocr-dev, libdrm-amdgpu-amdgpu1, openmp-extras-runtime, rocdecode, rocdecode-dev, rocjpeg, rocjpeg-dev, rocm-cmake, rocm-core, rocm-dbgapi, rocm-debug-agent, rocm-device-libs, rocm-gdb, rocm-hip-runtime, rocm-language-runtime, rocm-ocl-icd, rocm-opencl, rocm-opencl-dev, rocm-opencl-icd-loader, rocm-opencl-runtime, rocm-smi-lib, rocm-utils, rocminfo, rocprofiler, rocprofiler-dev, rocprofiler-plugins, rocprofiler-register, roctracer, roctracer-dev |
Provides: | amd-smi-lib, comgr, hip, hip-dev, hip-doc, hip-runtime-amd, hip-samples, hipcc, hsa-amd-aqlprofile, hsa-rocr, hsa-rocr-dev, libdrm-amdgpu-amdgpu1, opencl-driver, openmp-extras-runtime, rocdecode, rocdecode-dev, rocjpeg, rocjpeg-dev, rocm-cmake, rocm-core, rocm-dbgapi, rocm-debug-agent, rocm-device-libs, rocm-gdb, rocm-hip-runtime, rocm-language-runtime, rocm-ocl-icd, rocm-opencl, rocm-opencl-dev, rocm-opencl-icd-loader, rocm-opencl-runtime, rocm-smi-lib, rocm-utils, rocminfo, rocprofiler, rocprofiler-dev, rocprofiler-plugins, rocprofiler-register, roctracer, roctracer-dev |
Submitter: | grmat |
Maintainer: | sperg512 (luciddream) |
Last Packager: | luciddream |
Votes: | 133 |
Popularity: | 0.47 |
First Submitted: | 2016-12-01 03:45 (UTC) |
Last Updated: | 2025-04-11 22:54 (UTC) |
« First ‹ Previous 1 .. 5 6 7 8 9 10 11 12 13 14 15 .. 81 Next › Last »
Still working with my RX560.
Thanks, @luciddream!
Sorry for the delay I've been super busy this weekend (mostly because of election day in my country). I will make a release tomorrow.
For anyone else having trouble with magma-hip, here is a PKGBUILD which doesn't own /opt/rocm: https://pastebin.com/raw/HJtXHtqb
I don't understand why it's too much work, I only changed the line I mentioned and replaced 5 references to /opt/rocm-5.7.0/
into /opt/rocm/
in the PKGBUILD (eg echo /opt/rocm-5.7.0/opencl/lib > "$pkgdir/etc/ld.so.conf.d/opencl-amd.conf"
-> echo /opt/rocm/opencl/lib > "$pkgdir/etc/ld.so.conf.d/opencl-amd.conf"
).
Anyway I'm happy to have something that works however you do it so thank you.
@trougnouf
That's too much work (you could just install magma-hip in another directory). In any case I left a comment to the maintainers here
I replaced ln -s "/opt/rocm-5.7.0" "$pkgdir/opt/rocm"
with mv "${pkgdir}/opt/rocm-5.7.0" "$pkgdir/opt/rocm"
(and replaced the /opt/rocm
paths that follow and made the same mv
in opencl-amd-dev) and everything works well with PyTorch.
(I also replaced mv "${srcdir}/opt/" "${pkgdir}/"
with cp -r "${srcdir}/opt/" "${pkgdir}/"
so that subsequent builds don't fail, I guess that doesn't matter, and it's probably done to save space but that makes no difference on copy-on-write filesystems.)
@tougnouf I'm not an expert with packaging but I don't believe magma-hip needs to be installed in /opt/rocm
directory. I would contact magma-hip maintainer.
edit: I also compiled magma-hip from the PKGBUILD into a different directory and I ran a couple examples it works fine for me, so I can confirm it doesn't need to be inside rocm directory.
pc@home /opt/magma-hip/share/magma/example> ./example_sparse_operator
iterations: 350 residual: 7.7600e-15
values:
-1050.0000
-2097.0000
-3141.0000
-4182.0000
-5220.0000
...
@trougnouf I'll check it out and see what can be done.
I'm having issues upgrading with pacman -Syu
: magma-hip: /opt/rocm exists in filesystem (owned by opencl-amd)
.
removing magma-hip breaks dependency 'magma-hip' required by python-pytorch-opt-rocm
.
I have updated the package to 5.7.0. It's obvious the package is becoming larger, and the next version (6.0) will change the structure completely. I will keep monitoring to see the best options to split the files (and add missing dependencies)
I believe this might also be the last version that legacy OpenCL is supported, judging from the warning I get:
WARNING: legacy OpenCL is deprecated and will be removed soon.
Pinned Comments
nho1ix commented on 2023-12-29 08:43 (UTC) (edited on 2024-02-10 07:13 (UTC) by nho1ix)
Note for anyone who has a Polaris GPU (Radeon RX 5xx) debugging issues with this package; Packages that use OpenCL like clinfo or davinci-resolve-studio will need you to downgrade opencl-amd to 1:5.7.1-1 as well as amdgpu-pro-oglp to 23.10_1620044-1 to avoid coredumps & segfaults.
DVR would not open unless these 2 packages were downgraded (along with their dependencies). Had to figure it out the hard way after hours using valgrind and rebooting over and over. Hopefully someone else will not have to pull their hair out trying to resolve their issue.