Commit Graph
845640 Commits
Author SHA1 Message Date
Sv. Lockal b5c02c9cd9 sci-libs/rocRAND: add 6.1.1
Signed-off-by: Sv. Lockal <lockalsash@gmail.com>
Signed-off-by: Sam James <sam@gentoo.org>
2024-06-26 10:19:16 +01:00
Sv. Lockal b0559388f6 sci-libs/rocSOLVER: add 6.1.1
Signed-off-by: Sv. Lockal <lockalsash@gmail.com>
Signed-off-by: Sam James <sam@gentoo.org>
2024-06-26 10:19:15 +01:00
Sv. Lockal 342f75299a sci-libs/rocSPARSE: add 6.1.1
Also add myself as a maintainer

Signed-off-by: Sv. Lockal <lockalsash@gmail.com>
Signed-off-by: Sam James <sam@gentoo.org>
2024-06-26 10:19:15 +01:00
Sv. Lockal 3304c78b2c sci-libs/rocPRIM: add 6.1.1
Changes:
* Dropped most of sed calls, not needed anymore
* Device access is not needed to configure
* Added myself as a maintainer

Signed-off-by: Sv. Lockal <lockalsash@gmail.com>
Signed-off-by: Sam James <sam@gentoo.org>
2024-06-26 10:19:14 +01:00
Sv. Lockal c967168725 dev-util/roctracer: add 6.1.1
Other changes:
* Add myself as maintainer

Signed-off-by: Sv. Lockal <lockalsash@gmail.com>
Signed-off-by: Sam James <sam@gentoo.org>
2024-06-26 10:19:14 +01:00
Sv. Lockal 455a242704 sci-libs/composable-kernel: add 6.1.1
Changes:
* add patch for Clang 17 compatibility (official build uses Clang 18)
* add patch for "Could NOT find Git (missing: GIT_EXECUTABLE)"
* drop dev-libs/half dependency in all versions (not used)
* rename ROCmSoftwarePlatform -> ROCm in URLs

Signed-off-by: Sv. Lockal <lockalsash@gmail.com>
Signed-off-by: Sam James <sam@gentoo.org>
2024-06-26 10:19:13 +01:00
Sv. Lockal 3c5c14db79 dev-util/Tensile: add 6.1.1
Changes:
* fix USE=test dependency for dev-python/joblib (in 5.7.1 and 6.1.1)
* ReplacementKernels-cov3 directory does not exist anymore
* update expand-isa-compatibility patch to not use removed gcnArch field
* update llvm eclass to r1
* add LLVM_COMPAT 18

Signed-off-by: Sv. Lockal <lockalsash@gmail.com>
Signed-off-by: Sam James <sam@gentoo.org>
2024-06-26 10:19:13 +01:00
Sv. Lockal 3456ce4e5f dev-libs/rccl: add 6.1.1
Changes since 5.7.1:
* remove-chrpath patch is not needed now
* bad percent escape fix is not needed now
* addpredict in src_configure is not needed (compilation should not access device anyways)
* removing extra copy of headers is not needed
* new patch for missing ${ROCM_PATH}/.info/version is needed now
* rename ROCmSoftwarePlatform to ROCm in urls
* fix tests directory (in 5.7.1 too)

Signed-off-by: Sv. Lockal <lockalsash@gmail.com>
Signed-off-by: Sam James <sam@gentoo.org>
2024-06-26 10:19:12 +01:00
Sv. Lockal 22cc875cef dev-util/hipify-clang: add 6.1.1
Changes:
* fix-clang-libs.patch replaced with CMAKE_PREFIX_PATH
* renamed ROCm-Developer-Tools to ROCm in urls

Signed-off-by: Sv. Lockal <lockalsash@gmail.com>
Signed-off-by: Sam James <sam@gentoo.org>
2024-06-26 10:19:12 +01:00
Sv. Lockal a838a3d1b0 dev-util/rocm-smi: add 6.1.1
Changes:
* rework soname patch to use official/Fedora soversion: librocm_smi64.so.6 (was librocm_smi64.so.1 as in Debian)
* rename RadeonOpenCompute -> ROCm
* add myself as a maintainer

