Commit Graph
861428 Commits
Author SHA1 Message Date
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
Sv. Lockal 64d6491037 dev-libs/rocm-device-libs: add llvm-18 compatibility patch
Changes:
* add llvm-18 compatibility patch (bug: https://github.com/ROCm/ROCm-Device-Libs/issues/96)
* remove RESTRICT variable, it was shadowed and non-functional
* rename RadeonOpenCompute -> ROCm
* update llvm eclass to r1
* add comment about llvm 18 compatibility issue
* add myself to maintainers

Signed-off-by: Sv. Lockal <lockalsash@gmail.com>
Signed-off-by: Sam James <sam@gentoo.org>
2024-06-26 10:18:52 +01:00
Yiyang Wu 2477bbbc83 dev-libs/rocm-device-libs: fix tests
Also fix variable 'RESTRICT' may be shadowed

Signed-off-by: Yiyang Wu <xgreenlandforwyy@gmail.com>
Signed-off-by: Sam James <sam@gentoo.org>
2024-06-26 10:18:51 +01:00
Yiyang Wu b8b41ed264 dev-libs/roct-thunk-interface: add 6.1.1
Enable test suite: kfdtest

Add 3 patches to fix building kfdtest, two have upstream PR

Update remote-id in metadata

One test fails on 7900XT:
https://github.com/ROCm/ROCT-Thunk-Interface/issues/103

Signed-off-by: Yiyang Wu <xgreenlandforwyy@gmail.com>
Signed-off-by: Sam James <sam@gentoo.org>
2024-06-26 10:18:51 +01:00
Eli Schwartz 1e91fddc40 dev-python/doc8: fix overdependency on tomli
Since 1.0.0, it has supported using the stdlib tomllib when available:

https://github.com/PyCQA/doc8/commit/a3638de1337484b26da99dc5ea4287341b9ad9f6

Signed-off-by: Eli Schwartz <eschwartz93@gmail.com>
Signed-off-by: Sam James <sam@gentoo.org>
2024-06-26 10:03:50 +01:00
Eli Schwartz 050f75a4ee dev-python/doit: conditionalize tomli/tomlkit imports after stdlib tomllib
This project attempts to support every kitchen sink when it comes to
loading a toml file. And since 0.36.0 it also supports the
dev-python/tomli library:

https://github.com/pydoit/doit/commit/b2ed5ba798622d9ac1d2b50de81a4eb24e02f844

This was added by mgorny! :) It also supported tomllib at the same time.
But when someone else packaged it in commit 0e5347e6b3
this was overlooked. Drop the dependency on 3.11+.

Fixes: 0e5347e6b3
Signed-off-by: Eli Schwartz <eschwartz93@gmail.com>
Signed-off-by: Sam James <sam@gentoo.org>
2024-06-26 10:03:50 +01:00
Eli Schwartz d01709f3a9 app-misc/check-jsonschema: fix overdependency on tomli
Since version 0.19.2, it has supported using the stdlib tomllib when
available:

https://github.com/python-jsonschema/check-jsonschema/commit/615ff8a11cfb2e00a42ab7d13350ddf82d474841

Signed-off-by: Eli Schwartz <eschwartz93@gmail.com>
Signed-off-by: Sam James <sam@gentoo.org>
2024-06-26 10:03:49 +01:00
Eli Schwartz 4772c7fbbb app-misc/check-jsonschema: drop old
Signed-off-by: Eli Schwartz <eschwartz93@gmail.com>
Signed-off-by: Sam James <sam@gentoo.org>
2024-06-26 10:03:49 +01:00
Eli Schwartz f7a7c27b26 dev-util/pkgdev: add dependency on tomli for old impls
It is missing it in wheel metadata, and also in the ebuild metadata. It
is only necessary for versions of python that don't have it in the
stdlib, and all those are old versions, but that's no reason not to
depend correctly on it where needed.

The "doc" USE flag also depends on tomli and does so unconditionally. It
appears that it doesn't allow one to select specific USEDEPs, which is
interesting but ok.

Signed-off-by: Eli Schwartz <eschwartz93@gmail.com>
Signed-off-by: Sam James <sam@gentoo.org>
2024-06-26 10:03:48 +01:00
Eli Schwartz 9575f2cbee dev-util/gcovr: fix mysterious overdependency in initial 7.2 addition
In commit 0971ed4265, gcovr 7.2 was added
to the tree. As part of this, it gained a new upstream dependency on
tomli. However, the initial addition upstream was well-behaved -- it
tried the stdlib tomllib first, and fell back to tomli, and listed its
runtime dependency as:
```
"tomli >= 1.1.0 ; python_version < '3.11'"
```

See: https://github.com/gcovr/gcovr/commit/3e5a922de91bb7e63c0801d055b6ba67a2a83bc6

Nonetheless when added to gentoo, it was added without a conditional
dep. Rectify this.

Fixes: 0971ed4265
Signed-off-by: Eli Schwartz <eschwartz93@gmail.com>
Signed-off-by: Sam James <sam@gentoo.org>
2024-06-26 10:03:48 +01:00
Eli Schwartz 970a8b9182 dev-python/flit: drop 3.8.0
Signed-off-by: Eli Schwartz <eschwartz93@gmail.com>
Signed-off-by: Sam James <sam@gentoo.org>
2024-06-26 10:03:47 +01:00
Eli Schwartz 40f5eee93d dev-python/flit: remove useless 4 year old dependencies
requests_download hasn't been used since a deprecated feature available
as a pip "extra" was removed:
https://github.com/pypa/flit/commit/b9a8ecd6037b3b98452c6fa90697612075c03ef4

Arguably before then it should have been an optfeature but at this point
it is pointless to discuss -- the feature got dropped in flit 3.0.0.

tomli has never been a dependency at all. The first version of flit that
moved from "toml" (an abandoned project) to tomli, only used tomli_w in
flit, and relied on flit_core to handle all use of "tomli" (and
flit-core correctly depends on the stdlib tomllib where reasonable).

Signed-off-by: Eli Schwartz <eschwartz93@gmail.com>
Signed-off-by: Sam James <sam@gentoo.org>
2024-06-26 10:03:46 +01:00
Alfredo Tupone e6a1b6d1bb dev-ml/lablgtk: add 3.1.5
Signed-off-by: Alfredo Tupone <tupone@gentoo.org>
2024-06-26 10:31:20 +02:00