Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 908501 - ROCm stack significantly out of date - core runtime ebuilds&patches for update provided
Summary: ROCm stack significantly out of date - core runtime ebuilds&patches for updat...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal enhancement
Assignee: Craig Andrews
URL:
Whiteboard:
Keywords: EBUILD, PATCH
Depends on:
Blocks:
 
Reported: 2023-06-14 19:09 UTC by Stefan Springer
Modified: 2023-09-18 00:40 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
5.5.1 ebuilds for the core runtime (rocm_ebuilds.tar.gz,61.48 KB, application/octet-stream)
2023-06-14 19:14 UTC, Stefan Springer
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Stefan Springer 2023-06-14 19:09:13 UTC
ROCm 5.4.4 has been released on Mar 22nd, and version 5.5.1 is available since May 24th, while the relevant Gentoo ebuilds are still stuck at 5.4.3.

Updating the ebuilds to 5.4.4 should be trivial, but 5.5.1 has introduced breaking changes, which require some deeper adjustments.

Qwinci from this github issue got most of the ebuilds working, while I patched rocm-device-libs:
https://github.com/RadeonOpenCompute/ROCm-Device-Libs/issues/94

What hasn't been adjusted yet, are those optional tools:
dev-util/rocm_bandwidth_test
dev-util/roctracer
dev-util/rocprofiler

These optional libraties are stuck at 5.1.3, but aren't needed to just get the runtime working:
sci-libs/hipBLAS
sci-libs/hipCUB
sci-libs/hipFFT
sci-libs/hipSPARSE

sci-libs/rocBLAS
sci-libs/rocFFT
sci-libs/rocPRIM
sci-libs/rocRAND
sci-libs/rocSOLVER
sci-libs/rocSPARSE
sci-libs/rocThrust

I'll provide an attachment with all the ebuilds that have been adjusted. Those are enough to run luxmark 3.1 w/ OpenCL on my gfx1030 (6800XT) and get HIP acceleration in Blender on Qwuinci's machine.

Reproducible: Always
Comment 1 Stefan Springer 2023-06-14 19:14:04 UTC
Created attachment 863826 [details]
5.5.1 ebuilds for the core runtime

This archive contains the ebuilds and new patches for:
dev-libs/rocm-comgr
dev-libs/rocm-device-libs
dev-libs/roc-opencl-runtime
dev-libs/rocr-runtime
dev-libs/roct-thunk-interface

dev-util/hip
dev-util/rocminfo
dev-util/rocm-cmake
dev-util/rocm-smi

They do compile and work, although I haven't tested that many different applications or any other hardware than Navi21. It would be nice if those could be pushed to the main Gentoo repo. Thank you!
Comment 3 Mike Lothian 2023-08-01 08:57:30 UTC
I'm going to add the 5.5.1 builds to the FireBurn overlay for laziness 

You might want to get a pull request created on https://github.com/gentoo/gentoo/pulls to get these upstream
Comment 4 Larry the Git Cow gentoo-dev 2023-09-03 06:37:38 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b82c9c796475c8d55d310405190c97a38f6d1c7e

commit b82c9c796475c8d55d310405190c97a38f6d1c7e
Author:     Patrick Lauer <patrick@gentoo.org>
AuthorDate: 2023-09-03 06:35:45 +0000
Commit:     Patrick Lauer <patrick@gentoo.org>
CommitDate: 2023-09-03 06:37:36 +0000

    dev-util/hip: add 5.5.1
    
    Closes: https://bugs.gentoo.org/908501
    Signed-off-by: Patrick Lauer <patrick@gentoo.org>

 dev-util/hip/Manifest                             |   4 +
 dev-util/hip/files/hip-5.5.1-disable-Werror.patch |  18 +++
 dev-util/hip/hip-5.5.1.ebuild                     | 152 ++++++++++++++++++++++
 3 files changed, 174 insertions(+)
Comment 5 Patrick Lauer gentoo-dev 2023-09-03 06:39:09 UTC
I've added all the 5.5.1 ebuilds from the provided tarball where they worked.

For 5.6.0 I think it's best to open a new bug to avoid having three different issues in one.

Thanks for all the work!
Comment 6 sozforex 2023-09-03 21:41:07 UTC
Here are some 5.6.0 ebuilds that work for me (llama.cpp using hipBLAS on gfx1031 card), if anyone is interested: 
https://github.com/littlewu2508/gentoo/pull/2
Comment 7 jospezial 2023-09-17 23:56:11 UTC
5.7.0 has been released.
Comment 8 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-09-18 00:40:24 UTC
New bugs, please.