Signed-off-by: Sv. Lockal <lockalsash@gmail.com>
Signed-off-by: Sam James <sam@gentoo.org>
2024-06-26 10:19:11 +01:00
Sv. Lockal f5f1a37a49 dev-libs/roct-thunk-interface: drop 6.0.0-r1
Signed-off-by: Sv. Lockal <lockalsash@gmail.com>
Signed-off-by: Sam James <sam@gentoo.org>
2024-06-26 10:19:11 +01:00
Sv. Lockal dfea04f2c4 dev-libs/rocr-runtime: drop 6.0.0-r2, improve dependencies for 6.1.1
Signed-off-by: Sv. Lockal <lockalsash@gmail.com>
Signed-off-by: Sam James <sam@gentoo.org>
2024-06-26 10:19:10 +01:00
Sv. Lockal a14fcb6bbd dev-libs/rocm-device-libs: drop 6.0.0, add symlink for clang in 6.1.1
Signed-off-by: Sv. Lockal <lockalsash@gmail.com>
Signed-off-by: Sam James <sam@gentoo.org>
2024-06-26 10:19:10 +01:00
Sv. Lockal c3ea8402eb dev-build/rocm-cmake: add 6.1.1
Changes comparing to 5.7.1:
* rename RadeonOpenCompute -> ROCm in url
* patch annoying warnings
* add myself to maintainers
* fix installation of license file

Signed-off-by: Sv. Lockal <lockalsash@gmail.com>
Signed-off-by: Sam James <sam@gentoo.org>
2024-06-26 10:19:09 +01:00
Sv. Lockal aa4e134afd dev-util/hipcc: drop 6.0.0, improve paths for 6.1.1
Signed-off-by: Sv. Lockal <lockalsash@gmail.com>
Signed-off-by: Sam James <sam@gentoo.org>
2024-06-26 10:19:09 +01:00
Sv. Lockal 30f562d5e8 dev-util/hip: drop 6.0.2
Signed-off-by: Sv. Lockal <lockalsash@gmail.com>
Signed-off-by: Sam James <sam@gentoo.org>
2024-06-26 10:19:09 +01:00
Sv. Lockal 50057dff3a dev-libs/half: move half.hpp from /usr/include to /usr/include/half
Previous idea to install header to /usr/include was unfortunetely not very good.
As Gentoo ships version from ROCm/half, correct place should be /usr/include/half
per https://github.com/ROCm/half/blob/rocm-6.0.2/CMakeLists.txt#L27

When half.hpp is installed directly into /usr/include, it causes issues with every ROCm component,
including MIOpen, MIVisionX, AMDMIGraphX, rpp, MIFin, rocAL. These projects as well as some other
non-ROCm projects include <half/half.hpp>.

This change is added with ebuild revbump, with few followup commits:
* sci-libs/composable-kernel-5.7.1-r1 will drop dev-libs/half from dependencies (because it was never needed)
* sci-libs/miopen 5.1.3 and 5.7.1 should use -DHALF_INCLUDE_DIR

Other changes:
* Add myself to maintainers
* Change HOMEPAGE to https://github.com/ROCm/composable_kernel (because sourceforge code is not used)
* Rename ROCmSoftwarePlatform -> ROCm

Signed-off-by: Sv. Lockal <lockalsash@gmail.com>
Signed-off-by: Sam James <sam@gentoo.org>
2024-06-26 10:19:08 +01:00
Sv. Lockal b586bf0bd3 dev-util/hip: fix compilation with musl
Upstream pull-requests:
* https://github.com/ROCm/clr/pull/83
* https://github.com/ROCm/hip-tests/pull/463

Signed-off-by: Sv. Lockal <lockalsash@gmail.com>
Signed-off-by: Sam James <sam@gentoo.org>
2024-06-26 10:19:08 +01:00
Sv. Lockal fc6671b5a0 dev-libs/rocm-comgr: drop 6.0.0, cleanup in 6.1.1 patches
* fix hip compiler on musl profile
* fix tests
* make 6.1.1 compatible with LLVM 18

Signed-off-by: Sv. Lockal <lockalsash@gmail.com>
Signed-off-by: Sam James <sam@gentoo.org>
2024-06-26 10:19:07 +01:00
Sv. Lockal a7fd87113a sci-libs/caffe2: limit rocm libs to 5.7*. 6.x only works with >=caffe2-2.3.0
Signed-off-by: Sv. Lockal <lockalsash@gmail.com>
Signed-off-by: Sam James <sam@gentoo.org>
2024-06-26 10:19:07 +01:00
Sv. Lockal 8b7f97c964 dev-util/roctracer: lock roctracer-6.1.1 to compatible dev-util/hip
Attempt to build roctracer-6.1.1 with hip-5.7.1 fails with "hip/hip_deprecated.h: No such file or directory".
Leave dev-libs/rocr-runtime version unset, as it is set in dev-util/hip anyways.

