diff options
Diffstat (limited to 'dev-libs')
19 files changed, 523 insertions, 7 deletions
diff --git a/dev-libs/Manifest.gz b/dev-libs/Manifest.gz Binary files differindex e422634e5ebc..fc19c5c5cadc 100644 --- a/dev-libs/Manifest.gz +++ b/dev-libs/Manifest.gz diff --git a/dev-libs/hyperscan/Manifest b/dev-libs/hyperscan/Manifest index a469e535b0c8..875bbbe3009f 100644 --- a/dev-libs/hyperscan/Manifest +++ b/dev-libs/hyperscan/Manifest @@ -1,3 +1,5 @@ DIST hyperscan-5.4.0.tar.gz 1844963 BLAKE2B 1a5af88655854b4c1ec58e6663b6c9c4b6fca0aa9d3e4daad3992daf911b8f359f48a95b65e4f05c71aa644e0271471d016fafaca05d547b838a9c52ea016e27 SHA512 cfec3f43b9e8b3fbb2e761927f3a173c1230f2688da710ec7708f2941ce6f550a1d3cb48b0b0e2ccf709807390117a7e40047cb99190bcc341f37eb3da13ae62 +DIST hyperscan-5.4.1.tar.gz 1848831 BLAKE2B 8be2a05de04a8f32c723e35be16923470ef7dbda830cf0a08c87bfcaff49564f9104f1b48b26a93a7fb157ac74e531841ea43db75bbfe3f836b98e748ccdfd45 SHA512 e9404946287e32604798dc8f9415efe8a47e464cf6e29e5c534ca6074f3674d2d38d4600787d3035ba2898a40e5048fbcd03e23f387ce43f81de4b6c63f70035 EBUILD hyperscan-5.4.0.ebuild 1367 BLAKE2B b14f3176e07a04c02e17e6502c84d1beed9602a90468bfc87d8a704f0c7241a3c08c0dc83e167790c7d69035db60dce76b761b7a937fe2b555c9a8fe8410fd07 SHA512 2be8b307239b8b1726cc2979fe2e2fca264b359c162a0909319465b16ec02e12d837b8f3d8e382bd875d9fb28339d8eb4b01e2ec095b4f0432bdc2c00d28a77d +EBUILD hyperscan-5.4.1.ebuild 1238 BLAKE2B 560aa417cfc687df6652f9e7e6190ea09c09f890e2301d14bdb48d44d99a21953c7eaa1f471b1130e3675d0920ef958ba34e9d86c360e04ad8542d94eb7ce344 SHA512 5f71fbbb708e293ad3f1c98ef0cd8013f14313dcb5f4c976d00bb9de0ca5a3080a17424829b33bb8c675043f8d38aad23f2c4c42e08dbd0099e4b7120c2da1fd MISC metadata.xml 471 BLAKE2B 92184c0b906267d9d424de9107bff13927827c8356d7ed398c9e43c055fab60f93cd9703cdecde00e2a054b2bfd74f0e5efd8c8eb7acb5dd988c9b877f2d30a1 SHA512 c93ebc4f4088dc33ee9f0bad4bda13fa53276fb8eeaae484f260d4694665eca36e63b4fd7427b2dd5c6ae4546ea0ba5361ed3c45865a0d3cd3421c0023d9b4d6 diff --git a/dev-libs/hyperscan/hyperscan-5.4.1.ebuild b/dev-libs/hyperscan/hyperscan-5.4.1.ebuild new file mode 100644 index 000000000000..4377ae025213 --- /dev/null +++ b/dev-libs/hyperscan/hyperscan-5.4.1.ebuild @@ -0,0 +1,57 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{9..11} ) + +inherit cmake flag-o-matic python-any-r1 + +DESCRIPTION="High-performance regular expression matching library" +SRC_URI="https://github.com/intel/hyperscan/archive/v${PV}.tar.gz -> ${P}.tar.gz" +HOMEPAGE=" + https://www.hyperscan.io/ + https://github.com/intel/hyperscan +" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="-* ~amd64 ~x86" +IUSE="cpu_flags_x86_avx2 cpu_flags_x86_ssse3" + +RDEPEND="dev-libs/boost:=" +DEPEND="${RDEPEND}" +BDEPEND=" + ${PYTHON_DEPS} + dev-util/ragel +" + +# We can't default this to on as it's against the expectation of +# how CPU_FLAGS_* work for users. +REQUIRED_USE="cpu_flags_x86_ssse3" + +src_prepare() { + # Respect user -O flags + sed -i '/set(OPT_CX*_FLAG/d' CMakeLists.txt || die + + # upstream workaround + append-cxxflags -Wno-redundant-move + cmake_src_prepare +} + +src_configure() { + use cpu_flags_x86_ssse3 && append-flags -mssse3 + use cpu_flags_x86_avx2 && append-flags -mavx2 + + local mycmakeargs=( + -DBUILD_SHARED_LIBS=ON + -DBUILD_STATIC_AND_SHARED=OFF + -DBUILD_EXAMPLES=OFF + -DFAT_RUNTIME=false + ) + cmake_src_configure +} + +src_test() { + "${BUILD_DIR}"/bin/unit-hyperscan || die +} diff --git a/dev-libs/openssl/Manifest b/dev-libs/openssl/Manifest index 0bb2b5bf4570..996a974a18d9 100644 --- a/dev-libs/openssl/Manifest +++ b/dev-libs/openssl/Manifest @@ -1,6 +1,6 @@ AUX gentoo.config-1.0.2 5302 BLAKE2B b699533ed86c48c0d033092b4d901de837a6a495113925099d82cd2f768b521073a3caad06921e2f8d3ecdf4c4ef617ed9b9aba119d4a910b72f9c086b9fd21f SHA512 f8653c57ef8e3a3b3b762f66ef556c0012dfc8b997f0bdbe504f92d0901c0dc9fefa2c3e8244175d802fb83437533b7928b6db38b93fdd5a8ffefa79414106a1 AUX gentoo.config-1.0.3 5300 BLAKE2B c2788ef1b790bdf2cadaf302e9576984f4536c7cf6e48610f986468ee712cf6fc3fed3bce1e0d2eea296811edc3266a6a248b2faa48557cb430e101ea2cea6ff SHA512 6609e9180bfbc6b9e365b53115da4f83e837aac4edc24e18cd09a2c4595d478c14476d0a1f5387ce5130bcf3effeeac605859f69ac7923408a1809e9c8b13489 -AUX gentoo.config-1.0.4 5538 BLAKE2B af8c3079d2a6bc1adc7192c71e09ab743dc5bad2744b304b52510f11b1d1e1a9208865d006e2667a6bd709817fd29c68c30a6d08fa2b442af60022b39b061957 SHA512 ec951559ea4af58d213ace5753129abcde10fa07d08bfe59b615a7e0d52fce628520b906df4015a8f128dc2be707ab05c801aac83d6347fcacfeb00b2ae02f8d +AUX gentoo.config-1.0.4 5624 BLAKE2B 3db6ca219dae54bb33abfec0b91b17b453222d50884f31e294a47c985fde99ae8ed3189ad41b0b2d76af4006dc547050c38ce19413b2b7d8307d23c5b510f4b6 SHA512 d912c4adb5508c28f342c2741ef1d1bbc870073a3d4894ad8c6c5b9866e842430f5a23d2f6704d2d449546568313b6438b36b5012bcc037fedb5c8181a9de7de AUX openssl-1.1.0j-parallel_install_fix.patch 515 BLAKE2B a1bcffce4dc9e0566e21e753cf1a18ee6eac92aca5880c50b33966d8ecb391f7430e1db6ea5a30ee4e3a9d77fb9e5542e864508b01c325011e368165e079a96c SHA512 0badd29ec8cffd95b2b69a4b8f8eecfc9ea0c00a812b298a650ee353e3965147fd2da1f9058d2d51744838f38168257b89aaf317287c55a7b76f16a69c781828 AUX openssl-1.1.1i-riscv32.patch 2557 BLAKE2B 97e51303706ee96d3fae46959b91d1021dcbb3efa421866f6e09bbee6287aae95c6f5d9498bd9d8974b0de747ef696242691cfebec90b31dc9e2cc31b41b81ec SHA512 f75ae1034bb9dda7f4959e8a5d6d0dae21200723d82aebfbea58bd1d7775ef4042e49fdf49d5738771d79d764e44a1b6e0da341d210ea51d21516bb3874b626a AUX openssl-3.0.7-x509-CVE-2022-3996.patch 1126 BLAKE2B 9d873e4e63417a4e25b764e1f639a118dc39493e97f4de2ec436058d4515702daae251799ec656c27139e9c2a46ea750c5f0cdaf032d5e7fe3b9916aa5a9fbb1 SHA512 c0e319485e8b3dd02854e0ef1e3a2bee2c5dc01ecc470fad9e4425f43ae4fdb1c4fa70441abed9bdb7833dfdf7e1da164a0461354538d71e4a185bbd80bf0b47 diff --git a/dev-libs/openssl/files/gentoo.config-1.0.4 b/dev-libs/openssl/files/gentoo.config-1.0.4 index 573a97de3543..79f6331f090c 100644 --- a/dev-libs/openssl/files/gentoo.config-1.0.4 +++ b/dev-libs/openssl/files/gentoo.config-1.0.4 @@ -77,7 +77,9 @@ fi # Detect target arch machine="" +submachine="" chost_machine=${CHOST%%-*} +[[ ${CC} == *clang* ]] && submachine="-clang" case ${system} in linux) case ${chost_machine}:${ABI} in @@ -95,7 +97,7 @@ linux) # hppa64*) machine=parisc64;; hppa*) machine="generic32 -DB_ENDIAN";; i[0-9]86*|\ - x86_64*:x86) machine=x86;; + x86_64*:x86) machine=x86${submachine};; ia64*) machine=ia64;; loongarch64*) machine="loongarch64 -DL_ENDIAN" system=linux64;; m68*) machine="latomic -DB_ENDIAN";; @@ -125,7 +127,7 @@ linux) s390x*) machine=s390x system=linux64;; s390*) machine="generic32 -DB_ENDIAN";; x86_64*:x32) machine=x32;; - x86_64*) machine=x86_64;; + x86_64*) machine=x86_64${submachine};; esac ;; BSD) diff --git a/dev-libs/rapidjson/Manifest b/dev-libs/rapidjson/Manifest index 464f2532775e..789ac075aaa6 100644 --- a/dev-libs/rapidjson/Manifest +++ b/dev-libs/rapidjson/Manifest @@ -3,6 +3,6 @@ AUX rapidjson-1.1.0-system_gtest.patch 1274 BLAKE2B 69e69c60b5a2d2e913e1bf64cc62 AUX rapidjson-1.1.0-valgrind_optional.patch 816 BLAKE2B 95dc0748bad3042ac912ab57d423ada4c8ce3e19fb8a1b3fb2e9a0b9958355c5dd29325e3b238a34f9fe5ec1b6dbf7ba51e836211d1e9e1644f6ea2fddedbbd2 SHA512 b4841d4f7f19e264950fc56a0521bcf4268b8ab23c806d02cefe21d9f937eee90d9a7bb53e4522f24729a08d800e46b2a41be6d613ea2f06166b42eafafb315c AUX rapidjson-1.1.1-valgrind_optional.patch 870 BLAKE2B 6a08f2d33af7e29a60452d3cd9816b38b42a37e405997bb558481066af41244e15e9f1e2a3a2f50b9efbd2414b4e76d45507e58beeb811b82d9e6c47d3475bfa SHA512 b15a54c6b287d715289e3a758d1a9b768a2c0d5e0bea5626231dfe6c824febb8b12d30f654e6b29a72d79ad541af5948c6f6297bff9a67d762aaeb50b29e9ef1 DIST rapidjson-1.1.0.tar.gz 1019402 BLAKE2B e1564b3cfa020f76437b0a35048a42ff2cd98b5ce285e63f228e158885182e5cecda13407cdf30c03fa39b47cbc579ff0065f6c2682d04b806e8f9ea8d36fc4e SHA512 2e82a4bddcd6c4669541f5945c2d240fb1b4fdd6e239200246d3dd50ce98733f0a4f6d3daa56f865d8c88779c036099c52a9ae85d47ad263686b68a88d832dff -EBUILD rapidjson-1.1.0-r3.ebuild 1400 BLAKE2B 0ded67bc026547dbb0ec4e6723bf97299912c7b333be7d870103a2f55e986214a1e0061ff68eeb5260a50c40873f0d0f63967316c5eac91509d4012a45cc2a6e SHA512 3a850c60cd93864b1d5c08162d8c2b3ca7d50fb76c408036529c48d34fb70811b74abde18dbb3786a77ea207767b2a8c838b6c702ab91b30ed8950643ea3541c -EBUILD rapidjson-9999.ebuild 1372 BLAKE2B 63ce9fe9810b4634c309033bbc6d1fe8dfec760054bd729dee5fd09bd3fcade93b01e404bf8668dfd9ee796d5ffc1c7834b2b1d67af8fceeafa2a037a776c640 SHA512 e73764145a92116b5bc65d4c336f775e4ab142b560d9ec26b9a63b41d688ac4579887b8da9b720142ee05401d9460bd4c9aac89db01bb2edf6f23a341a11a15e +EBUILD rapidjson-1.1.0-r3.ebuild 1469 BLAKE2B 320c7dc1a88df37f78982b043c76c0541b90dbc9ea85c0c9a2acfa4e03297e42e024478b3c3c8d911225ae513370d87352e13053c7f2710004bfe2f8368c1fb0 SHA512 4c60dd94172e55ef044171bf59e9f863b62d2280439ae8d6f510a036f5e67dd489463a68988b5f4f0596d528587dfe8a3c7b657d963556a01099c1e16423bdcb +EBUILD rapidjson-9999.ebuild 1470 BLAKE2B d314474a59b32d56526babda7e9b1b0cfc8a10f33aad6c995412449f4baed76f9841da593662fac1b8a8341d9938889e279ea04d66cefc4e8ebd69151a8e94d1 SHA512 b12cb90eacfdcf667464dbc77529b47302802c0f7cf25d55f13a0912f7230cfbcce311a75152427ba1dc9dc7157fe173a8faada2594ad63a530ba678f019ea93 MISC metadata.xml 396 BLAKE2B d177f4924bccb6e3900f0c431d7924334b0b22fb29463afbaaef3f0277aaa762829d1967c5159fee70785cbd650e00386e7085e74ed46f5636a4566f21247e6e SHA512 29f756f76db339ccf8367aef394335a2ffd158f83d6f6babb48ec3eda39b078125b10741e8cd5e87ea136bac243b0df77816efb7ae1ce01ee0507ed0c8e82ae1 diff --git a/dev-libs/rapidjson/rapidjson-1.1.0-r3.ebuild b/dev-libs/rapidjson/rapidjson-1.1.0-r3.ebuild index a58044c99310..73b3f54b7a78 100644 --- a/dev-libs/rapidjson/rapidjson-1.1.0-r3.ebuild +++ b/dev-libs/rapidjson/rapidjson-1.1.0-r3.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2022 Gentoo Authors +# Copyright 1999-2023 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 @@ -44,6 +44,7 @@ src_configure() { local mycmakeargs=( -DDOC_INSTALL_DIR="${EPREFIX}/usr/share/doc/${PF}" -DLIB_INSTALL_DIR="${EPREFIX}/usr/$(get_libdir)" + -DRAPIDJSON_BUILD_CXX11=OFF # latest gtest requires C++14 or later -DRAPIDJSON_BUILD_DOC=$(usex doc) -DRAPIDJSON_BUILD_EXAMPLES=$(usex examples) -DRAPIDJSON_BUILD_TESTS=$(usex test) diff --git a/dev-libs/rapidjson/rapidjson-9999.ebuild b/dev-libs/rapidjson/rapidjson-9999.ebuild index c13c44dc56c8..a003c49ec84e 100644 --- a/dev-libs/rapidjson/rapidjson-9999.ebuild +++ b/dev-libs/rapidjson/rapidjson-9999.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2021 Gentoo Authors +# Copyright 1999-2023 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 @@ -45,6 +45,8 @@ src_configure() { local mycmakeargs=( -DDOC_INSTALL_DIR="${EPREFIX}/usr/share/doc/${PF}" -DLIB_INSTALL_DIR="${EPREFIX}/usr/$(get_libdir)" + -DRAPIDJSON_BUILD_CXX11=OFF # latest gtest requires C++14 or later + -DRAPIDJSON_BUILD_CXX17=ON -DRAPIDJSON_BUILD_DOC=$(usex doc) -DRAPIDJSON_BUILD_EXAMPLES=$(usex examples) -DRAPIDJSON_BUILD_TESTS=$(usex test) diff --git a/dev-libs/rinutils/Manifest b/dev-libs/rinutils/Manifest index 624e6ffe47c8..5588643146b7 100644 --- a/dev-libs/rinutils/Manifest +++ b/dev-libs/rinutils/Manifest @@ -1,3 +1,5 @@ DIST rinutils-0.10.0.tar.xz 17268 BLAKE2B 2c651b70295d10690ca76bf1349ce83728cd5398fe4babf821ee6a0d61d4c7d107c6c68595e19a841fb5baaa0057237357b3917acd61c02599781bf0252fd512 SHA512 d3780b34b4eda4658f65cf7555553430441fcd45fb2d4fdba22a8f48c0df09c6c0a4e9543262c797c0602e2f9bace2d3f41514ae202ee13183286c9fb1f38677 +DIST rinutils-0.10.1.tar.xz 19160 BLAKE2B afefc834e3968d9cc32e3cb3368c1aadedaa90adf9f6e95c0d11367ce5ec9f2960b73685f55293aaa4c9aecb31b8a26a235f4d0aae60ffd4eaa8d229e31e84d6 SHA512 e743ee02258132830e7fd4436c1e6bfda33cdd90835978ad5a233562f85848274846ba0b46a1402cd70054da4dffba78f7e3d6e8fe484d97c569b4f9c7459abd EBUILD rinutils-0.10.0.ebuild 574 BLAKE2B 5c5e80e6d6ea8f11d53cfbc150d3d7d6d0193158ac7cea68aec82dd0db3ba052a618518df5277201e42d3b13160ea34c8da28c634d1c85d9238d026b0684ee26 SHA512 8507f335499f14fc23d5ac82fe43d991b2b26a76a3213ae4f4e26248fe0214304467555a5eb5ed7e0a0c15d71dcf6e122d327f403a73d239866a82cbeb4c74f3 +EBUILD rinutils-0.10.1.ebuild 590 BLAKE2B 9241cab061e79e5c8cec1c8447263c3474b6defc7cf90b20f654a4d8d8fb287bf7c773e24e952730ee58cf4f0fe97607927e8b14d7e246ca0618e5aa86603907 SHA512 76156ec8548c927e1e4636c546ff131eadcb06a55a5eb9fb5176c7c55a3c66357a71f6ed1980f73c880178d569f6c037d8fa01818993fff8064f6ac54a41efa6 MISC metadata.xml 331 BLAKE2B 13bfca0ccb2a90655ee3b9c9ed39a893bdaabc7a9155e6cdee251f26ac5eaba68120b75a62ada42e2dbfae6aa1b007891ead4474cc3f7cfde0d5ce0b53c9ae36 SHA512 771495cfe5d20f7033d45ca1cff49be98d5b1c11d75b29a8e9ddea47a986c6567ca6662290def45fe7a6c6f3507372f8865ee8d3a9e078175e2aba755d561069 diff --git a/dev-libs/rinutils/rinutils-0.10.1.ebuild b/dev-libs/rinutils/rinutils-0.10.1.ebuild new file mode 100644 index 000000000000..abd18d7a6886 --- /dev/null +++ b/dev-libs/rinutils/rinutils-0.10.1.ebuild @@ -0,0 +1,23 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit cmake + +DESCRIPTION="Set of C headers containing macros and static functions" +HOMEPAGE="https://www.shlomifish.org/open-source/projects/ https://github.com/shlomif/rinutils" +SRC_URI="https://github.com/shlomif/${PN}/releases/download/${PV}/${P}.tar.xz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~hppa ~ppc64 ~riscv ~x86" + +src_configure() { + local mycmakeargs=( + -DDISABLE_APPLYING_RPATH=OFF + -DWITH_TEST_SUITE=OFF # tests require perl + ) + + cmake_src_configure +} diff --git a/dev-libs/rocm-comgr/Manifest b/dev-libs/rocm-comgr/Manifest index a8d550e012b0..a8e1b6e082b0 100644 --- a/dev-libs/rocm-comgr/Manifest +++ b/dev-libs/rocm-comgr/Manifest @@ -14,6 +14,8 @@ AUX rocm-comgr-5.3.3-fix-tests.patch 553 BLAKE2B f4227305c4c2c91d3fd1e9ad7fdc447 AUX rocm-comgr-5.3.3-fno-stack-protector.patch 546 BLAKE2B 81da0bbc5405433600b60be432997134b4e7369814021e5c3a3bc1b88aec33c891de496f4d2af34c3c46742def8679092c0c6b1680babf58026d5e6e1ede7806 SHA512 f1a8da61c722f9c7ca0ceeab29f1032e5b488223a0c38a118608d75c2e4ab482625fffa75f8c85d1cb8dc9dd3b76ee8405e62405dc6e71ae6521c08acef23026 DIST rocm-comgr-5.1.3.tar.gz 117155 BLAKE2B 40e415c4c7ae3e709dd50981299291f0fc1133f35310b4c86a86847d3bce5fd7685a3f4480f8f156873ca922921c1d4e1cb620fd33bd5cdc87f155af839f2bbe SHA512 5927250f5e03c32b7f270a1dbfe5221d349dfe32aba34143040da53d4e7eb83faa3073a43edabcff13e1fc977bc17088404523f2ab2ea95e207d2c00beb4249b DIST rocm-comgr-5.3.3.tar.gz 120414 BLAKE2B 29b9d466d74ef94165a2b9bea35eac4616f6b2fc529cdac3c830ee7dc08f219cb9e5d4f081658881c76633f12eaebb74d1a2ea30a76652231b8ee516f9988db1 SHA512 ba7b1ef214e3624168e438ed7fd94291a07508fe89d178c0b158bf22e0998d5a8e4d8f0a7f08f05ac108ef65f725db5764fd66353a85bc25000e572a4fdcb61f +DIST rocm-comgr-5.4.3.tar.gz 120461 BLAKE2B c4eb79dd5a72a2b18e16841fc8cb9a3a33efb0c7b04a7585df9672d682bba6fa826ab8b37dba5febca3b8c5ee5aca30d8546e1fa69e77671e5c750e2a8c1f12f SHA512 1a25af99a0166d70ca6dc5df5a667068eaf583dccd74bbb18a2a5de3c1b769e0c1eb9a0c539e0cd88bc50bbbe53214a1d1b23fbdfd6fc5b6507c44da259815c4 EBUILD rocm-comgr-5.1.3-r3.ebuild 2051 BLAKE2B 98d8ad8164c8a401961a9abb1a973e1123a049c4a3949114f3493d36f02cd5f2048554828cf5838c00c47a128e21420ba7cf6c3de29086b918e56c5fe79410f7 SHA512 8341569140712543b778a771a381933a9cd14c0a5dcf3393e196d0121eb14a01614bf2080df2cd1f5a51b5bb3f5fb55dae9b7bddc4954900a64d5af0443e3a0f EBUILD rocm-comgr-5.3.3-r1.ebuild 1894 BLAKE2B 5f4ec7e1d77b0cfc8177c3768cdcae19780769896298bd8e8f5fedca70255928a28f06f0f58dca64c78d4e9a0ab857b67056ff318aea228d28d29508c1355502 SHA512 b6919ff6fb65cc7099a5cad254d8c087ea0d293c0f045f6506ab4b66e21c914efe35db9d19710ae1b77b11e59451a441b55444bdd57987f5cab0e7fbf93f153d +EBUILD rocm-comgr-5.4.3.ebuild 1843 BLAKE2B d5bb1874c198abd4985852c1280e1a10f6166749a69027f7ab36026ccc36a5bca0cb4d64629e16e648969d7875b9c09ed883ae9ec902df7c2266e84cdf04b3ff SHA512 6c4441d9adec3c5b1c8d6f31420db65e4d2bd95767a8932d3320fc07f5eda5c8e05c04ce3830aba7fe44207749746230ff994ee89e6c8b7ceb28f64f0f2a715f MISC metadata.xml 526 BLAKE2B d2c4b5c4210cd4ae436bc205ec6c6d0e2690edc99250e508b64f3abbf0f7b4a61b27cb627d9453ff6432cd683fb7f51460b4e821ce7614880e68854121297db5 SHA512 5cf80a58a6791b404d33577fa1cd199791ad4348d0e18d2ba9d8e1665cfc5a19c7d37cfe265c77c060bc886f24ce28b592c6b7d541531faaf62e5440b732d2e7 diff --git a/dev-libs/rocm-comgr/rocm-comgr-5.4.3.ebuild b/dev-libs/rocm-comgr/rocm-comgr-5.4.3.ebuild new file mode 100644 index 000000000000..4f784ee9ee57 --- /dev/null +++ b/dev-libs/rocm-comgr/rocm-comgr-5.4.3.ebuild @@ -0,0 +1,60 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit cmake llvm prefix + +LLVM_MAX_SLOT=15 + +if [[ ${PV} == *9999 ]] ; then + EGIT_REPO_URI="https://github.com/RadeonOpenCompute/ROCm-CompilerSupport/" + inherit git-r3 + S="${WORKDIR}/${P}/lib/comgr" +else + SRC_URI="https://github.com/RadeonOpenCompute/ROCm-CompilerSupport/archive/rocm-${PV}.tar.gz -> ${P}.tar.gz" + S="${WORKDIR}/ROCm-CompilerSupport-rocm-${PV}/lib/comgr" + KEYWORDS="~amd64" +fi + +IUSE="test" +RESTRICT="!test? ( test )" + +PATCHES=( + "${FILESDIR}/${PN}-5.1.3-clang-fix-include.patch" + "${FILESDIR}/${PN}-5.1.3-rocm-path.patch" + "${FILESDIR}/0001-Specify-clang-exe-path-in-Driver-Creation.patch" + "${FILESDIR}/0001-Find-CLANG_RESOURCE_DIR-using-clang-print-resource-d.patch" + "${FILESDIR}/${PN}-5.3.3-HIPIncludePath-not-needed.patch" + "${FILESDIR}/${PN}-5.3.3-fix-tests.patch" + "${FILESDIR}/${PN}-5.3.3-fno-stack-protector.patch" +) + +DESCRIPTION="Radeon Open Compute Code Object Manager" +HOMEPAGE="https://github.com/RadeonOpenCompute/ROCm-CompilerSupport" +LICENSE="MIT" +SLOT="0/$(ver_cut 1-2)" + +RDEPEND=">=dev-libs/rocm-device-libs-${PV} + sys-devel/clang:${LLVM_MAX_SLOT}= + sys-devel/clang-runtime:= + sys-devel/lld:${LLVM_MAX_SLOT}=" +DEPEND="${RDEPEND}" + +CMAKE_BUILD_TYPE=Release + +src_prepare() { + sed '/sys::path::append(HIPPath/s,"hip","",' -i src/comgr-env.cpp || die + sed "/return LLVMPath;/s,LLVMPath,llvm::SmallString<128>(\"$(get_llvm_prefix ${LLVM_MAX_SLOT})\")," -i src/comgr-env.cpp || die + eapply $(prefixify_ro "${FILESDIR}"/${PN}-5.0-rocm_path.patch) + cmake_src_prepare +} + +src_configure() { + local mycmakeargs=( + -DLLVM_DIR="$(get_llvm_prefix ${LLVM_MAX_SLOT})" + -DCMAKE_STRIP="" # disable stripping defined at lib/comgr/CMakeLists.txt:58 + -DBUILD_TESTING=$(usex test ON OFF) + ) + cmake_src_configure +} diff --git a/dev-libs/rocm-device-libs/Manifest b/dev-libs/rocm-device-libs/Manifest index 4638233aca30..a150a1063115 100644 --- a/dev-libs/rocm-device-libs/Manifest +++ b/dev-libs/rocm-device-libs/Manifest @@ -1,7 +1,10 @@ AUX rocm-device-libs-5.1.3-llvm-link.patch 694 BLAKE2B a67a1207bb23ceaa304f2fd59000a14a8bd232fd6eaf3510370f148b0bd18630ec4309a3d2ee2c5b8045114841a0548e840601abb153fb4adfc1209dd16b0509 SHA512 75f6fb5f3aab7f7951d110b9097a1521adb261f286b5e04867fd2753bbfcc29987440fd929c9dac0ac90fde98616ce7693c2b5041d4d07c437087ee17303a22e AUX rocm-device-libs-5.1.3-test-bitcode-dir.patch 1181 BLAKE2B 0358dfc81ed98acd2a2bb399b7d8aa72c2a0bf20da3c45ad02d5e1c46df7f98bc18efe28867725e0fc1df041c1f1147bc25a2a5aa67b18f53d859dbf66aa71c7 SHA512 a0ffdda4ab42978f3b09bab424f91267bfc267f751d489aaee9c6eb3979ae5efd8130129e4b476fdcfbc73b779d9aad79fda60a8f7a64e8a5b35516d8fe6979f +AUX rocm-device-libs-5.4.3-Revert-Update-counters-for-gfx11.patch 6801 BLAKE2B ae3be5c1d8a7a84e8ddee2471628804365dd1d9b1ae3aa981b5e47015b82c115d5da5ea6fedcacc3ccf11c768af8130375493fdbcc9a53567e633cc57e7e750e SHA512 c28a08253025b150523282231c64e5d310206e6e406efdc2a0f39ce69b2f1663fed6991e27b2124eb3434c51efb8d172eceb752f366bc2aab7b3eb63ad9dfa35 DIST rocm-device-libs-5.1.3.tar.gz 242862 BLAKE2B 68d66de897f461e9f876de5fe2214803d4c00665651dea6af0952f0ce579c6704a5ec41b08971fa613ade309a0a85cb611b56b592dc2a25e247183e634ea3378 SHA512 cc3dfb8d4b4841ba777355c537175259d0019159ff462358320674b85082cccd99f6462f60fee66228ddfb88fade043445c1bac62504aa1462ba61b7e2751de7 DIST rocm-device-libs-5.3.3.tar.gz 245690 BLAKE2B 475c0d818b8b0f090a8daeca2910cd4002e4cdf505d020327f46eb5f864a26937a6a3dfe4ff7b188ebda0f936b1c396f2163bb27b9e2a62c5976e60fa60856ac SHA512 8f6f2fc1534e348e02ba30a25cfc6017f8eab768968b5d0344a5ea7d65c4f0a874072f9e53919c74545814330602ef7c190753c7ff019137230e02f58a5d3a5d +DIST rocm-device-libs-5.4.3.tar.gz 246095 BLAKE2B eb749346c96d465a5f22831968ccbd71f02749e6aa0d9c2becc0f378641ca0f65c1a131bfd3ed226f838b4208091fcc920b1e31b427adbd69a42881898668e6a SHA512 67b904363a3cff6c15bbd032cbc72cb5cd5f82acaa68c74391dbcf415266e8f35486a496b69b69e1fc0721e0e4e21fb6a6b9c180a46cb59cdcf53916be846ca4 EBUILD rocm-device-libs-5.1.3-r1.ebuild 1184 BLAKE2B bef07c38844eb218c333cf2fb0014881aff83837092dc62aa29d4971e9782da6a38a7db2dd599f6c8aff0c2bd60c94550d72300d8ee2a6db4ea2688820035803 SHA512 814009470618c7cea132ba28d3aa27eda6a55d65646efa54fc3ce0aa11e247af147f175956d2f7466474d891dd5aef80fe9adcc6bf871352d6f7c20c7f802832 EBUILD rocm-device-libs-5.3.3.ebuild 1184 BLAKE2B bef07c38844eb218c333cf2fb0014881aff83837092dc62aa29d4971e9782da6a38a7db2dd599f6c8aff0c2bd60c94550d72300d8ee2a6db4ea2688820035803 SHA512 814009470618c7cea132ba28d3aa27eda6a55d65646efa54fc3ce0aa11e247af147f175956d2f7466474d891dd5aef80fe9adcc6bf871352d6f7c20c7f802832 +EBUILD rocm-device-libs-5.4.3.ebuild 1250 BLAKE2B 6013dd693a8120b5eeac654c9bad195428c34059eaef1bd40eaaf856f2edf331d8a3726fa46c077fe0aa62919f3ba68f518cfd9441d23020a06c293cd45f1042 SHA512 df101563920183c6a255f1461e718e28a01b4db355e3807c5a3e7b948627337950105deb7f77a857d489d9591c959909ad1e1957e4f21e3dffba08ee14514469 MISC metadata.xml 378 BLAKE2B d4defdfb2ce3bab811d9c2ac75b92b7892d46d87dad9f89c26cde140b3b167b43bf4022128dee45e063e332d6dfafc3ee8d78b0112909a7ce2d4a4a44c6cfa14 SHA512 0732d51019f0d27ffb1ffea32d76cad8a6d82927cb8788ff983cdb8dcc472015dbe36ba568bda7459d0b32837e89e1a32064ab7dfcefd2b88458cbb4438f452a diff --git a/dev-libs/rocm-device-libs/files/rocm-device-libs-5.4.3-Revert-Update-counters-for-gfx11.patch b/dev-libs/rocm-device-libs/files/rocm-device-libs-5.4.3-Revert-Update-counters-for-gfx11.patch new file mode 100644 index 000000000000..bf9b2c372600 --- /dev/null +++ b/dev-libs/rocm-device-libs/files/rocm-device-libs-5.4.3-Revert-Update-counters-for-gfx11.patch @@ -0,0 +1,216 @@ +From 8ce920dddac9846254aaf6261bafd8b22976b04e Mon Sep 17 00:00:00 2001 +From: Jeremy Newton <alexjnewt@hotmail.com> +Date: Sun, 18 Dec 2022 20:48:21 -0500 +Subject: [PATCH] Revert "Update counters for gfx11" + +This reverts commit 85f95b94960c6f7ff4ff0242a399deb4a204fb6a. +--- + doc/OCKL.md | 4 ++-- + ockl/inc/ockl.h | 3 --- + ockl/src/dm.cl | 15 +++++++++++---- + ockl/src/mtime.cl | 35 ++--------------------------------- + ockl/src/wait.cl | 18 +++++++++--------- + 5 files changed, 24 insertions(+), 51 deletions(-) + +diff --git a/doc/OCKL.md b/doc/OCKL.md +index 07574f6..05c5c49 100644 +--- a/doc/OCKL.md ++++ b/doc/OCKL.md +@@ -99,8 +99,8 @@ The following table lists the available functions along with a brief description + | `int __ockl_mul24_i32(int,int);` | Multiply assuming operands fit in 24 bits | + | `uint __ockl_mul24_u32(uint,uint);` | | + | - | | +-| `ulong __ockl_cyclectr_u64(void);` | Current value of free running 64-bit clock counter | +-| `ulong __ockl_steadyctr_u64(void);` | Current value of constant speed 64-bit clock counter | ++| `ulong __ockl_memtime_u64(void);` | Current value of free running 64-bit clock counter | ++| `ulong __ockl_memrealtime_u64(void);` | Current value of constant speed 64-bit clock counter | + | - | | + | `uint __ockl_activelane_u32(void);` | Index of currently lane counting only active lanes in wavefront | + | - | | +diff --git a/ockl/inc/ockl.h b/ockl/inc/ockl.h +index d0b98d4..6300279 100644 +--- a/ockl/inc/ockl.h ++++ b/ockl/inc/ockl.h +@@ -143,9 +143,6 @@ DECL_OCKL_NULLARY_U32(activelane) + + DECL_OCKL_NULLARY_U64(memtime) + DECL_OCKL_NULLARY_U64(memrealtime) +-DECL_OCKL_NULLARY_U64(cyclectr) +-DECL_OCKL_NULLARY_U64(steadyctr) +- + + extern half OCKL_MANGLE_T(wfred_add,f16)(half x); + extern float OCKL_MANGLE_T(wfred_add,f32)(float x); +diff --git a/ockl/src/dm.cl b/ockl/src/dm.cl +index 245b4a1..26373dd 100644 +--- a/ockl/src/dm.cl ++++ b/ockl/src/dm.cl +@@ -201,6 +201,13 @@ get_heap_ptr(void) { + } + } + ++// realtime ++__attribute__((target("s-memrealtime"))) static ulong ++realtime(void) ++{ ++ return __builtin_amdgcn_s_memrealtime(); ++} ++ + // The actual number of blocks in a slab with blocks of kind k + static uint + num_blocks(kind_t k) +@@ -466,7 +473,7 @@ new_slab_wait(__global heap_t *hp, kind_t k) + uint aid = __ockl_activelane_u32(); + if (aid == 0) { + ulong expected = AL(&hp->salloc_time[k].value, memory_order_relaxed); +- ulong now = __ockl_steadyctr_u64(); ++ ulong now = realtime(); + ulong dt = now - expected; + if (dt < SLAB_TICKS) + __ockl_rtcwait_u32(SLAB_TICKS - (uint)dt); +@@ -480,7 +487,7 @@ grow_recordable_wait(__global heap_t *hp, kind_t k) + uint aid = __ockl_activelane_u32(); + if (aid == 0) { + ulong expected = AL(&hp->grow_time[k].value, memory_order_relaxed); +- ulong now = __ockl_steadyctr_u64(); ++ ulong now = realtime(); + ulong dt = now - expected; + if (dt < GROW_TICKS) + __ockl_rtcwait_u32(GROW_TICKS - (uint)dt); +@@ -540,7 +547,7 @@ try_grow_num_recordable_slabs(__global heap_t *hp, kind_t k) + uint ret = GROW_BUSY; + if (aid == 0) { + ulong expected = AL(&hp->grow_time[k].value, memory_order_relaxed); +- ulong now = __ockl_steadyctr_u64(); ++ ulong now = realtime(); + if (now - expected >= GROW_TICKS && + ACE(&hp->grow_time[k].value, &expected, now, memory_order_relaxed)) + ret = GROW_FAILURE; +@@ -687,7 +694,7 @@ try_allocate_new_slab(__global heap_t *hp, kind_t k) + + if (aid == 0) { + ulong expected = AL(&hp->salloc_time[k].value, memory_order_relaxed); +- ulong now = __ockl_steadyctr_u64(); ++ ulong now = realtime(); + if (now - expected >= SLAB_TICKS && + ACE(&hp->salloc_time[k].value, &expected, now, memory_order_relaxed)) + ret = (__global sdata_t *)0; +diff --git a/ockl/src/mtime.cl b/ockl/src/mtime.cl +index 43f4161..543aaa3 100644 +--- a/ockl/src/mtime.cl ++++ b/ockl/src/mtime.cl +@@ -5,48 +5,17 @@ + * License. See LICENSE.TXT for details. + *===------------------------------------------------------------------------*/ + +-#include "oclc.h" + #include "ockl.h" + +-__attribute__((target("s-memrealtime"))) static ulong +-mem_realtime(void) +-{ +- return __builtin_amdgcn_s_memrealtime(); +-} +- +-__attribute__((target("gfx11-insts"))) static ulong +-msg_realtime(void) +-{ +- return __builtin_amdgcn_s_sendmsg_rtnl(0x83); +-} +- +-// Deprecated + __attribute__((target("s-memtime-inst"))) ulong + OCKL_MANGLE_U64(memtime)(void) + { + return __builtin_amdgcn_s_memtime(); + } + +-// Deprecated +-ulong ++__attribute__((target("s-memrealtime"))) ulong + OCKL_MANGLE_U64(memrealtime)(void) + { +- return mem_realtime(); +-} +- +-ulong +-OCKL_MANGLE_U64(cyclectr)(void) +-{ +- return __builtin_readcyclecounter(); +-} +- +-ulong +-OCKL_MANGLE_U64(steadyctr)(void) +-{ +- if (__oclc_ISA_version >= 11000) { +- return msg_realtime(); +- } else { +- return mem_realtime(); +- } ++ return __builtin_amdgcn_s_memrealtime(); + } + +diff --git a/ockl/src/wait.cl b/ockl/src/wait.cl +index 49b038e..b249599 100644 +--- a/ockl/src/wait.cl ++++ b/ockl/src/wait.cl +@@ -10,47 +10,47 @@ + #include "ockl.h" + #include "oclc.h" + +-void ++__attribute__((target("s-memrealtime"))) void + OCKL_MANGLE_T(rtcwait,u32)(uint ticks) + { +- ulong now = __ockl_steadyctr_u64(); ++ ulong now = __builtin_amdgcn_s_memrealtime(); + ulong end = now + __builtin_amdgcn_readfirstlane(ticks); + + if (__oclc_ISA_version >= 9000) { + while (end > now + 1625) { + __builtin_amdgcn_s_sleep(127); +- now = __ockl_steadyctr_u64(); ++ now = __builtin_amdgcn_s_memrealtime(); + } + + while (end > now + 806) { + __builtin_amdgcn_s_sleep(63); +- now = __ockl_steadyctr_u64(); ++ now = __builtin_amdgcn_s_memrealtime(); + } + + while (end > now + 396) { + __builtin_amdgcn_s_sleep(31); +- now = __ockl_steadyctr_u64(); ++ now = __builtin_amdgcn_s_memrealtime(); + } + } + + while (end > now + 192) { + __builtin_amdgcn_s_sleep(15); +- now = __ockl_steadyctr_u64(); ++ now = __builtin_amdgcn_s_memrealtime(); + } + + while (end > now + 89) { + __builtin_amdgcn_s_sleep(7); +- now = __ockl_steadyctr_u64(); ++ now = __builtin_amdgcn_s_memrealtime(); + } + + while (end > now + 38) { + __builtin_amdgcn_s_sleep(3); +- now = __ockl_steadyctr_u64(); ++ now = __builtin_amdgcn_s_memrealtime(); + } + + while (end > now) { + __builtin_amdgcn_s_sleep(1); +- now = __ockl_steadyctr_u64(); ++ now = __builtin_amdgcn_s_memrealtime(); + } + } + +-- +2.34.1 + diff --git a/dev-libs/rocm-device-libs/rocm-device-libs-5.4.3.ebuild b/dev-libs/rocm-device-libs/rocm-device-libs-5.4.3.ebuild new file mode 100644 index 000000000000..cab37f4bebff --- /dev/null +++ b/dev-libs/rocm-device-libs/rocm-device-libs-5.4.3.ebuild @@ -0,0 +1,48 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit cmake llvm + +LLVM_MAX_SLOT=15 + +if [[ ${PV} == *9999 ]] ; then + EGIT_REPO_URI="https://github.com/RadeonOpenCompute/ROCm-Device-Libs/" + inherit git-r3 + S="${WORKDIR}/${P}/src" +else + SRC_URI="https://github.com/RadeonOpenCompute/ROCm-Device-Libs/archive/rocm-${PV}.tar.gz -> ${P}.tar.gz" + S="${WORKDIR}/ROCm-Device-Libs-rocm-${PV}" + KEYWORDS="~amd64" +fi + +DESCRIPTION="Radeon Open Compute Device Libraries" +HOMEPAGE="https://github.com/RadeonOpenCompute/ROCm-Device-Libs" + +LICENSE="MIT" +SLOT="0/$(ver_cut 1-2)" +IUSE="test" +RESTRICT="!test? ( test )" + +RDEPEND="sys-devel/clang:${LLVM_MAX_SLOT}" +DEPEND="${RDEPEND}" + +CMAKE_BUILD_TYPE=Release + +PATCHES=( "${FILESDIR}/${PN}-5.1.3-test-bitcode-dir.patch" + "${FILESDIR}/${PN}-5.1.3-llvm-link.patch" + "${FILESDIR}/${PN}-5.4.3-Revert-Update-counters-for-gfx11.patch" ) + +src_prepare() { + sed -e "s:amdgcn/bitcode:lib/amdgcn/bitcode:" -i "${S}/cmake/OCL.cmake" || die + sed -e "s:amdgcn/bitcode:lib/amdgcn/bitcode:" -i "${S}/cmake/Packages.cmake" || die + cmake_src_prepare +} + +src_configure() { + local mycmakeargs=( + -DLLVM_DIR="$(get_llvm_prefix "${LLVM_MAX_SLOT}")" + ) + cmake_src_configure +} diff --git a/dev-libs/rocr-runtime/Manifest b/dev-libs/rocr-runtime/Manifest index 38d3cd4cfe0c..ed1c498d5c43 100644 --- a/dev-libs/rocr-runtime/Manifest +++ b/dev-libs/rocr-runtime/Manifest @@ -2,6 +2,8 @@ AUX rocr-runtime-4.3.0_no-aqlprofiler.patch 1084 BLAKE2B dfc2b9bbea0360fdbbd0498 AUX rocr-runtime-5.0.1-cmake-install-paths.patch 2744 BLAKE2B fbbecdefbfabcbe4cd7f029e10d6abed94b492f94157839336adf83e98efe5c0e93dbb20856ca6adab32cb315bbd7b6c397c8fc48b66ea784cdbb3becb5f718e SHA512 db7ee8b87b526991a62c3cbfd385e85d27e05ba9a7f4726e8060d7ad29917e154bdcd0715e61a08210dad4b6112c731dfcab9e9f7e809b74da2f74c62a1eab72 DIST rocr-runtime-5.1.3.tar.gz 720567 BLAKE2B bdf2d258ec607ffc69264d48ce82c36787757b7809397d643a24abaa852f3cc217a57210fba760d4d11ef8ce2922dc1ef275d3b47a4bebc5c7b204bbbb5b7c66 SHA512 d47523ea2fe32fee832ca19b56a091f52e16b366db1c571f87e5599514b826376d49281e79ff0936dcaf7349f9becbc8ae9b3e9472a9c3e14b62a3f98d541b35 DIST rocr-runtime-5.3.3.tar.gz 809871 BLAKE2B 1a44e88c34fcebcea3351de812f2ac64a7b151303c5bfc4066920755c185731388afff89c705afee6010d262f68358a20b1c0197e8f23c22ab24409eb55fde0a SHA512 27efe57954575549703b31c4a632548bf3d82df0f01d5f15485d0bda7efa6ec2ad0a4a8710b8f240ff57296eb62d3796926e32d16dfe448b188d8264fde0ef8b +DIST rocr-runtime-5.4.3.tar.gz 811062 BLAKE2B 4ee8ef49cdac7f6918db3aa96089852847d093aacc11ed7e7157a6eb512cf36a3d37396670c14ea24b16b1127c4547977390694d05bc6006ac48b40e707d6dae SHA512 29f13a1b16ef457071cc050227d57cda92992f416ebc074f8cd5a856d9bd76fd34ab2ccb53c21c3d798165282d44bba287ef44a9d1da327ee198e1facc77a4db EBUILD rocr-runtime-5.1.3-r1.ebuild 1489 BLAKE2B bddcaa60234f530822d4f96ea90c4c178f91af3933c70fad0269287ba97d0a6243626dd88e2d31c62ac3dda7e6bc8abaf50836357d2d512befbbd0a0f2aaf112 SHA512 7a84de93ae70e158d7bb09318c38cc5e4251f5831ab07f0f022b35de87d2140e03f5ce8decc5aa80e67a0c436131753577aa52d1d7c62f0e419e3307e45b63e9 EBUILD rocr-runtime-5.3.3-r1.ebuild 1556 BLAKE2B 4554d25ea988cb2c4b0520691544525288cb57dbaf53b79e06552f3f3c508f52efb9a796f8f1b4fca6e98984ad56ec6c29f50b1777a7f324d0a870ef911a3773 SHA512 861e2b6f917698fa2a0a6bdcfe988c18a1bd2a7b2f5a036cdf09af161b244534ce0daa596dc2a5073e586132a14fdc58128f867f83adeef31355402de607db30 +EBUILD rocr-runtime-5.4.3.ebuild 1556 BLAKE2B 4554d25ea988cb2c4b0520691544525288cb57dbaf53b79e06552f3f3c508f52efb9a796f8f1b4fca6e98984ad56ec6c29f50b1777a7f324d0a870ef911a3773 SHA512 861e2b6f917698fa2a0a6bdcfe988c18a1bd2a7b2f5a036cdf09af161b244534ce0daa596dc2a5073e586132a14fdc58128f867f83adeef31355402de607db30 MISC metadata.xml 515 BLAKE2B ccb566413bfb5e7027d1596b040f6c957dc8d58fc413859c4a08fbd484ab16d536948bcf24cdd1edd5bdc8a4951b5abe6adbb3da6fde37e5a9ba1bdcfd312827 SHA512 6d0f0ab69b8f04a9106d71003f17c00e693b42c03aa5c430ebb03f7ffb3ecb8f4b10128fd22462692b97870c23e85aa3f037433fa65c55a342d64038f0db5a93 diff --git a/dev-libs/rocr-runtime/rocr-runtime-5.4.3.ebuild b/dev-libs/rocr-runtime/rocr-runtime-5.4.3.ebuild new file mode 100644 index 000000000000..f408d4213314 --- /dev/null +++ b/dev-libs/rocr-runtime/rocr-runtime-5.4.3.ebuild @@ -0,0 +1,54 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit cmake flag-o-matic llvm + +LLVM_MAX_SLOT=15 + +if [[ ${PV} == *9999 ]] ; then + EGIT_REPO_URI="https://github.com/RadeonOpenCompute/ROCR-Runtime/" + inherit git-r3 + S="${WORKDIR}/${P}/src" +else + SRC_URI="https://github.com/RadeonOpenCompute/ROCR-Runtime/archive/rocm-${PV}.tar.gz -> ${P}.tar.gz" + S="${WORKDIR}/ROCR-Runtime-rocm-${PV}/src" + KEYWORDS="~amd64" +fi + +DESCRIPTION="Radeon Open Compute Runtime" +HOMEPAGE="https://github.com/RadeonOpenCompute/ROCR-Runtime" +PATCHES=( + "${FILESDIR}/${PN}-4.3.0_no-aqlprofiler.patch" +) + +LICENSE="MIT" +SLOT="0/$(ver_cut 1-2)" +IUSE="debug" + +COMMON_DEPEND="dev-libs/elfutils" +RDEPEND="${COMMON_DEPEND}" +DEPEND="${COMMON_DEPEND} + >=dev-libs/roct-thunk-interface-${PV} + >=dev-libs/rocm-device-libs-${PV} + sys-devel/clang + sys-devel/lld" +BDEPEND="app-editors/vim-core" + # vim-core is needed for "xxd" + +src_prepare() { + # ... otherwise system llvm/clang is used ... + sed -e "/find_package(Clang REQUIRED HINTS /s:\${CMAKE_INSTALL_PREFIX}/llvm \${CMAKE_PREFIX_PATH}/llvm PATHS /opt/rocm/llvm:$(get_llvm_prefix ${LLVM_MAX_SLOT}):" -i image/blit_src/CMakeLists.txt || die + + # Gentoo installs "*.bc" to "/usr/lib" instead of a "[path]/bitcode" directory ... + sed -e "s:-O2:--rocm-path=${EPREFIX}/usr/lib/ -O2:" -i image/blit_src/CMakeLists.txt || die + + cmake_src_prepare +} + +src_configure() { + use debug || append-cxxflags "-DNDEBUG" + local mycmakeargs=( -DINCLUDE_PATH_COMPATIBILITY=OFF ) + cmake_src_configure +} diff --git a/dev-libs/roct-thunk-interface/Manifest b/dev-libs/roct-thunk-interface/Manifest index 1603779a6dcc..2af988a85291 100644 --- a/dev-libs/roct-thunk-interface/Manifest +++ b/dev-libs/roct-thunk-interface/Manifest @@ -1,5 +1,7 @@ DIST roct-thunk-interface-5.1.3.tar.gz 3178689 BLAKE2B c46af7bc60772beaa9a214a86a634290cfd7952589f70736c0c2544c0459eb4fdcc65030d897dbb67bfbaae545f529ac647397df3fcfeddeb5d5e05a283cfd6b SHA512 746a04e667ce242160d6e2519594fc93b205520dae28678859fbd40c3c641082aa6219c04c8e2b58289763a5244dd6336b56c2e2016ba671c5e5a6fb9ca5caea DIST roct-thunk-interface-5.3.3.tar.gz 646773 BLAKE2B 48632cad576ceccede0ee62663f226cbedba8374d8962028fd729a7b8e7eb75bebcb2f8ce06a838de15a388caea3d6dcb150db80f8d45a91675997b4f80625e6 SHA512 4a8730d16a0d240a43d5e22092325b0731d133733af0aac6c6893763d1ffb1a04a0c045d988835079581e097fc7c9e383f41ba84daa105c032d3a653b6b2c6b0 +DIST roct-thunk-interface-5.4.3.tar.gz 648897 BLAKE2B 9eefc5f417280a98c7c6b6d611d0d87fa52abca94f67bf5ecc10d84bb86433b5ff502f76aa6724245c7cf9d82b5c16c10943275e8d41f0053484765df5a901db SHA512 1787526515ec708edc398cdba308a8dfa32c2579524a6856a6f336cb7bfee8f9a00d67f1b489993c7454d1d88885032ce85ac752b4a15aaedef910f147aed3b5 EBUILD roct-thunk-interface-5.1.3.ebuild 1107 BLAKE2B c8d1aad9be55420235043628caa570cfa5f9164c6a3d20c7d90a6cac385ad2c886c44a89f2d9181742f9c284067b0d0b078fb2ea04e44ac9f1a145505f4b9971 SHA512 08bce5619f4e5e163b23928c0088e7f022d0f9f95bfba4b4e237a74ade30a327bf3cf954590f9d788ab7a16dd4f90ff53bd3e87011866af1d68a200bbeeceb7f EBUILD roct-thunk-interface-5.3.3.ebuild 1107 BLAKE2B c8d1aad9be55420235043628caa570cfa5f9164c6a3d20c7d90a6cac385ad2c886c44a89f2d9181742f9c284067b0d0b078fb2ea04e44ac9f1a145505f4b9971 SHA512 08bce5619f4e5e163b23928c0088e7f022d0f9f95bfba4b4e237a74ade30a327bf3cf954590f9d788ab7a16dd4f90ff53bd3e87011866af1d68a200bbeeceb7f +EBUILD roct-thunk-interface-5.4.3.ebuild 1107 BLAKE2B c5523fd9ba5475faf5b8bb4ea35a100f4049a8b008c3dec048e03b8e14b394f28b8b5515f7b93c94774c75304e2df7ef745e9538eae5309c6faa569748d32551 SHA512 dfc0e032b61667c9171900f36bc7f18df0e67635e8988d91a8041c298053d9c977adf123af2326e7986bbe00f45ea3ec3e3630ff0993279cfd7becbb5492fc36 MISC metadata.xml 674 BLAKE2B ceb6cc04ddd9f957a765c89bfe83de382412c5d04bce87e3fa9c0fdfe72fa2d24e597aa47287488463fa34d85a91556d2b7ea073b19c341a48045c9e7f51f9f3 SHA512 8cb0feb4d6ea9d3de4a45a9be0de498b5ebb36a779af03e58f5c04593082e5bd618614c1daf2707f3bb1de019bf88292605669e2be48d9bede6e708c39aae7e2 diff --git a/dev-libs/roct-thunk-interface/roct-thunk-interface-5.4.3.ebuild b/dev-libs/roct-thunk-interface/roct-thunk-interface-5.4.3.ebuild new file mode 100644 index 000000000000..3f391bf5d5e0 --- /dev/null +++ b/dev-libs/roct-thunk-interface/roct-thunk-interface-5.4.3.ebuild @@ -0,0 +1,40 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit cmake linux-info + +if [[ ${PV} == *9999 ]] ; then + EGIT_REPO_URI="https://github.com/RadeonOpenCompute/ROCT-Thunk-Interface/" + inherit git-r3 +else + SRC_URI="https://github.com/RadeonOpenCompute/ROCT-Thunk-Interface/archive/rocm-${PV}.tar.gz -> ${P}.tar.gz" + S="${WORKDIR}/ROCT-Thunk-Interface-rocm-${PV}" + KEYWORDS="~amd64" +fi + +DESCRIPTION="Radeon Open Compute Thunk Interface" +HOMEPAGE="https://github.com/RadeonOpenCompute/ROCT-Thunk-Interface" +CONFIG_CHECK="~HSA_AMD ~HMM_MIRROR ~ZONE_DEVICE ~DRM_AMDGPU ~DRM_AMDGPU_USERPTR" +LICENSE="MIT" +SLOT="0/$(ver_cut 1-2)" + +RDEPEND="sys-process/numactl" +DEPEND="${RDEPEND}" +BDEPEND="x11-libs/libdrm[video_cards_amdgpu]" + +CMAKE_BUILD_TYPE=Release + +src_prepare() { + sed -e "s:get_version ( \"1.0.0\" ):get_version ( \"${PV}\" ):" -i CMakeLists.txt || die + sed -e "s:ubuntu:gentoo:" -i CMakeLists.txt || die + cmake_src_prepare +} + +src_configure() { + local mycmakeargs=( + -DCPACK_PACKAGING_INSTALL_PREFIX="${EPREFIX}/usr" + ) + cmake_src_configure +} |