Signed-off-by: Sv. Lockal <lockalsash@gmail.com>
Signed-off-by: Sam James <sam@gentoo.org>
2024-06-26 10:19:06 +01:00
Sv. Lockal d3c9b5ca81 dev-util/hip: lock dev-util/hipcc to compatible versions
Attempt to use hip-6.1.1 with hipcc-5.7.1 results in clang-17-based hipcc linkage errors with LLVM 18 rocm-device-libs bytecode
Also lock hip-5.7.1 to hipcc-5.7.1

Signed-off-by: Sv. Lockal <lockalsash@gmail.com>
Signed-off-by: Sam James <sam@gentoo.org>
2024-06-26 10:19:06 +01:00
Sv. Lockal ff6d2e781a dev-libs/rocr-runtime: set upper limit for dev-libs/rocm-device-libs
New rocm-device-libs (like 6.1.1) are built with LLVM 18 and can't be used with LLVM 17 rocr-runtime-5.x
Also specifically for 6.0.0 lock rocm-device-libs to 6.0, as both are LLVM 17

Signed-off-by: Sv. Lockal <lockalsash@gmail.com>
Signed-off-by: Sam James <sam@gentoo.org>
2024-06-26 10:19:05 +01:00
Yiyang Wu 766f19ce12 dev-libs/roct-thunk-interface: skip unsupported test
Signed-off-by: Yiyang Wu <xgreenlandforwyy@gmail.com>
Signed-off-by: Sam James <sam@gentoo.org>
2024-06-26 10:19:05 +01:00
Sv. Lockal 02b51f39e5 dev-util/hip: use llvm-r1 and add rocm_version.h file
Signed-off-by: Sv. Lockal <lockalsash@gmail.com>
Signed-off-by: Yiyang Wu <xgreenlandforwyy@gmail.com>
Signed-off-by: Sam James <sam@gentoo.org>
2024-06-26 10:19:04 +01:00
Sv. Lockal 7535fe5e04 dev-util/hipcc: fix RDEPDEND; use llvm-r1.eclass
* update llvm eclass to r1, allowing to specify LLVM version more precisely
* add compiler-rt to RDEPEND, as hipcc automatically links to libclang_rt.builtins-x86_64.a

Signed-off-by: Sv. Lockal <lockalsash@gmail.com>
Signed-off-by: Sam James <sam@gentoo.org>
2024-06-26 10:19:04 +01:00
Sv. Lockal f2459b58fa dev-util/roctracer: support LLVM 18 and llvm-r1.eclass
Signed-off-by: Sv. Lockal <lockalsash@gmail.com>
Signed-off-by: Yiyang Wu <xgreenlandforwyy@gmail.com>
Signed-off-by: Sam James <sam@gentoo.org>
2024-06-26 10:19:03 +01:00
Sv. Lockal fcfa315ab6 dev-libs/rocm-comgr: include and call external hipcc to fix tests
fix-comgr-default-flags.patch supersedes HIPIncludePath-not-needed.patch
enforce-oop-compiler.patch calls external hipcc to avoid issues (e.g.
name_expression_map_test ), which means hipcc should be in RDEPEND.

Bug: https://github.com/ROCm/clr/issues/82
Signed-off-by: Sv. Lockal <lockalsash@gmail.com>
Signed-off-by: Yiyang Wu <xgreenlandforwyy@gmail.com>
Signed-off-by: Sam James <sam@gentoo.org>
2024-06-26 10:19:03 +01:00
Yiyang Wu f91f21df49 dev-libs/rocm-device-libs: ensure correct clang selected
Originally-authored-by: Sv. Lockal <lockalsash@gmail.com>
Signed-off-by: Yiyang Wu <xgreenlandforwyy@gmail.com>
Signed-off-by: Sam James <sam@gentoo.org>
2024-06-26 10:19:02 +01:00
Yiyang Wu b03e1a9783 dev-util/roctracer: add 6.1.1
Update remote-id

1 test failed out of 22:

Failed load_unload_reload_test due to llvm error:
CommandLine Error: Option 'disassemble' registered more than once!

Signed-off-by: Yiyang Wu <xgreenlandforwyy@gmail.com>
Signed-off-by: Sam James <sam@gentoo.org>
2024-06-26 10:19:02 +01:00
Yiyang Wu ba648de05e dev-util/hip: add 6.1.1
Retains FindHIP.cmake since some package like roctracer and rocprofiler
use it

Signed-off-by: Yiyang Wu <xgreenlandforwyy@gmail.com>
Signed-off-by: Sam James <sam@gentoo.org>
2024-06-26 10:19:01 +01:00
Yiyang Wu 3583919cf2 dev-util/hip: Fix compilation of hipMathFunctions
Clang-17 does not recognize -fallow-half-arguments-and-returns
Upstream PR: https://github.com/ROCm/hip-tests/pull/443

Signed-off-by: Yiyang Wu <xgreenlandforwyy@gmail.com>
Signed-off-by: Sam James <sam@gentoo.org>
2024-06-26 10:19:01 +01:00
Sv. Lockal d066276c6e dev-util/hip: fix manifest and add extend-isa-compatibility-check patch for 6.0.0
Other changes:
* update patch for gfx1012, repeating https://salsa.debian.org/rocm-team/rocm-hipamd/-/commit/76b378eb687133267874c045396b8cb671bb50f1
* update llvm eclass to r1
* add myself as a maintainer

Signed-off-by: Sv. Lockal <lockalsash@gmail.com>
Signed-off-by: Yiyang Wu <xgreenlandforwyy@gmail.com>
Signed-off-by: Sam James <sam@gentoo.org>
2024-06-26 10:19:00 +01:00
Yiyang Wu f3d41d98dd dev-util/hip: fix tests and dependency on hipcc, bump to 6.0.2
1. Correct test SRC_URI
2. Update rocm_agent_enumerator-location.patch to
   hipcc-system-install.patch
3. dev-util/hipcc does not provide libraries to be linked in, so should
   not be in DEPEND, just RDEPEND; it is used as a compiler wrapper if
   building test binaries, thus should be in BDEPEND if test enabled.
4. Remove unused BUILD_HIPIFY_CLANG
5. Specify CMAKE_MODULE_PATH to prefer bundled catch (which includes
   commands designed for hip)

Signed-off-by: Yiyang Wu <xgreenlandforwyy@gmail.com>
Signed-off-by: Sam James <sam@gentoo.org>
2024-06-26 10:19:00 +01:00
Yiyang Wu 46c1f7dd59 dev-util/hipcc: add 6.1.1
Clang can auto detects the new rocm-device-lib paths, so specifying
DEVICE_LIB_PATH is not needed

Clang-18 can compile GPU kernel ignoring stack-protector-strong, so
-fno-stack-protector is not needed

Signed-off-by: Yiyang Wu <xgreenlandforwyy@gmail.com>
Signed-off-by: Sam James <sam@gentoo.org>
2024-06-26 10:18:59 +01:00
Sv. Lockal 09519cfe19 dev-util/hipcc: use more precise dependencies
* update llvm eclass to r1, allowing to specify LLVM version more precisely
* add compiler-rt to RDEPEND, as hipcc automatically links to libclang_rt.builtins-x86_64.a

Signed-off-by: Sv. Lockal <lockalsash@gmail.com>

dev-util/hipcc: add myself as a maintainer

Signed-off-by: Sv. Lockal <lockalsash@gmail.com>
Signed-off-by: Sam James <sam@gentoo.org>
2024-06-26 10:18:59 +01:00
Yiyang Wu fc73628788 dev-util/hipcc: Revert "Fix invalid path"
This sed command has no effect on hipcc.pl.

I guess it want to change ${ROCM_PATH}/bin/rocm_agent_enumerator to
/usr/bin/rocm_agent_enumerator, but the original is correct, and the
later one is not prefixified.

Reverts: 4846734865.
Signed-off-by: Sam James <sam@gentoo.org>
2024-06-26 10:18:58 +01:00
Yiyang Wu 0a373cdc21 dev-util/hipcc: handle hipvars.pm with perl-functions eclass
Signed-off-by: Yiyang Wu <xgreenlandforwyy@gmail.com>
Signed-off-by: Sam James <sam@gentoo.org>
2024-06-26 10:18:58 +01:00
Yiyang Wu 155d0ca1bc dev-libs/rocm-comgr: add 6.1.1
Backport many patches to fix tests for clang 18

Signed-off-by: Yiyang Wu <xgreenlandforwyy@gmail.com>
Signed-off-by: Sam James <sam@gentoo.org>
2024-06-26 10:18:58 +01:00
Sv. Lockal 20c3251ede dev-libs/rocm-comgr: add extend-isa-compatibility-check patch for 6.0.0
This patch together with dev-util/hip and dev-libs/rocr-runtime patches allows to load
code object from fat binaries based on compatibility score for given ISA instead of full match.

Other changes:
* Rename RadeonOpenCompute -> ROCm
* Add myself to maintainers
* migrate llvm eclass to r1

Signed-off-by: Sv. Lockal <lockalsash@gmail.com>
Signed-off-by: Sam James <sam@gentoo.org>
2024-06-26 10:18:57 +01:00
Yiyang Wu 69feaee27a dev-util/rocminfo: drop 5.1.3, 5.3.3, 5.4.3, 5.5.1
Signed-off-by: Yiyang Wu <xgreenlandforwyy@gmail.com>
Signed-off-by: Sam James <sam@gentoo.org>
2024-06-26 10:18:57 +01:00
Yiyang Wu 8190ae7011 dev-util/rocminfo: add 6.1.0
Update remote-id in metadata

Signed-off-by: Yiyang Wu <xgreenlandforwyy@gmail.com>
Signed-off-by: Sam James <sam@gentoo.org>
2024-06-26 10:18:56 +01:00
Sv. Lockal 43a35716e3 dev-libs/rocr-runtime: fix crash in musl and compile issue with ld.lld
Upstream issues:
* https://github.com/ROCm/ROCR-Runtime/issues/181#issuecomment-2096231767
* https://github.com/ROCm/ROCR-Runtime/issues/204

Signed-off-by: Sv. Lockal <lockalsash@gmail.com>
Signed-off-by: Sam James <sam@gentoo.org>
2024-06-26 10:18:56 +01:00
Yiyang Wu 914bd3b26c dev-libs/rocr-runtime: add 6.1.1
Update remote-id in metadata

Signed-off-by: Yiyang Wu <xgreenlandforwyy@gmail.com>
Signed-off-by: Sam James <sam@gentoo.org>
2024-06-26 10:18:55 +01:00
Sv. Lockal 2fc044d13f dev-libs/rocr-runtime: update rocr-runtime-5.7.1-musl patch to fix build failure
Closes: https://bugs.gentoo.org/927274
Signed-off-by: Sv. Lockal <lockalsash@gmail.com>
Signed-off-by: Sam James <sam@gentoo.org>
2024-06-26 10:18:55 +01:00
Sv. Lockal d6d4e60335 dev-libs/rocr-runtime: update extend-isa-compatibility-check patch for gfx1012
This repeats change in https://salsa.debian.org/rocm-team/rocr-runtime/-/commit/da5ad99a9819f42c7c090f95bedf92529637afdc
by Cordell Bloor <cgmb@slerp.xyz>

Other changes:
* rename RadeonOpenCompute -> ROCm
* update llvm eclass to r1
* add myself to maintainers list

Signed-off-by: Sv. Lockal <lockalsash@gmail.com>
Signed-off-by: Sam James <sam@gentoo.org>
2024-06-26 10:18:54 +01:00
Yiyang Wu 05679cda7e dev-libs/rocm-device-libs: symlink bitcode to clang lib path
This is the default search path for clang, so we don't need to specify
--rocm-device-lib-path or --hip-device-lib-path to other packages.

Closes: https://bugs.gentoo.org/922227
Signed-off-by: Yiyang Wu <xgreenlandforwyy@gmail.com>
Signed-off-by: Sam James <sam@gentoo.org>
2024-06-26 10:18:54 +01:00
Yiyang Wu e2d97a1342 dev-libs/rocm-device-libs: add 6.1.1
Update remote-id in metadata.

Upstream SRC_URI changed, from separate repo to subproject of ROCm
forked llvm. Borrow unpack function of llvm.org.eclass to unpack the
amd/device-libs component.

Remove shadowed RESTRICT="strip", because .bc files won't be stripped
so there's no need for RESTRICT=strip.

Some tests failed for older arch, probably due to inconsistency between
AMD forked llvm and upstream llvm:

  6 - compile_frexp__gfx600 (Failed)
  7 - compile_fract__gfx600 (Failed)
 12 - compile_fract__gfx700 (Failed)
 17 - compile_fract__gfx803 (Failed)

Signed-off-by: Yiyang Wu <xgreenlandforwyy@gmail.com>
Signed-off-by: Sam James <sam@gentoo.org>
2024-06-26 10:18:53 +01:00
Yiyang Wu 393a93bbd0 dev-util/rocminfo: use python-r1 to install python script
Signed-off-by: Yiyang Wu <xgreenlandforwyy@gmail.com>
Signed-off-by: Sam James <sam@gentoo.org>
2024-06-26 10:18:53 +01:00
Yiyang Wu 97d1ea9a07 dev-util/rocminfo: patches for builtin amdgpu & python 3.12
Signed-off-by: Yiyang Wu <xgreenlandforwyy@gmail.com>
Signed-off-by: Sam James <sam@gentoo.org>
2024-06-26 10:18:52 +01:00