diff --git a/dev-util/hip/Manifest b/dev-util/hip/Manifest deleted file mode 100644 index 23ad173..0000000 --- a/dev-util/hip/Manifest +++ /dev/null @@ -1,15 +0,0 @@ -DIST hip-5.7.1.tar.gz 553774 BLAKE2B f88c235f688d3a662ec6cb4ad7fe3f82c0015015997871609cc30ab5b2f7fcb9709a08683d77194e45a6dbbe1d24c6355b128d2ecf655f1dea3468711c64e0a3 SHA512 68fa8753725b53c999d102d254c6b1dba53af4e00d6a48db93d10213cc02eec30b4a39c66e773d4f625dd9636cf8b0c5faa05b69fac27cf5a6b19dd3ddd2b905 -DIST hip-6.1.1.tar.gz 247192 BLAKE2B c40bb483fb61b3037693f456e546046598df7e0dd81a1f1c8d222ab0d9c0752092ce85c8533bd355f883dda5ce1f32f7ff2b2a58cebac50d53e0e7f4d85ca3ae SHA512 3e6162938294a74af51bc2161ada38dc4ba19614e182238f320f2052a9025be6ea413e40f00cb80f4e86696793d6c4431e2417ea798a2330886a3f3e66aedf0d -DIST hip-6.1.2.tar.gz 247193 BLAKE2B e343bdf233752e40cdefa0c2bbd56858bbb471155045ae1adcf651ddff2ed40dc7c7069998a35e9b26324fdf1c972e13e1222406bc52ae2591c23a45611864c5 SHA512 771f6494c7ff0ddb7d22193dfdbb3fb9461f6e4be347ecb879bb84c5a01a95fb4c4d3f7a0f039265d5369f6c6a5b66949af7bc91ed220f5e81a5b15ec98a68eb -DIST hip-6.3.2.tar.gz 1486601 BLAKE2B 033a02c9b4bdcfcd8d23281df74f061e557b0027e95a76431a5b7f56922306a317d36896619bfb5106103cb34ac2369b85fd603c7dfd9e4f2a6cc1537b168f81 SHA512 839d19d47326c56ae5f44b39a2f62c215692cf9ddbc292becb3ce5b5d1784d92c98ce8f73bc1a294a2cd7c875568b38c9e2053b3646513516b31a9ab1e91d688 -DIST hip-6.3.3.tar.gz 1486598 BLAKE2B 998b28786c0b156cd1c23a01ce284206d1ad5cad1f207676b9d40994dc4f60d16a1f0804cfa287622826d78871ee19d2b5aa78dc29a69fe54ab50f08652bfd26 SHA512 70544467c5c262fab1e9415f5e77d0ec3b4635b6fa104de5d7ab2da0e2ca88fe40ce716068e50eaa17a807516cd41e2c0af22bcada3a1f7de50aa88283850e38 -DIST hip-test-6.1.1.tar.gz 1080605 BLAKE2B 7eddf648be31365479baa0cd4fd1c060a682a6b44d923cac1c4840c0768782db2fef4e5d97318ef0423be1e5c85b1a0cc6b9d324db789dad28be17f64ab38cae SHA512 0dd679c5b94a59e192bea5789f4448b53ac23c8a03b24a347758b1d70ff692483fd4aaea0b19345eb6ffb82a4492ed21958398b53ae6244a244a660dfa33412f -DIST hip-test-6.1.2.tar.gz 1080493 BLAKE2B ff501ab92c1d3207e330f5e9630e3300aa52f7c2acfae2173a964a2843952db90eea2b4ecf5db1ec6ba65d7764750b9eae3f2a9641d1a3fc71d5172e3a7264a8 SHA512 09fa4243c8b73ddbe163ff4c60f0f8f4182f1a37071e9747bf95ecdc219ba3a0407bdf1e2391481f537b223565a38f16e918667194666558a469d94f88a1e236 -DIST hip-test-6.3.2.tar.gz 1446861 BLAKE2B c82f8b52807bdae7ea32bd85cccaaea8e01fda440c36ef68603c3cac5d31032b10a21e3828702fec556fa8c262797f08cc2395e042d5db8c6ae601968d47ed8a SHA512 aa162ab73e0ef2b739a8652cdd34eb4fbef130d75ac7aaece030263d820ef0abfb124a10692937da529ac523c386ba2b8241c9a205c820b41e6b7090770653e2 -DIST hip-test-6.3.3.tar.gz 1446849 BLAKE2B 474194bd7cef54af85eab0bc8fdfbe2360a9a22ab27f9014ebbb22f03952bfc014d682e2a0cbf90fcd365b4295df266a64419deebbce38aa7b5b7af9c979cc20 SHA512 65bde402804e95a09142bc2a9866bbef14068b63d09236d70086e15c3927ef29fb75d0859a90aa4bc75ebe03f94da85284b233fb41b95246bb45d1d8fee172ed -DIST rocm-5.7.0.tar.gz 845881 BLAKE2B 08255edc1407e5ef85895336b11496319695318fce265565728ad75175b5e1dfab98f696fee2d27e60c48e862f721fad4c53118cc70b807353fff5f97ed72ac2 SHA512 72420e16c7cfe9687e030331838666dabaa43d686bdad1d109431e44db99070a2cf6dd64b59e3275019abedd6612f6008c798a79275e7225b6b122fb9f644660 -DIST rocm-clr-5.7.1.tar.gz 2008647 BLAKE2B 3db0760d6f83504e60caf88a2dd5e0bc02c7db9d6f263ad0eb2cfc79aa0f88a3699c412844a0158a796d9d02e79660287e791edad787d814eefffea4fd2298b4 SHA512 d79323481d82fc02c12a32cdcc0d14437d512af023e7737db0387b7eecb27fe6e4ae7c71d6adce57932a04bb24c880440d9dc10aeb5af11a4f2ca64d44330965 -DIST rocm-clr-6.1.1.tar.gz 2031034 BLAKE2B b0485bb015d31986f4988d1db0c029c826856e50b5bb1b58fac2097c14b3966668f1b8d41ec198889e27ac860497a8b3c081ec31d52390d5c9ff5db092bf7cce SHA512 86925e8b9a9e77b06a57daefbc7279887b4ef7c6a79c3717bc2f2d3bf29926281c60063fd17e21c65d7def520d9f579bf88f69051d053a38750ba968f69ca3fc -DIST rocm-clr-6.1.2.tar.gz 2031283 BLAKE2B d51d32a77794ea97f1a3817786c9fd6b482106b665eea6e2c9b4c11e4dce19a3486386eb5ba111554c2d82c30e2a93add7502eed5768caf3fb709fb5fbb2e71b SHA512 e97224451864efe0084c4117f54893c9624a6a9f365a0b4abad08fd9635f008dea742dc589429fbb714e1b8177d06362c0f5a741f6c4a050d0fd4d48da72d54b -DIST rocm-clr-6.3.2.tar.gz 2095677 BLAKE2B 2f1122a2058f8ba358fe48a46473f23c46a5413fef16515f103c21a8ae13bb76522fbe587cb9c9e6e3dd06f968402b6a881391823c80381c0c41072597c845ac SHA512 5bade294dc6fc60bf459bfd7124c354f2b0079167d3c8776a9e3d6d8320bb9b1a2a0770a466987e164994293024bf47de158ba207f077968dfccb7bf20fb884b -DIST rocm-clr-6.3.3.tar.gz 2095704 BLAKE2B bdb315fc9f1f9c76aa2a345bd48a600c81f3b72eb68fee8862b5e155e7519bef6f6421698a43358c6fe0200bb0b6924ff819860d9a91a5c07fc3e9d44eeb1b16 SHA512 94d2959b981b324e0dae2d06e86c72cd01fa495de081666bcec2445c02bada22aa60e94ecac0ee63e70e52275f92caeefcb6dc96a3f0fba593896be7b0d8ab42 diff --git a/dev-util/hip/files/hip-5.7.0-install.patch b/dev-util/hip/files/hip-5.7.0-install.patch deleted file mode 100644 index 668e24a..0000000 --- a/dev-util/hip/files/hip-5.7.0-install.patch +++ /dev/null @@ -1,13 +0,0 @@ -diff --git a/hipamd/CMakeLists.txt b/hipamd/CMakeLists.txt -index a472c5b7a..ac6fdc2ab 100755 ---- a/hipamd/CMakeLists.txt -+++ b/hipamd/CMakeLists.txt -@@ -396,8 +396,6 @@ if (NOT ${HIPCC_BIN_DIR} STREQUAL "") - install(PROGRAMS ${HIPCC_BIN_DIR}/hipcc.pl DESTINATION bin) - install(PROGRAMS ${HIPCC_BIN_DIR}/hipconfig.pl DESTINATION bin) - install(PROGRAMS ${HIPCC_BIN_DIR}/hipvars.pm DESTINATION bin) -- install(PROGRAMS ${HIPCC_BIN_DIR}/hipcc.bat DESTINATION bin) -- install(PROGRAMS ${HIPCC_BIN_DIR}/hipconfig.bat DESTINATION bin) - endif() - - ############################# diff --git a/dev-util/hip/files/hip-5.7.1-disable-stack-protector.patch b/dev-util/hip/files/hip-5.7.1-disable-stack-protector.patch deleted file mode 100644 index 49d944e..0000000 --- a/dev-util/hip/files/hip-5.7.1-disable-stack-protector.patch +++ /dev/null @@ -1,13 +0,0 @@ -Disable stack-protector (which is enabled by default gentoo-hardened) in device code. -This is not required after https://github.com/llvm/llvm-project/pull/70799, but helps with older clang. -Upstream bug: https://github.com/ROCm-Developer-Tools/clr/issues/21 ---- a/hipamd/src/hiprtc/hiprtcInternal.cpp -+++ b/hipamd/src/hiprtc/hiprtcInternal.cpp -@@ -144,6 +144,7 @@ RTCCompileProgram::RTCCompileProgram(std::string name_) : RTCProgram(name_), fgp - compile_options_.push_back("-nogpuinc"); - compile_options_.push_back("-Wno-gnu-line-marker"); - compile_options_.push_back("-Wno-missing-prototypes"); -+ compile_options_.push_back("-fno-stack-protector"); - #ifdef _WIN32 - compile_options_.push_back("-target"); - compile_options_.push_back("x86_64-pc-windows-msvc"); diff --git a/dev-util/hip/files/hip-5.7.1-exec-stack.patch b/dev-util/hip/files/hip-5.7.1-exec-stack.patch deleted file mode 100644 index 744ca7b..0000000 --- a/dev-util/hip/files/hip-5.7.1-exec-stack.patch +++ /dev/null @@ -1,31 +0,0 @@ -Upstream bug: https://github.com/ROCm-Developer-Tools/clr/issues/22 ---- a/hipamd/src/hip_embed_pch.sh -+++ b/hipamd/src/hip_embed_pch.sh -@@ -178,6 +178,7 @@ EOF - - echo "// Automatically generated script for HIP RTC." > $mcinFile - if [[ $isWindows -eq 0 ]]; then -+ echo " .section .note.GNU-stack,"",%progbits" >> $mcinFile - echo " .type __hipRTC_header,@object" >> $mcinFile - echo " .type __hipRTC_header_size,@object" >> $mcinFile - fi ---- a/hipamd/src/hiprtc/cmake/HIPRTC.cmake -+++ b/hipamd/src/hiprtc/cmake/HIPRTC.cmake -@@ -98,6 +98,7 @@ macro(generate_hiprtc_mcin HiprtcMcin HiprtcPreprocessedInput) - set(HIPRTC_TYPE_LINUX_ONLY "") - else() - set(HIPRTC_TYPE_LINUX_ONLY -+ " .section .note.GNU-stack,\"\",%progbits\n" - " .type __hipRTC_header,@object\n" - " .type __hipRTC_header_size,@object") - endif() ---- a/hipamd/src/hip_embed_pch.sh -+++ b/hipamd/src/hip_embed_pch.sh -@@ -111,6 +111,7 @@ cat >$tmp/hip_pch.h <$tmp/hip_pch.mcin < -https://salsa.debian.org/rocm-team/rocm-hipamd/-/blob/master/debian/patches/0025-improve-rocclr-isa-compatibility-check.patch -https://salsa.debian.org/rocm-team/rocm-hipamd/-/blob/master/debian/patches/0026-extend-hip-isa-compatibility-check.patch ---- a/hipamd/src/hip_code_object.cpp -+++ b/hipamd/src/hip_code_object.cpp -@@ -390,47 +390,123 @@ static bool getTripleTargetID(std::string bundled_co_entry_id, const void* code_ - return true; - } - --static bool isCodeObjectCompatibleWithDevice(std::string co_triple_target_id, -- std::string agent_triple_target_id) { -+struct GfxPattern { -+ std::string root; -+ std::string suffixes; -+}; -+ -+static bool matches(const GfxPattern& p, const std::string& s) { -+ if (p.root.size() + 1 != s.size()) { -+ return false; -+ } -+ if (0 != std::memcmp(p.root.data(), s.data(), p.root.size())) { -+ return false; -+ } -+ return p.suffixes.find(s[p.root.size()]) != std::string::npos; -+} -+ -+static bool isGfx900EquivalentProcessor(const std::string& processor) { -+ return matches(GfxPattern{"gfx90", "029c"}, processor); -+} -+ -+static bool isGfx900SupersetProcessor(const std::string& processor) { -+ return matches(GfxPattern{"gfx90", "0269c"}, processor); -+} -+ -+static bool isGfx1030EquivalentProcessor(const std::string& processor) { -+ return matches(GfxPattern{"gfx103", "0123456"}, processor); -+} -+ -+static bool isGfx1010EquivalentProcessor(const std::string& processor) { -+ return matches(GfxPattern{"gfx101", "0"}, processor); -+} -+ -+static bool isGfx1010SupersetProcessor(const std::string& processor) { -+ return matches(GfxPattern{"gfx101", "0123"}, processor); -+} -+ -+enum CompatibilityScore { -+ CS_EXACT_MATCH = 1 << 4, -+ CS_PROCESSOR_MATCH = 1 << 3, -+ CS_PROCESSOR_COMPATIBLE = 1 << 2, -+ CS_XNACK_SPECIALIZED = 1 << 1, -+ CS_SRAM_ECC_SPECIALIZED = 1 << 0, -+ CS_INCOMPATIBLE = 0, -+}; -+ -+static int getProcessorCompatibilityScore(const std::string& co_processor, -+ const std::string& agent_processor) { -+ if (co_processor == agent_processor) -+ return CS_PROCESSOR_MATCH; -+ -+ if (isGfx900SupersetProcessor(agent_processor)) -+ return isGfx900EquivalentProcessor(co_processor) ? CS_PROCESSOR_COMPATIBLE : CS_INCOMPATIBLE; -+ -+ if (isGfx1010SupersetProcessor(agent_processor)) -+ return isGfx1010EquivalentProcessor(co_processor) ? CS_PROCESSOR_COMPATIBLE : CS_INCOMPATIBLE; -+ -+ if (isGfx1030EquivalentProcessor(agent_processor)) -+ return isGfx1030EquivalentProcessor(co_processor) ? CS_PROCESSOR_COMPATIBLE : CS_INCOMPATIBLE; -+ -+ return CS_INCOMPATIBLE; -+} -+ -+static int getCompatiblityScore(std::string co_triple_target_id, -+ std::string agent_triple_target_id) { - // Primitive Check -- if (co_triple_target_id == agent_triple_target_id) return true; -+ if (co_triple_target_id == agent_triple_target_id) return CS_EXACT_MATCH; - - // Parse code object triple target id - if (!consume(co_triple_target_id, std::string(AMDGCN_TARGET_TRIPLE) + '-')) { -- return false; -+ return CS_INCOMPATIBLE; - } - - std::string co_processor; - char co_sram_ecc, co_xnack; - if (!getTargetIDValue(co_triple_target_id, co_processor, co_sram_ecc, co_xnack)) { -- return false; -+ return CS_INCOMPATIBLE; - } - -- if (!co_triple_target_id.empty()) return false; -+ if (!co_triple_target_id.empty()) return CS_INCOMPATIBLE; - - // Parse agent isa triple target id - if (!consume(agent_triple_target_id, std::string(AMDGCN_TARGET_TRIPLE) + '-')) { -- return false; -+ return CS_INCOMPATIBLE; - } - - std::string agent_isa_processor; - char isa_sram_ecc, isa_xnack; - if (!getTargetIDValue(agent_triple_target_id, agent_isa_processor, isa_sram_ecc, isa_xnack)) { -- return false; -+ return CS_INCOMPATIBLE; - } - -- if (!agent_triple_target_id.empty()) return false; -+ if (!agent_triple_target_id.empty()) return CS_INCOMPATIBLE; - - // Check for compatibility -- if (agent_isa_processor != co_processor) return false; -- if (co_sram_ecc != ' ') { -- if (co_sram_ecc != isa_sram_ecc) return false; -+ int processor_score = getProcessorCompatibilityScore(co_processor, agent_isa_processor); -+ if (processor_score == CS_INCOMPATIBLE) { -+ return CS_INCOMPATIBLE; - } -- if (co_xnack != ' ') { -- if (co_xnack != isa_xnack) return false; -+ -+ int xnack_bonus; -+ if (co_xnack == ' ') { -+ xnack_bonus = 0; -+ } else if (co_xnack == isa_xnack) { -+ xnack_bonus = CS_XNACK_SPECIALIZED; -+ } else { -+ return CS_INCOMPATIBLE; - } - -- return true; -+ int sram_ecc_bonus; -+ if (co_sram_ecc == ' ') { -+ sram_ecc_bonus = 0; -+ } else if (co_sram_ecc == isa_sram_ecc) { -+ sram_ecc_bonus = CS_SRAM_ECC_SPECIALIZED; -+ } else { -+ return CS_INCOMPATIBLE; -+ } -+ -+ return processor_score + xnack_bonus + sram_ecc_bonus; - } - - // This will be moved to COMGR eventually -@@ -483,6 +559,7 @@ hipError_t CodeObject::extractCodeObjectFromFatBinary( - for (size_t i = 0; i < agent_triple_target_ids.size(); i++) { - code_objs.push_back(std::make_pair(nullptr, 0)); - } -+ std::vector compatibility_score(agent_triple_target_ids.size()); - - const auto obheader = reinterpret_cast(data); - const auto* desc = &obheader->desc[0]; -@@ -495,17 +572,19 @@ hipError_t CodeObject::extractCodeObjectFromFatBinary( - reinterpret_cast(reinterpret_cast(obheader) + desc->offset); - const size_t image_size = desc->size; - -- if (num_code_objs == 0) break; - std::string bundleEntryId{desc->bundleEntryId, desc->bundleEntryIdSize}; - - std::string co_triple_target_id; - if (!getTripleTargetID(bundleEntryId, image, co_triple_target_id)) continue; - - for (size_t dev = 0; dev < agent_triple_target_ids.size(); ++dev) { -- if (code_objs[dev].first) continue; -- if (isCodeObjectCompatibleWithDevice(co_triple_target_id, agent_triple_target_ids[dev])) { -+ if (compatibility_score[dev] >= CS_PROCESSOR_MATCH) continue; -+ int score = getCompatiblityScore(co_triple_target_id, agent_triple_target_ids[dev]); -+ if (score > compatibility_score[dev]) { -+ compatibility_score[dev] = score; -+ if (!code_objs[dev].first) -+ --num_code_objs; - code_objs[dev] = std::make_pair(image, image_size); -- --num_code_objs; - } - } - } ---- a/rocclr/device/device.cpp -+++ b/rocclr/device/device.cpp -@@ -234,10 +234,49 @@ std::string Isa::isaName() const { - return std::string(hsaIsaNamePrefix) + targetId(); - } - -+template -+static bool Contains(const std::array& arr, const T& value) { -+ return std::find(std::begin(arr), std::end(arr), value) != std::end(arr); -+} -+ -+static bool IsVersionCompatible(const Isa &codeObjectIsa, -+ const Isa &agentIsa) { -+ if (codeObjectIsa.versionMajor() == agentIsa.versionMajor() && -+ codeObjectIsa.versionMinor() == agentIsa.versionMinor()) { -+ -+ if (codeObjectIsa.versionStepping() == agentIsa.versionStepping()) { -+ return true; // exact match -+ } -+ -+ // The code object and the agent may sometimes be compatible if -+ // they differ only by stepping version. -+ if (codeObjectIsa.versionMajor() == 9 && -+ codeObjectIsa.versionMinor() == 0) { -+ const std::array gfx900_equivalent = { 0, 2, 9, 12 }; -+ const std::array gfx900_superset = { 0, 2, 6, 9, 12 }; -+ if (Contains(gfx900_equivalent, codeObjectIsa.versionStepping()) && -+ Contains(gfx900_superset, agentIsa.versionStepping())) { -+ return true; // gfx900 compatible object and agent -+ } -+ } else if (codeObjectIsa.versionMajor() == 10) { -+ if (codeObjectIsa.versionMinor() == 1) { -+ const std::array gfx1010_equivalent = { 0 }; -+ const std::array gfx1010_superset = { 0, 1, 2, 3 }; -+ if (Contains(gfx1010_equivalent, codeObjectIsa.versionStepping()) && -+ Contains(gfx1010_superset, agentIsa.versionStepping())) { -+ return true; // gfx1010 compatible object and agent -+ } -+ } else if (codeObjectIsa.versionMinor() == 3) { -+ return true; // gfx1030 compatible object and agent -+ } -+ } -+ } -+ -+ return false; -+} -+ - bool Isa::isCompatible(const Isa &codeObjectIsa, const Isa &agentIsa) { -- if (codeObjectIsa.versionMajor() != agentIsa.versionMajor() || -- codeObjectIsa.versionMinor() != agentIsa.versionMinor() || -- codeObjectIsa.versionStepping() != agentIsa.versionStepping()) -+ if (!IsVersionCompatible(codeObjectIsa, agentIsa)) - return false; - - assert(codeObjectIsa.isSrameccSupported() == agentIsa.isSrameccSupported() && diff --git a/dev-util/hip/files/hip-5.7.1-fix-mmap-oom-check.patch b/dev-util/hip/files/hip-5.7.1-fix-mmap-oom-check.patch deleted file mode 100644 index dbafe4e..0000000 --- a/dev-util/hip/files/hip-5.7.1-fix-mmap-oom-check.patch +++ /dev/null @@ -1,41 +0,0 @@ -Backport of SWDEV-417691 - Error handling for MemoryMap OS calls. -The issue was fixed in rocclr 6.0.0. -https://github.com/ROCm/clr/commit/7a10423a44b8b353f67539dc1ae14c0b99c209b8 ---- a/rocclr/os/os_posix.cpp -+++ b/rocclr/os/os_posix.cpp -@@ -214,7 +214,7 @@ address Os::reserveMemory(address start, size_t size, size_t alignment, MemProt - MAP_PRIVATE | MAP_NORESERVE | MAP_ANONYMOUS, 0, 0); - - // check for out of memory -- if (mem == NULL) return NULL; -+ if (mem == MAP_FAILED) return NULL; - - address aligned = alignUp(mem, alignment); - -@@ -842,7 +842,7 @@ bool Os::MemoryMapFileDesc(FileDesc fdesc, size_t fsize, size_t foffset, const v - } - - *mmap_ptr = mmap(NULL, fsize, PROT_READ, MAP_SHARED, fdesc, foffset); -- return true; -+ return (*mmap_ptr == MAP_FAILED) ? false : true; - } - - bool Os::MemoryUnmapFile(const void* mmap_ptr, size_t mmap_size) { -@@ -874,7 +874,7 @@ bool Os::MemoryMapFile(const char* fname, const void** mmap_ptr, size_t* mmap_si - - close(fd); - -- if (*mmap_ptr == nullptr) { -+ if (*mmap_ptr == MAP_FAILED) { - return false; - } - -@@ -899,7 +899,7 @@ bool Os::MemoryMapFileTruncated(const char* fname, const void** mmap_ptr, size_t - - close(fd); - -- if (*mmap_ptr == nullptr) { -+ if (*mmap_ptr == MAP_FAILED) { - return false; - } - \ No newline at end of file diff --git a/dev-util/hip/files/hip-5.7.1-fix-unaligned-access.patch b/dev-util/hip/files/hip-5.7.1-fix-unaligned-access.patch deleted file mode 100644 index ae2092f..0000000 --- a/dev-util/hip/files/hip-5.7.1-fix-unaligned-access.patch +++ /dev/null @@ -1,67 +0,0 @@ -Fix SIGSEGV when compiled with avx-512 instructions. - -Due to unaligned allocations, library crashes in -nontemporalMemcpy in _mm512_stream_si512 (which requires -64-aligned allocations, but used to copy default-aligned objects). - -Without this patch hipamd causes random crashes in hipMemcpy* callers -(tensile, rocBLAS, miopen, rocThrust, etc.). - -Bug: https://bugs.gentoo.org/915969 -Bug report in upstream: https://github.com/ROCm-Developer-Tools/clr/issues/18 ---- a/rocclr/device/rocm/rocvirtual.cpp -+++ b/rocclr/device/rocm/rocvirtual.cpp -@@ -2790,44 +2790,6 @@ bool VirtualGPU::createVirtualQueue(uint deviceQueueSize) - return true; - } - --// ================================================================================================ --__attribute__((optimize("unroll-all-loops"), always_inline)) --static inline void nontemporalMemcpy(void* __restrict dst, const void* __restrict src, -- uint16_t size) { -- #if defined(__AVX512F__) -- for (auto i = 0u; i != size / sizeof(__m512i); ++i) { -- _mm512_stream_si512(reinterpret_cast<__m512i* __restrict&>(dst)++, -- *reinterpret_cast(src)++); -- } -- size = size % sizeof(__m512i); -- #endif -- -- #if defined(__AVX__) -- for (auto i = 0u; i != size / sizeof(__m256i); ++i) { -- _mm256_stream_si256(reinterpret_cast<__m256i* __restrict&>(dst)++, -- *reinterpret_cast(src)++); -- } -- size = size % sizeof(__m256i); -- #endif -- -- for (auto i = 0u; i != size / sizeof(__m128i); ++i) { -- _mm_stream_si128(reinterpret_cast<__m128i* __restrict&>(dst)++, -- *(reinterpret_cast(src)++)); -- } -- size = size % sizeof(__m128i); -- -- for (auto i = 0u; i != size / sizeof(long long); ++i) { -- _mm_stream_si64(reinterpret_cast(dst)++, -- *reinterpret_cast(src)++); -- } -- size = size % sizeof(long long); -- -- for (auto i = 0u; i != size / sizeof(int); ++i) { -- _mm_stream_si32(reinterpret_cast(dst)++, -- *reinterpret_cast(src)++); -- } --} -- - // ================================================================================================ - bool VirtualGPU::submitKernelInternal(const amd::NDRangeContainer& sizes, - const amd::Kernel& kernel, const_address parameters, void* eventHandle, -@@ -3096,7 +3058,7 @@ bool VirtualGPU::submitKernelInternal(const amd::NDRangeContainer& sizes, - argBuffer = reinterpret_cast
(allocKernArg(gpuKernel.KernargSegmentByteSize(), - gpuKernel.KernargSegmentAlignment())); - // Load all kernel arguments -- nontemporalMemcpy(argBuffer, parameters, -+ memcpy(argBuffer, parameters, - std::min(gpuKernel.KernargSegmentByteSize(), - signature.paramsSize())); - } diff --git a/dev-util/hip/files/hip-5.7.1-no_asan_doc.patch b/dev-util/hip/files/hip-5.7.1-no_asan_doc.patch deleted file mode 100644 index 40de416..0000000 --- a/dev-util/hip/files/hip-5.7.1-no_asan_doc.patch +++ /dev/null @@ -1,17 +0,0 @@ -Donot install -asan documents. - -Reference: -https://github.com/RadeonOpenCompute/llvm-project/commit/e782e09f7b113a0f896c6cec7240d411aca1d73f -https://github.com/RadeonOpenCompute/ROCm-CompilerSupport/issues/61 - ---- a/hipamd/packaging/CMakeLists.txt 2023-11-18 23:25:45.000000000 +0800 -+++ b/hipamd/packaging/CMakeLists.txt 2023-11-18 23:27:27.230354665 +0800 -@@ -36,8 +36,6 @@ - ###Set License#### - set(CPACK_RESOURCE_FILE_LICENSE ${hip_SOURCE_DIR}/LICENSE.txt) - install(FILES ${CPACK_RESOURCE_FILE_LICENSE} DESTINATION ${CMAKE_INSTALL_DOCDIR} COMPONENT binary) --# install license file in share/doc/hip-asan folder --install(FILES ${CPACK_RESOURCE_FILE_LICENSE} DESTINATION ${CMAKE_INSTALL_DOCDIR}-asan COMPONENT asan) - set(CPACK_RPM_PACKAGE_LICENSE "MIT") - #Begin binary files install - if(HIP_PLATFORM STREQUAL "amd" ) diff --git a/dev-util/hip/files/hip-6.1.0-install.patch b/dev-util/hip/files/hip-6.1.0-install.patch deleted file mode 100644 index 416663f..0000000 --- a/dev-util/hip/files/hip-6.1.0-install.patch +++ /dev/null @@ -1,20 +0,0 @@ -These files already installed by hipcc, which is a runtime dep ---- a/hipamd/CMakeLists.txt -+++ b/hipamd/CMakeLists.txt -@@ -401,16 +401,7 @@ if (NOT ${HIPCC_BIN_DIR} STREQUAL "") - set(hipcc_bin ${hipcc_bin}.exe) - set(hipconfig_bin ${hipconfig_bin}.exe) - endif() -- if(EXISTS ${hipcc_bin} AND EXISTS ${hipconfig_bin}) -- install(PROGRAMS ${hipcc_bin} DESTINATION bin) -- install(PROGRAMS ${hipconfig_bin} DESTINATION bin) -- endif() - endif() -- install(PROGRAMS ${HIPCC_BIN_DIR}/hipcc DESTINATION bin) -- install(PROGRAMS ${HIPCC_BIN_DIR}/hipconfig DESTINATION bin) -- install(PROGRAMS ${HIPCC_BIN_DIR}/hipcc.pl DESTINATION bin) -- install(PROGRAMS ${HIPCC_BIN_DIR}/hipconfig.pl DESTINATION bin) -- install(PROGRAMS ${HIPCC_BIN_DIR}/hipvars.pm DESTINATION bin) - if(WIN32) - install(PROGRAMS ${HIPCC_BIN_DIR}/hipcc.bat DESTINATION bin) - install(PROGRAMS ${HIPCC_BIN_DIR}/hipconfig.bat DESTINATION bin) \ No newline at end of file diff --git a/dev-util/hip/files/hip-6.1.1-fix-musl.patch b/dev-util/hip/files/hip-6.1.1-fix-musl.patch deleted file mode 100644 index 424cd0d..0000000 --- a/dev-util/hip/files/hip-6.1.1-fix-musl.patch +++ /dev/null @@ -1,24 +0,0 @@ -Fix "basename" and "__cpu_mask" definitions for musl - -Upstream PR: https://github.com/ROCm/clr/pull/83 ---- a/rocclr/os/os.hpp -+++ b/rocclr/os/os.hpp -@@ -29,6 +29,7 @@ - - #if defined(__linux__) - #include -+#include - #endif - - #ifdef _WIN32 -@@ -377,6 +378,10 @@ ALWAYSINLINE address Os::currentStackPtr() { - - #if defined(__linux__) - -+#ifndef __GLIBC__ -+typedef unsigned long int __cpu_mask; -+#endif -+ - inline void Os::ThreadAffinityMask::init() { CPU_ZERO(&mask_); } - - inline void Os::ThreadAffinityMask::set(uint cpu) { CPU_SET(cpu, &mask_); } diff --git a/dev-util/hip/files/hip-6.2.4-libcxx.patch b/dev-util/hip/files/hip-6.2.4-libcxx.patch deleted file mode 100644 index 9f11bae..0000000 --- a/dev-util/hip/files/hip-6.2.4-libcxx.patch +++ /dev/null @@ -1,25 +0,0 @@ -Fix for: class template specialization of '__numeric_type' not in a namespace enclosing '__hip' - -Backports https://github.com/ROCm/clr/pull/109 ---- a/hipamd/include/hip/amd_detail/amd_math_functions.h -+++ b/hipamd/include/hip/amd_detail/amd_math_functions.h -@@ -41,19 +41,6 @@ THE SOFTWARE. - #include - #endif // !defined(__HIPCC_RTC__) - --#if _LIBCPP_VERSION && __HIP__ --namespace std { --template <> --struct __numeric_type<_Float16> --{ -- static _Float16 __test(_Float16); -- -- typedef _Float16 type; -- static const bool value = true; --}; --} --#endif // _LIBCPP_VERSION -- - #pragma push_macro("__DEVICE__") - #pragma push_macro("__RETURN_TYPE") - diff --git a/dev-util/hip/files/hip-6.3.0-clr-fix-libcxx.patch b/dev-util/hip/files/hip-6.3.0-clr-fix-libcxx.patch deleted file mode 100644 index 3052e25..0000000 --- a/dev-util/hip/files/hip-6.3.0-clr-fix-libcxx.patch +++ /dev/null @@ -1,30 +0,0 @@ -Fix compilation with libc++ (ROCM/clr part) ---- a/hipamd/include/hip/amd_detail/amd_hip_runtime.h -+++ b/hipamd/include/hip/amd_detail/amd_hip_runtime.h -@@ -386,15 +386,26 @@ hc_get_workitem_absolute_id(int dim) - #pragma push_macro("__CUDA__") - #define __CUDA__ - #include <__clang_cuda_math_forward_declares.h> -+// __clang_cuda_complex_builtins wants ::max -+#include <__clang_hip_math.h> - #include <__clang_cuda_complex_builtins.h> - // Workaround for using libc++ with HIP-Clang. - // The following headers requires clang include path before standard C++ include path. - // However libc++ include path requires to be before clang include path. - // To workaround this, we pass -isystem with the parent directory of clang include - // path instead of the clang include path itself. -+ -+// libc++: transitively includes , which uses __local -+#define ORIGINAL__LOCAL __local -+#undef __local -+ - #include - #include - #include -+ -+#define __local ORIGINAL__LOCAL -+#undef ORIGINAL__LOCAL -+ - #undef __CUDA__ - #pragma pop_macro("__CUDA__") - #endif // !_OPENMP || __HIP_ENABLE_CUDA_WRAPPER_FOR_OPENMP__ diff --git a/dev-util/hip/files/hip-6.3.0-hip-fix-libcxx.patch b/dev-util/hip/files/hip-6.3.0-hip-fix-libcxx.patch deleted file mode 100644 index 01409cb..0000000 --- a/dev-util/hip/files/hip-6.3.0-hip-fix-libcxx.patch +++ /dev/null @@ -1,27 +0,0 @@ -Fix compilation with libc++ (ROCm/HIP part) ---- a/include/hip/hip_runtime.h -+++ b/include/hip/hip_runtime.h -@@ -49,10 +49,6 @@ THE SOFTWARE. - #include - #include - #include -- --#if __cplusplus > 199711L --#include --#endif - #endif // !defined(__HIPCC_RTC__) - - #include -@@ -67,6 +63,12 @@ THE SOFTWARE. - #endif - - #if !defined(__HIPCC_RTC__) -+// libc++ transitively includes thread->string_view->cuda_wrappers/algorithm, -+// which uses __host__, which is included via hip runtime above -+#if __cplusplus > 199711L -+#include -+#endif -+ - #include - #include - #endif // !defined(__HIPCC_RTC__) diff --git a/dev-util/hip/files/hip-6.3.0-install.patch b/dev-util/hip/files/hip-6.3.0-install.patch deleted file mode 100644 index 40b88f4..0000000 --- a/dev-util/hip/files/hip-6.3.0-install.patch +++ /dev/null @@ -1,12 +0,0 @@ -hipcc files are already installed by dev-util/hipcc, which is a runtime dep ---- a/hipamd/CMakeLists.txt -+++ b/hipamd/CMakeLists.txt -@@ -393,7 +393,7 @@ endif() - install(FILES ${PROJECT_BINARY_DIR}/include/hip/hip_version.h - DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/hip) - --if (NOT ${HIPCC_BIN_DIR} STREQUAL "") -+if (INSTALL_HIPCC AND NOT ${HIPCC_BIN_DIR} STREQUAL "") - file(TO_CMAKE_PATH "${HIPCC_BIN_DIR}" HIPCC_BIN_DIR) - if(EXISTS ${HIPCC_BIN_DIR}) - install(PROGRAMS ${HIPCC_BIN_DIR}/${HIPCC_EXECUTABLE} DESTINATION bin) diff --git a/dev-util/hip/files/hip-6.3.0-no-isystem-usr-include.patch b/dev-util/hip/files/hip-6.3.0-no-isystem-usr-include.patch deleted file mode 100644 index 973de08..0000000 --- a/dev-util/hip/files/hip-6.3.0-no-isystem-usr-include.patch +++ /dev/null @@ -1,17 +0,0 @@ -Prevent HIP targets from adding -isystem /usr/include, which breaks ---- a/hipamd/hip-config-amd.cmake.in -+++ b/hipamd/hip-config-amd.cmake.in -@@ -135,13 +135,11 @@ set_target_properties(hip::host PROPERTIES - - set_target_properties(hip::amdhip64 PROPERTIES - INTERFACE_INCLUDE_DIRECTORIES "${_IMPORT_PREFIX}/include" -- INTERFACE_SYSTEM_INCLUDE_DIRECTORIES "${_IMPORT_PREFIX}/include" - ) - - if(NOT WIN32) - set_target_properties(hip::device PROPERTIES - INTERFACE_INCLUDE_DIRECTORIES "${_IMPORT_PREFIX}/include" -- INTERFACE_SYSTEM_INCLUDE_DIRECTORIES "${_IMPORT_PREFIX}/include" - ) - endif() - diff --git a/dev-util/hip/files/hip-test-5.7.0-rocm_agent_enumerator-location.patch b/dev-util/hip/files/hip-test-5.7.0-rocm_agent_enumerator-location.patch deleted file mode 100644 index 1d96721..0000000 --- a/dev-util/hip/files/hip-test-5.7.0-rocm_agent_enumerator-location.patch +++ /dev/null @@ -1,15 +0,0 @@ -In Gentoo rocm_agent_enumerator is installed by rocminfo and is in PATH. - ---- catch/CMakeLists.txt~ 2023-11-18 13:56:08.000000000 +0800 -+++ catch/CMakeLists.txt 2023-11-18 13:59:28.136170638 +0800 -@@ -182,9 +182,8 @@ - # rocm_agent_enumerator - if(NOT DEFINED OFFLOAD_ARCH_STR - AND NOT DEFINED ENV{HCC_AMDGPU_TARGET} -- AND EXISTS "${ROCM_PATH}/bin/rocm_agent_enumerator" - AND HIP_PLATFORM STREQUAL "amd" AND UNIX) -- execute_process(COMMAND ${ROCM_PATH}/bin/rocm_agent_enumerator -+ execute_process(COMMAND rocm_agent_enumerator - OUTPUT_VARIABLE HIP_GPU_ARCH - RESULT_VARIABLE ROCM_AGENT_ENUM_RESULT) - # Trim out gfx000 diff --git a/dev-util/hip/files/hip-test-5.7.1-remove-incompatible-flag.patch b/dev-util/hip/files/hip-test-5.7.1-remove-incompatible-flag.patch deleted file mode 100644 index 02aa12f..0000000 --- a/dev-util/hip/files/hip-test-5.7.1-remove-incompatible-flag.patch +++ /dev/null @@ -1,28 +0,0 @@ -https://github.com/ROCm/hip-tests/pull/443 - -From cb0140843a162f69c454e91cd994524423b39b8c Mon Sep 17 00:00:00 2001 -From: Yiyang Wu -Date: Sun, 10 Dec 2023 21:57:14 +0800 -Subject: [PATCH] -fallow-half-arguments-and-returns is not recognized by clang - -Reference: https://reviews.llvm.org/D145345 -Issue: https://github.com/ROCm/HIP/issues/3178 -Signed-off-by: Yiyang Wu ---- - catch/unit/deviceLib/CMakeLists.txt | 1 - - 1 file changed, 1 deletion(-) - -diff --git a/catch/unit/deviceLib/CMakeLists.txt b/catch/unit/deviceLib/CMakeLists.txt -index 0645def..3662cbd 100644 ---- catch/unit/deviceLib/CMakeLists.txt -+++ catch/unit/deviceLib/CMakeLists.txt -@@ -171,7 +171,6 @@ if(${ARCH_CHECK} GREATER_EQUAL 0) - set_source_files_properties(unsafeAtomicAdd_NonCoherent_withunsafeflag.cc PROPERTIES COMPILE_OPTIONS "-munsafe-fp-atomics") - set_source_files_properties(unsafeAtomicAdd_Coherent_withnounsafeflag.cc PROPERTIES COMPILE_OPTIONS "-mno-unsafe-fp-atomics") - set_source_files_properties(unsafeAtomicAdd_NonCoherent_withnounsafeflag.cc PROPERTIES COMPILE_OPTIONS "-mno-unsafe-fp-atomics") -- set_source_files_properties(hipMathFunctions.cc PROPERTIES COMPILE_FLAGS "-Xclang -fallow-half-arguments-and-returns") - file(GLOB AtomicAdd_files *AtomicAdd_*_*.cc) - set_property(SOURCE ${AtomicAdd_files} PROPERTY COMPILE_FLAGS --save-temps) - file(GLOB unsafeAtomicAdd_files *unsafeAtomicAdd_*_*.cc) --- -2.42.0 diff --git a/dev-util/hip/files/hip-test-6.0.2-hipcc-system-install.patch b/dev-util/hip/files/hip-test-6.0.2-hipcc-system-install.patch deleted file mode 100644 index bf14393..0000000 --- a/dev-util/hip/files/hip-test-6.0.2-hipcc-system-install.patch +++ /dev/null @@ -1,43 +0,0 @@ -In Gentoo rocm_agent_enumerator is installed by rocminfo and is in PATH. - -Index: catch/CMakeLists.txt -=================================================================== ---- catch.orig/CMakeLists.txt -+++ catch/CMakeLists.txt -@@ -55,9 +55,9 @@ endif() - message(STATUS "HIP_PATH: ${HIP_PATH}") - message(STATUS "ROCM_PATH: ${ROCM_PATH}") - --set(CMAKE_CXX_COMPILER "${HIP_PATH}/bin/hipcc${EXT}") --set(CMAKE_C_COMPILER "${HIP_PATH}/bin/hipcc${EXT}") --set(HIPCONFIG_EXECUTABLE "${HIP_PATH}/bin/hipconfig${EXT}") -+set(CMAKE_CXX_COMPILER "hipcc${EXT}") -+set(CMAKE_C_COMPILER "hipcc${EXT}") -+set(HIPCONFIG_EXECUTABLE "hipconfig${EXT}") - execute_process(COMMAND ${HIPCONFIG_EXECUTABLE} --version - OUTPUT_VARIABLE HIP_VERSION - OUTPUT_STRIP_TRAILING_WHITESPACE) -@@ -183,9 +183,8 @@ message(STATUS "CMAKE HIP ARCHITECTURES: - # OFFLOAD_ARCH_STR - # rocm_agent_enumerator - if(NOT DEFINED OFFLOAD_ARCH_STR -- AND EXISTS "${ROCM_PATH}/bin/rocm_agent_enumerator" - AND HIP_PLATFORM STREQUAL "amd" AND UNIX) -- execute_process(COMMAND "${ROCM_PATH}/bin/rocm_agent_enumerator" -+ execute_process(COMMAND "rocm_agent_enumerator" - OUTPUT_VARIABLE HIP_GPU_ARCH - RESULT_VARIABLE ROCM_AGENT_ENUM_RESULT - OUTPUT_STRIP_TRAILING_WHITESPACE) -Index: catch/hipTestMain/hip_test_context.cc -=================================================================== ---- catch.orig/hipTestMain/hip_test_context.cc -+++ catch/hipTestMain/hip_test_context.cc -@@ -37,7 +37,7 @@ std::string TestContext::substringFound( - - std::string TestContext::getCurrentArch() { - #if HT_LINUX -- const char* cmd = "/opt/rocm/bin/rocm_agent_enumerator | sort -u | xargs | sed -e 's/ /;/g'"; -+ const char* cmd = "rocm_agent_enumerator | sort -u | xargs | sed -e 's/ /;/g'"; - std::array buffer; - std::string result; - std::unique_ptr pipe(popen(cmd, "r"), pclose); diff --git a/dev-util/hip/files/hip-test-6.1.0-disable-hipKerArgOptimization.patch b/dev-util/hip/files/hip-test-6.1.0-disable-hipKerArgOptimization.patch deleted file mode 100644 index cb65eba..0000000 --- a/dev-util/hip/files/hip-test-6.1.0-disable-hipKerArgOptimization.patch +++ /dev/null @@ -1,24 +0,0 @@ -Those tests requires >=clang-18 to support -amdgpu-kernarg-preload-count -index afdf8c4..28b0198 100644 ---- a/unit/module/CMakeLists.txt -+++ b/unit/module/CMakeLists.txt -@@ -41,9 +41,6 @@ add_custom_target(copyKernel.s - -I${CMAKE_CURRENT_SOURCE_DIR}/../../include --rocm-path=${ROCM_PATH}) - - if(UNIX) --set(TEST_SRC -- ${TEST_SRC} -- hipKerArgOptimization.cc) - - add_custom_target(copiousArgKernel.code - COMMAND ${CMAKE_CXX_COMPILER} --genco ${OFFLOAD_ARCH_STR} -@@ -106,8 +103,4 @@ hip_add_exe_to_target(NAME ModuleTest - TEST_TARGET_NAME build_tests COMMON_SHARED_SRC ${COMMON_SHARED_SRC}) - - add_dependencies(build_tests copyKernel.code copyKernel.s) --if(UNIX) --add_dependencies(build_tests copiousArgKernel.code copiousArgKernel0.code copiousArgKernel1.code copiousArgKernel2.code --copiousArgKernel3.code copiousArgKernel16.code copiousArgKernel17.code) - endif() --endif() -\ No newline at end of file diff --git a/dev-util/hip/files/hip-test-6.1.1-fix-musl.patch b/dev-util/hip/files/hip-test-6.1.1-fix-musl.patch deleted file mode 100644 index c3f3e45..0000000 --- a/dev-util/hip/files/hip-test-6.1.1-fix-musl.patch +++ /dev/null @@ -1,159 +0,0 @@ -Fix musl errors: -* reinterpret_cast from 'std::nullptr_t' to 'void **' is not allowed -* error.h is GNU extension - -Upstream PR: https://github.com/ROCm/hip-tests/pull/463 ---- a/unit/rtc/headers/printf_common.h -+++ b/unit/rtc/headers/printf_common.h -@@ -30,7 +30,6 @@ THE SOFTWARE. - #if defined(_WIN32) - #include - #else --#include - #include - #endif - -@@ -110,7 +109,7 @@ struct CaptureStream { - saved_fd = dup(orig_fd); - - if ((temp_fd = mkstemp(tempname)) == -1) { -- error(0, errno, "Error"); -+ fprintf(stderr, "Error: %s\n", strerror(errno)); - assert(false); - } - } -@@ -118,11 +117,11 @@ struct CaptureStream { - void Begin() { - fflush(nullptr); - if (dup2(temp_fd, orig_fd) == -1) { -- error(0, errno, "Error"); -+ fprintf(stderr, "Error: %s\n", strerror(errno)); - assert(false); - } - if (close(temp_fd) != 0) { -- error(0, errno, "Error"); -+ fprintf(stderr, "Error: %s\n", strerror(errno)); - assert(false); - } - } -@@ -130,11 +129,11 @@ struct CaptureStream { - void End() { - fflush(nullptr); - if (dup2(saved_fd, orig_fd) == -1) { -- error(0, errno, "Error"); -+ fprintf(stderr, "Error: %s\n", strerror(errno)); - assert(false); - } - if (close(saved_fd) != 0) { -- error(0, errno, "Error"); -+ fprintf(stderr, "Error: %s\n", strerror(errno)); - assert(false); - } - } -@@ -148,7 +147,7 @@ struct CaptureStream { - - ~CaptureStream() { - if (remove(tempname) != 0) { -- error(0, errno, "Error"); -+ fprintf(stderr, "Error: %s\n", strerror(errno)); - assert(false); - } - } ---- a/unit/memory/hipMemRangeGetAttributes_old.cc -+++ b/unit/memory/hipMemRangeGetAttributes_old.cc -@@ -268,7 +268,7 @@ TEST_CASE("Unit_hipMemRangeGetAttributes_NegativeTst") { - // Passing NULL as first parameter - SECTION("Passing NULL as first parameter") { - if (!CheckError(hipMemRangeGetAttributes( -- reinterpret_cast(NULL), -+ static_cast(NULL), - reinterpret_cast(dataSizes), - AttrArr, 4, Hmm, MEM_SIZE), - __LINE__)) { ---- a/unit/occupancy/hipOccupancyMaxActiveBlocksPerMultiprocessor_old.cc -+++ b/unit/occupancy/hipOccupancyMaxActiveBlocksPerMultiprocessor_old.cc -@@ -40,7 +40,7 @@ TEST_CASE("Unit_hipOccupancyMaxActiveBlocksPerMultiprocessor_Negative") { - ret = hipOccupancyMaxActiveBlocksPerMultiprocessor(NULL, f1, blockSize, 0); - REQUIRE(ret != hipSuccess); - -- ret = hipOccupancyMaxActiveBlocksPerMultiprocessor(&numBlock, NULL, blockSize, 0); -+ ret = hipOccupancyMaxActiveBlocksPerMultiprocessor(&numBlock, static_cast(NULL), blockSize, 0); - REQUIRE(ret != hipSuccess); - - ret = hipOccupancyMaxActiveBlocksPerMultiprocessor(&numBlock, f1, 0, 0); ---- a/unit/occupancy/hipOccupancyMaxPotentialBlockSize_old.cc -+++ b/unit/occupancy/hipOccupancyMaxPotentialBlockSize_old.cc -@@ -37,7 +37,7 @@ TEST_CASE("Unit_hipOccupancyMaxPotentialBlockSize_Negative") { - - #ifndef __HIP_PLATFORM_NVIDIA__ - // nvcc doesnt support kernelfunc(NULL) for api -- ret = hipOccupancyMaxPotentialBlockSize(&gridSize, &blockSize, NULL, 0, 0); -+ ret = hipOccupancyMaxPotentialBlockSize(&gridSize, &blockSize, static_cast(NULL), 0, 0); - REQUIRE(ret != hipSuccess); - #endif - } ---- a/unit/occupancy/hipOccupancyMaxActiveBlocksPerMultiprocessor.cc -+++ b/unit/occupancy/hipOccupancyMaxActiveBlocksPerMultiprocessor.cc -@@ -48,7 +48,7 @@ TEST_CASE("Unit_hipOccupancyMaxActiveBlocksPerMultiprocessor_Negative_Parameters - blockSize); - - SECTION("Kernel function is NULL") { -- HIP_CHECK_ERROR(hipOccupancyMaxActiveBlocksPerMultiprocessor(&numBlocks, NULL, blockSize, 0), -+ HIP_CHECK_ERROR(hipOccupancyMaxActiveBlocksPerMultiprocessor(&numBlocks, static_cast(NULL), blockSize, 0), - hipErrorInvalidDeviceFunction); - } - } ---- a/unit/kernel/printf_common.h -+++ b/unit/kernel/printf_common.h -@@ -24,7 +24,6 @@ THE SOFTWARE. - #define _STRESSTEST_PRINTF_COMMON_H_ - - #include --#include - #include - #include - #include -@@ -47,17 +46,17 @@ struct CaptureStream { - saved_fd = dup(orig_fd); - - if ((temp_fd = mkstemp(tempname)) == -1) { -- error(0, errno, "Error"); -+ fprintf(stderr, "Error: %s\n", strerror(errno)); - assert(false); - } - - fflush(nullptr); - if (dup2(temp_fd, orig_fd) == -1) { -- error(0, errno, "Error"); -+ fprintf(stderr, "Error: %s\n", strerror(errno)); - assert(false); - } - if (close(temp_fd) != 0) { -- error(0, errno, "Error"); -+ fprintf(stderr, "Error: %s\n", strerror(errno)); - assert(false); - } - } -@@ -67,11 +66,11 @@ struct CaptureStream { - return; - fflush(nullptr); - if (dup2(saved_fd, orig_fd) == -1) { -- error(0, errno, "Error"); -+ fprintf(stderr, "Error: %s\n", strerror(errno)); - assert(false); - } - if (close(saved_fd) != 0) { -- error(0, errno, "Error"); -+ fprintf(stderr, "Error: %s\n", strerror(errno)); - assert(false); - } - saved_fd = -1; -@@ -90,7 +89,7 @@ struct CaptureStream { - ~CaptureStream() { - restoreStream(); - if (remove(tempname) != 0) { -- error(0, errno, "Error"); -+ fprintf(stderr, "Error: %s\n", strerror(errno)); - assert(false); - } - } diff --git a/dev-util/hip/files/hip-test-6.3.0-hipcc-system-install.patch b/dev-util/hip/files/hip-test-6.3.0-hipcc-system-install.patch deleted file mode 100644 index 291da5a..0000000 --- a/dev-util/hip/files/hip-test-6.3.0-hipcc-system-install.patch +++ /dev/null @@ -1,12 +0,0 @@ -In Gentoo rocm_agent_enumerator is installed by rocminfo and is in PATH. ---- a/hipTestMain/hip_test_context.cc -+++ b/hipTestMain/hip_test_context.cc -@@ -37,7 +37,7 @@ std::string TestContext::substringFound( - - std::string TestContext::getCurrentArch() { - #if HT_LINUX -- const char* cmd = "/opt/rocm/bin/rocm_agent_enumerator | sort -u | xargs | sed -e 's/ /;/g'"; -+ const char* cmd = "rocm_agent_enumerator | sort -u | xargs | sed -e 's/ /;/g'"; - std::array buffer; - std::string result; - std::unique_ptr pipe(popen(cmd, "r"), pclose); diff --git a/dev-util/hip/hip-5.7.1-r2.ebuild b/dev-util/hip/hip-5.7.1-r2.ebuild deleted file mode 100644 index c0fd94a..0000000 --- a/dev-util/hip/hip-5.7.1-r2.ebuild +++ /dev/null @@ -1,182 +0,0 @@ -# Copyright 1999-2025 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -DOCS_BUILDER="doxygen" -DOCS_DEPEND="media-gfx/graphviz" -ROCM_SKIP_GLOBALS=1 - -inherit cmake docs flag-o-matic llvm rocm - -LLVM_MAX_SLOT=17 - -TEST_PV=5.7.0 # No hip-test-5.7.1 release - -DESCRIPTION="C++ Heterogeneous-Compute Interface for Portability" -HOMEPAGE="https://github.com/ROCm/hipamd" -SRC_URI="https://github.com/ROCm/clr/archive/refs/tags/rocm-${PV}.tar.gz -> rocm-clr-${PV}.tar.gz - https://github.com/ROCm/HIP/archive/refs/tags/rocm-${PV}.tar.gz -> hip-${PV}.tar.gz - test? ( https://github.com/ROCm/hip-tests/archive/refs/tags/rocm-${TEST_PV}.tar.gz )" - -KEYWORDS="~amd64" -LICENSE="MIT" -SLOT="0/$(ver_cut 1-2)" - -RESTRICT="!test? ( test )" -IUSE="debug test" - -DEPEND=" - =dev-util/rocminfo-5* - llvm-core/clang:${LLVM_MAX_SLOT} - dev-libs/rocm-comgr:${SLOT} - >=dev-libs/rocr-runtime-5.6 - "${ED}"/usr/include/rocm-core/rocm_version.h || die -#pragma once -#define ROCM_VERSION_MAJOR $(ver_cut 1) -#define ROCM_VERSION_MINOR $(ver_cut 2) -#define ROCM_VERSION_PATCH $(ver_cut 3) -#define ROCM_BUILD_INFO "$(ver_cut 1-3).0-9999-unknown" -EOF - dosym -r /usr/include/rocm-core/rocm_version.h /usr/include/rocm_version.h - - rm "${ED}/usr/include/hip/hcc_detail" || die - - # files already installed by hipcc, which is a runtime dep - rm "${ED}/usr/bin/hipconfig.pl" || die - rm "${ED}/usr/bin/hipcc.pl" || die - rm "${ED}/usr/bin/hipcc" || die - rm "${ED}/usr/bin/hipconfig" || die - rm "${ED}/usr/bin/hipvars.pm" || die -} diff --git a/dev-util/hip/hip-6.1.1.ebuild b/dev-util/hip/hip-6.1.1.ebuild deleted file mode 100644 index 55dcd53..0000000 --- a/dev-util/hip/hip-6.1.1.ebuild +++ /dev/null @@ -1,244 +0,0 @@ -# Copyright 1999-2024 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -DOCS_BUILDER="doxygen" -DOCS_DEPEND="media-gfx/graphviz" -ROCM_SKIP_GLOBALS=1 - -LLVM_COMPAT=( 20 ) - -inherit cmake docs flag-o-matic llvm-r1 rocm - -TEST_PV=${PV} - -DESCRIPTION="C++ Heterogeneous-Compute Interface for Portability" -HOMEPAGE="https://github.com/ROCm/clr" -SRC_URI=" - https://github.com/ROCm/clr/archive/refs/tags/rocm-${PV}.tar.gz -> rocm-clr-${PV}.tar.gz - https://github.com/ROCm/HIP/archive/refs/tags/rocm-${PV}.tar.gz -> hip-${PV}.tar.gz - test? ( - https://github.com/ROCm/hip-tests/archive/refs/tags/rocm-${TEST_PV}.tar.gz -> hip-test-${TEST_PV}.tar.gz - ) -" -S="${WORKDIR}/clr-rocm-${PV}/" -TEST_S="${WORKDIR}/hip-tests-rocm-${TEST_PV}/catch" - -LICENSE="MIT" -SLOT="0/$(ver_cut 1-2)" -KEYWORDS="~amd64" - -IUSE="debug +hip opencl test video_cards_amdgpu video_cards_nvidia" -RESTRICT="!test? ( test )" - -REQUIRED_USE=" - || ( hip opencl ) - ^^ ( video_cards_amdgpu video_cards_nvidia ) -" - -DEPEND=" - video_cards_amdgpu? ( - >=dev-util/rocminfo-5 - $(llvm_gen_dep ' - llvm-core/clang:${LLVM_SLOT} - ') - dev-libs/rocm-comgr:${SLOT} - dev-libs/rocr-runtime:${SLOT} - ) - video_cards_nvidia? ( - dev-libs/hipother:${SLOT} - ) - x11-base/xorg-proto - virtual/opengl -" -BDEPEND=" - video_cards_amdgpu? ( - dev-util/hipcc:${SLOT}[${LLVM_USEDEP}] - ) -" -RDEPEND="${DEPEND} - llvm-core/clang-runtime:= - opencl? ( - !dev-libs/opencl-icd-loader - !dev-libs/rocm-opencl-runtime - !dev-util/clinfo - !dev-util/opencl-headers - ) - video_cards_amdgpu? ( - dev-util/hipcc:${SLOT}[${LLVM_USEDEP}] - >=dev-libs/rocm-device-libs-${PV} - >=dev-libs/roct-thunk-interface-5 - ) -" - -PATCHES=( - "${FILESDIR}/${PN}-5.7.1-no_asan_doc.patch" - "${FILESDIR}/${PN}-6.1.0-install.patch" - "${FILESDIR}/${PN}-6.1.1-fix-musl.patch" -) - -hip_test_wrapper() { - local CMAKE_USE_DIR="${TEST_S}" - local BUILD_DIR="${TEST_S}_build" - cd "${TEST_S}" || die - "${@}" -} - -src_prepare() { - # NOTE We do this head stand to safe the patch size. - # NOTE Adjust when we drop 5.7.1 - sed \ - -e 's:kAmdgcnTargetTriple:AMDGCN_TARGET_TRIPLE:g' \ - -i hipamd/src/hip_code_object.cpp || die - eapply "${FILESDIR}/${PN}-5.7.1-extend-isa-compatibility-check.patch" - sed \ - -e 's:AMDGCN_TARGET_TRIPLE:kAmdgcnTargetTriple:g' \ - -i hipamd/src/hip_code_object.cpp || die - - # hipamd is itself built by cmake, and should never provide a - # FindHIP.cmake module. But the reality is some package relies on it. - # Set HIP and HIP Clang paths directly, don't search using heuristics - sed -e "s:# Search for HIP installation:set(HIP_ROOT_DIR \"${EPREFIX}/usr\"):" \ - -e "s:#Set HIP_CLANG_PATH:set(HIP_CLANG_PATH \"$(get_llvm_prefix -d)/bin\"):" \ - -i "${WORKDIR}/HIP-rocm-${PV}/cmake/FindHIP.cmake" || die - - cmake_src_prepare - - # With Clang>17 -amdgpu-early-inline-all=true causes OOMs in dependencies - # https://github.com/llvm/llvm-project/issues/86332 - if [ "$LLVM_SLOT" -le "17" ]; then - sed -e "s/-mllvm=-amdgpu-early-inline-all=true //" -i hipamd/hip-config-amd.cmake || die - sed -e "s/-mllvm=-amdgpu-early-inline-all=true;//" -i "${WORKDIR}/HIP-rocm-${PV}/hip-lang-config.cmake.in" - fi - - if use test; then - local PATCHES=( - "${FILESDIR}"/hip-test-6.0.2-hipcc-system-install.patch - "${FILESDIR}"/hip-test-5.7.1-remove-incompatible-flag.patch - "${FILESDIR}"/hip-test-6.1.0-disable-hipKerArgOptimization.patch - "${FILESDIR}"/hip-test-6.1.1-fix-musl.patch - ) - hip_test_wrapper cmake_src_prepare - fi -} - -src_configure() { - # -Werror=strict-aliasing - # https://bugs.gentoo.org/858383 - # https://github.com/ROCm/clr/issues/64 - # - # Do not trust it for LTO either - append-flags -fno-strict-aliasing - filter-lto - - use debug && CMAKE_BUILD_TYPE="Debug" - - # Fix ld.lld linker error: https://github.com/ROCm/HIP/issues/3382 - # See also: https://github.com/gentoo/gentoo/pull/29097 - append-ldflags $(test-flags-CCLD -Wl,--undefined-version) - - local mycmakeargs=( - -DCMAKE_PREFIX_PATH="$(get_llvm_prefix)" - -DCMAKE_SKIP_RPATH=ON - -D__HIP_ENABLE_PCH="no" - - -DCLR_BUILD_HIP="$(usex hip)" - -DCLR_BUILD_OCL="$(usex opencl)" - - -DHIP_COMMON_DIR="${WORKDIR}/HIP-rocm-${PV}" - -DHIPCC_BIN_DIR="${EPREFIX}/usr/bin" - -DROCM_PATH="${EPREFIX}/usr" - -DUSE_PROF_API="no" - -DFILE_REORG_BACKWARD_COMPATIBILITY="no" - - -DOpenGL_GL_PREFERENCE="GLVND" - -DCMAKE_DISABLE_FIND_PACKAGE_Git="yes" - ) - - if use video_cards_amdgpu; then - mycmakeargs+=( - -DHIP_PLATFORM="amd" - ) - elif use video_cards_nvidia; then - mycmakeargs+=( - -DHIPNV_DIR="${EPREFIX}/usr" - -DHIP_PLATFORM="nvidia" - ) - fi - - cmake_src_configure - - if use test; then - local mycmakeargs=( - -DCMAKE_MODULE_PATH="${TEST_S}/external/Catch2/cmake/Catch2" - ) - if use video_cards_amdgpu; then - mycmakeargs+=( - -DROCM_PATH="${BUILD_DIR}/hipamd" - -DHIP_PLATFORM="amd" - ) - elif use video_cards_nvidia; then - mycmakeargs+=( - -DROCM_PATH="${BUILD_DIR}/hipother" - -DHIP_PLATFORM="nvidia" - ) - fi - HIP_PATH="${EPREFIX}/usr" hip_test_wrapper cmake_src_configure - fi -} - -src_compile() { - cmake_src_compile - - if use test; then - HIP_PATH="${BUILD_DIR}"/hipamd \ - hip_test_wrapper cmake_src_compile build_tests - fi -} - -src_test() { - check_amdgpu - export LD_LIBRARY_PATH="${BUILD_DIR}/hipamd/lib" - - # TODO: research how to test Vulkan-related features. - local CMAKE_SKIP_TESTS=( - Unit_hipExternalMemoryGetMappedBuffer_Vulkan_Positive_Read_Write - Unit_hipExternalMemoryGetMappedBuffer_Vulkan_Negative_Parameters - Unit_hipImportExternalMemory_Vulkan_Negative_Parameters - Unit_hipWaitExternalSemaphoresAsync_Vulkan_Positive_Binary_Semaphore - Unit_hipWaitExternalSemaphoresAsync_Vulkan_Positive_Multiple_Semaphores - Unit_hipWaitExternalSemaphoresAsync_Vulkan_Negative_Parameters - Unit_hipSignalExternalSemaphoresAsync_Vulkan_Positive_Binary_Semaphore - Unit_hipSignalExternalSemaphoresAsync_Vulkan_Positive_Multiple_Semaphores - Unit_hipSignalExternalSemaphoresAsync_Vulkan_Negative_Parameters - Unit_hipImportExternalSemaphore_Vulkan_Negative_Parameters - Unit_hipDestroyExternalSemaphore_Vulkan_Negative_Parameters - ) - - MAKEOPTS="-j1" hip_test_wrapper cmake_src_test -} - -src_install() { - cmake_src_install - - # add version file that is required by some libraries - mkdir "${ED}"/usr/include/rocm-core || die - cat <<-EOF > "${ED}"/usr/include/rocm-core/rocm_version.h || die - #pragma once - #define ROCM_VERSION_MAJOR $(ver_cut 1) - #define ROCM_VERSION_MINOR $(ver_cut 2) - #define ROCM_VERSION_PATCH $(ver_cut 3) - #define ROCM_BUILD_INFO "$(ver_cut 1-3).0-9999-unknown" - EOF - - dosym -r /usr/include/rocm-core/rocm_version.h /usr/include/rocm_version.h - - if use video_cards_nvidia; then - newenvd - 99hipconfig <<-EOF - HIP_PLATFORM="nvidia" - HIP_RUNTIME="cuda" - CUDA_PATH="${EPREFIX}/opt/cuda" - EOF - fi -} diff --git a/dev-util/hip/hip-6.1.2.ebuild b/dev-util/hip/hip-6.1.2.ebuild deleted file mode 100644 index 6091eaf..0000000 --- a/dev-util/hip/hip-6.1.2.ebuild +++ /dev/null @@ -1,244 +0,0 @@ -# Copyright 1999-2024 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -DOCS_BUILDER="doxygen" -DOCS_DEPEND="media-gfx/graphviz" -ROCM_SKIP_GLOBALS=1 - -LLVM_COMPAT=( 20 ) - -inherit cmake docs flag-o-matic llvm-r1 rocm - -TEST_PV=${PV} - -DESCRIPTION="C++ Heterogeneous-Compute Interface for Portability" -HOMEPAGE="https://github.com/ROCm/clr" -SRC_URI=" - https://github.com/ROCm/clr/archive/refs/tags/rocm-${PV}.tar.gz -> rocm-clr-${PV}.tar.gz - https://github.com/ROCm/HIP/archive/refs/tags/rocm-${PV}.tar.gz -> hip-${PV}.tar.gz - test? ( - https://github.com/ROCm/hip-tests/archive/refs/tags/rocm-${TEST_PV}.tar.gz -> hip-test-${TEST_PV}.tar.gz - ) -" -S="${WORKDIR}/clr-rocm-${PV}/" -TEST_S="${WORKDIR}/hip-tests-rocm-${TEST_PV}/catch" - -LICENSE="MIT" -SLOT="0/$(ver_cut 1-2)" -KEYWORDS="~amd64" - -IUSE="debug +hip opencl test video_cards_amdgpu video_cards_nvidia" -RESTRICT="!test? ( test )" - -REQUIRED_USE=" - || ( hip opencl ) - ^^ ( video_cards_amdgpu video_cards_nvidia ) -" - -DEPEND=" - video_cards_amdgpu? ( - dev-util/rocminfo:${SLOT} - $(llvm_gen_dep ' - llvm-core/clang:${LLVM_SLOT} - ') - dev-libs/rocm-comgr:${SLOT} - dev-libs/rocr-runtime:${SLOT} - ) - video_cards_nvidia? ( - dev-libs/hipother:${SLOT} - ) - x11-base/xorg-proto - virtual/opengl -" -BDEPEND=" - video_cards_amdgpu? ( - dev-util/hipcc:${SLOT}[${LLVM_USEDEP}] - ) -" -RDEPEND="${DEPEND} - llvm-core/clang-runtime:= - opencl? ( - !dev-libs/opencl-icd-loader - !dev-libs/rocm-opencl-runtime - !dev-util/clinfo - !dev-util/opencl-headers - ) - video_cards_amdgpu? ( - dev-util/hipcc:${SLOT}[${LLVM_USEDEP}] - dev-libs/rocm-device-libs:${SLOT} - dev-libs/roct-thunk-interface:${SLOT} - ) -" - -PATCHES=( - "${FILESDIR}/${PN}-5.7.1-no_asan_doc.patch" - "${FILESDIR}/${PN}-6.1.0-install.patch" - "${FILESDIR}/${PN}-6.1.1-fix-musl.patch" -) - -hip_test_wrapper() { - local CMAKE_USE_DIR="${TEST_S}" - local BUILD_DIR="${TEST_S}_build" - cd "${TEST_S}" || die - "${@}" -} - -src_prepare() { - # NOTE We do this head stand to safe the patch size. - # NOTE Adjust when we drop 5.7.1 - sed \ - -e 's:kAmdgcnTargetTriple:AMDGCN_TARGET_TRIPLE:g' \ - -i hipamd/src/hip_code_object.cpp || die - eapply "${FILESDIR}/${PN}-5.7.1-extend-isa-compatibility-check.patch" - sed \ - -e 's:AMDGCN_TARGET_TRIPLE:kAmdgcnTargetTriple:g' \ - -i hipamd/src/hip_code_object.cpp || die - - # hipamd is itself built by cmake, and should never provide a - # FindHIP.cmake module. But the reality is some package relies on it. - # Set HIP and HIP Clang paths directly, don't search using heuristics - sed -e "s:# Search for HIP installation:set(HIP_ROOT_DIR \"${EPREFIX}/usr\"):" \ - -e "s:#Set HIP_CLANG_PATH:set(HIP_CLANG_PATH \"$(get_llvm_prefix -d)/bin\"):" \ - -i "${WORKDIR}/HIP-rocm-${PV}/cmake/FindHIP.cmake" || die - - cmake_src_prepare - - # With Clang>17 -amdgpu-early-inline-all=true causes OOMs in dependencies - # https://github.com/llvm/llvm-project/issues/86332 - if [ "$LLVM_SLOT" -le "17" ]; then - sed -e "s/-mllvm=-amdgpu-early-inline-all=true //" -i hipamd/hip-config-amd.cmake || die - sed -e "s/-mllvm=-amdgpu-early-inline-all=true;//" -i "${WORKDIR}/HIP-rocm-${PV}/hip-lang-config.cmake.in" - fi - - if use test; then - local PATCHES=( - "${FILESDIR}"/hip-test-6.0.2-hipcc-system-install.patch - "${FILESDIR}"/hip-test-5.7.1-remove-incompatible-flag.patch - "${FILESDIR}"/hip-test-6.1.0-disable-hipKerArgOptimization.patch - "${FILESDIR}"/hip-test-6.1.1-fix-musl.patch - ) - hip_test_wrapper cmake_src_prepare - fi -} - -src_configure() { - # -Werror=strict-aliasing - # https://bugs.gentoo.org/858383 - # https://github.com/ROCm/clr/issues/64 - # - # Do not trust it for LTO either - append-flags -fno-strict-aliasing - filter-lto - - use debug && CMAKE_BUILD_TYPE="Debug" - - # Fix ld.lld linker error: https://github.com/ROCm/HIP/issues/3382 - # See also: https://github.com/gentoo/gentoo/pull/29097 - append-ldflags $(test-flags-CCLD -Wl,--undefined-version) - - local mycmakeargs=( - -DCMAKE_PREFIX_PATH="$(get_llvm_prefix)" - -DCMAKE_SKIP_RPATH=ON - -D__HIP_ENABLE_PCH="no" - - -DCLR_BUILD_HIP="$(usex hip)" - -DCLR_BUILD_OCL="$(usex opencl)" - - -DHIP_COMMON_DIR="${WORKDIR}/HIP-rocm-${PV}" - -DHIPCC_BIN_DIR="${EPREFIX}/usr/bin" - -DROCM_PATH="${EPREFIX}/usr" - -DUSE_PROF_API="no" - -DFILE_REORG_BACKWARD_COMPATIBILITY="no" - - -DOpenGL_GL_PREFERENCE="GLVND" - -DCMAKE_DISABLE_FIND_PACKAGE_Git="yes" - ) - - if use video_cards_amdgpu; then - mycmakeargs+=( - -DHIP_PLATFORM="amd" - ) - elif use video_cards_nvidia; then - mycmakeargs+=( - -DHIPNV_DIR="${EPREFIX}/usr" - -DHIP_PLATFORM="nvidia" - ) - fi - - cmake_src_configure - - if use test; then - local mycmakeargs=( - -DCMAKE_MODULE_PATH="${TEST_S}/external/Catch2/cmake/Catch2" - ) - if use video_cards_amdgpu; then - mycmakeargs+=( - -DROCM_PATH="${BUILD_DIR}/hipamd" - -DHIP_PLATFORM="amd" - ) - elif use video_cards_nvidia; then - mycmakeargs+=( - -DROCM_PATH="${BUILD_DIR}/hipother" - -DHIP_PLATFORM="nvidia" - ) - fi - HIP_PATH="${EPREFIX}/usr" hip_test_wrapper cmake_src_configure - fi -} - -src_compile() { - cmake_src_compile - - if use test; then - HIP_PATH="${BUILD_DIR}"/hipamd \ - hip_test_wrapper cmake_src_compile build_tests - fi -} - -src_test() { - check_amdgpu - export LD_LIBRARY_PATH="${BUILD_DIR}/hipamd/lib" - - # TODO: research how to test Vulkan-related features. - local CMAKE_SKIP_TESTS=( - Unit_hipExternalMemoryGetMappedBuffer_Vulkan_Positive_Read_Write - Unit_hipExternalMemoryGetMappedBuffer_Vulkan_Negative_Parameters - Unit_hipImportExternalMemory_Vulkan_Negative_Parameters - Unit_hipWaitExternalSemaphoresAsync_Vulkan_Positive_Binary_Semaphore - Unit_hipWaitExternalSemaphoresAsync_Vulkan_Positive_Multiple_Semaphores - Unit_hipWaitExternalSemaphoresAsync_Vulkan_Negative_Parameters - Unit_hipSignalExternalSemaphoresAsync_Vulkan_Positive_Binary_Semaphore - Unit_hipSignalExternalSemaphoresAsync_Vulkan_Positive_Multiple_Semaphores - Unit_hipSignalExternalSemaphoresAsync_Vulkan_Negative_Parameters - Unit_hipImportExternalSemaphore_Vulkan_Negative_Parameters - Unit_hipDestroyExternalSemaphore_Vulkan_Negative_Parameters - ) - - MAKEOPTS="-j1" hip_test_wrapper cmake_src_test -} - -src_install() { - cmake_src_install - - # add version file that is required by some libraries - mkdir "${ED}"/usr/include/rocm-core || die - cat <<-EOF > "${ED}"/usr/include/rocm-core/rocm_version.h || die - #pragma once - #define ROCM_VERSION_MAJOR $(ver_cut 1) - #define ROCM_VERSION_MINOR $(ver_cut 2) - #define ROCM_VERSION_PATCH $(ver_cut 3) - #define ROCM_BUILD_INFO "$(ver_cut 1-3).0-9999-unknown" - EOF - - dosym -r /usr/include/rocm-core/rocm_version.h /usr/include/rocm_version.h - - if use video_cards_nvidia; then - newenvd - 99hipconfig <<-EOF - HIP_PLATFORM="nvidia" - HIP_RUNTIME="cuda" - CUDA_PATH="${EPREFIX}/opt/cuda" - EOF - fi -} diff --git a/dev-util/hip/hip-6.3.2.ebuild b/dev-util/hip/hip-6.3.2.ebuild deleted file mode 100644 index f48faed..0000000 --- a/dev-util/hip/hip-6.3.2.ebuild +++ /dev/null @@ -1,255 +0,0 @@ -# Copyright 1999-2025 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -DOCS_BUILDER="doxygen" -DOCS_DEPEND="media-gfx/graphviz" -ROCM_SKIP_GLOBALS=1 - -LLVM_COMPAT=( 20 ) - -inherit cmake docs flag-o-matic llvm-r1 rocm - -TEST_PV=${PV} - -DESCRIPTION="C++ Heterogeneous-Compute Interface for Portability" -HOMEPAGE="https://github.com/ROCm/clr" -SRC_URI=" - https://github.com/ROCm/clr/archive/refs/tags/rocm-${PV}.tar.gz -> rocm-clr-${PV}.tar.gz - https://github.com/ROCm/HIP/archive/refs/tags/rocm-${PV}.tar.gz -> hip-${PV}.tar.gz - test? ( - https://github.com/ROCm/hip-tests/archive/refs/tags/rocm-${TEST_PV}.tar.gz -> hip-test-${TEST_PV}.tar.gz - ) -" -S="${WORKDIR}/clr-rocm-${PV}/" -TEST_S="${WORKDIR}/hip-tests-rocm-${TEST_PV}/catch" -HIP_S="${WORKDIR}/HIP-rocm-${PV}" - -LICENSE="MIT" -SLOT="0/$(ver_cut 1-2)" -KEYWORDS="~amd64" - -IUSE="debug +hip opencl test video_cards_amdgpu video_cards_nvidia" - -# some tests are broken -RESTRICT="test" - -REQUIRED_USE=" - || ( hip opencl ) - ^^ ( video_cards_amdgpu video_cards_nvidia ) -" - -DEPEND=" - video_cards_amdgpu? ( - dev-util/rocminfo:${SLOT} - dev-libs/rocm-comgr:${SLOT} - dev-libs/rocr-runtime:${SLOT} - ) - video_cards_nvidia? ( - dev-libs/hipother:${SLOT} - ) - x11-base/xorg-proto - virtual/opengl -" -BDEPEND=" - video_cards_amdgpu? ( - dev-util/hipcc:${SLOT}[${LLVM_USEDEP}] - ) - test? ( - media-libs/freeglut - ) -" -RDEPEND="${DEPEND} - opencl? ( - !dev-libs/opencl-icd-loader - !dev-libs/rocm-opencl-runtime - !dev-util/clinfo - !dev-util/opencl-headers - ) - video_cards_amdgpu? ( - dev-util/hipcc:${SLOT}[${LLVM_USEDEP}] - dev-libs/rocm-device-libs:${SLOT} - dev-libs/roct-thunk-interface:${SLOT} - ) -" - -PATCHES=( - "${FILESDIR}/${PN}-5.7.1-no_asan_doc.patch" - "${FILESDIR}/${PN}-6.3.0-install.patch" - "${FILESDIR}/${PN}-6.1.1-fix-musl.patch" - "${FILESDIR}/${PN}-6.2.4-libcxx.patch" - "${FILESDIR}/${PN}-6.3.0-no-isystem-usr-include.patch" - "${FILESDIR}/${PN}-6.3.0-clr-fix-libcxx.patch" -) - -hip_test_wrapper() { - local CMAKE_USE_DIR="${TEST_S}" - local BUILD_DIR="${TEST_S}_build" - cd "${TEST_S}" || die - "${@}" -} - -src_prepare() { - # NOTE We do this head stand to safe the patch size. - # NOTE Adjust when we drop 5.7.1 - sed \ - -e 's:kAmdgcnTargetTriple:AMDGCN_TARGET_TRIPLE:g' \ - -i hipamd/src/hip_code_object.cpp || die - eapply "${FILESDIR}/${PN}-5.7.1-extend-isa-compatibility-check.patch" - sed \ - -e 's:AMDGCN_TARGET_TRIPLE:kAmdgcnTargetTriple:g' \ - -i hipamd/src/hip_code_object.cpp || die - - pushd "${HIP_S}" >/dev/null || die - eapply "${FILESDIR}/${PN}-6.3.0-hip-fix-libcxx.patch" - - # hipamd is itself built by cmake, and should never provide a - # FindHIP.cmake module. But the reality is some package relies on it. - # Set HIP and HIP Clang paths directly, don't search using heuristics - sed -e "s:# Search for HIP installation:set(HIP_ROOT_DIR \"${EPREFIX}/usr\"):" \ - -e "s:#Set HIP_CLANG_PATH:set(HIP_CLANG_PATH \"$(get_llvm_prefix -d)/bin\"):" \ - -i "cmake/FindHIP.cmake" || die - popd >/dev/null || die - - sed -e "s/ -Werror//g" -i "hipamd/src/CMakeLists.txt" || die - - cmake_src_prepare - - if use test; then - local PATCHES=( - "${FILESDIR}"/hip-test-6.3.0-hipcc-system-install.patch - "${FILESDIR}"/hip-test-5.7.1-remove-incompatible-flag.patch - "${FILESDIR}"/hip-test-6.1.1-fix-musl.patch - ) - sed -e "s/-Werror //" -e "s/-Wall -Wextra //" -i "${TEST_S}/CMakeLists.txt" || die - - hip_test_wrapper cmake_src_prepare - fi -} - -src_configure() { - # -Werror=strict-aliasing - # https://bugs.gentoo.org/858383 - # https://github.com/ROCm/clr/issues/64 - # - # Do not trust it for LTO either - append-flags -fno-strict-aliasing - filter-lto - - use debug && CMAKE_BUILD_TYPE="Debug" - - # Fix ld.lld linker error: https://github.com/ROCm/HIP/issues/3382 - # See also: https://github.com/gentoo/gentoo/pull/29097 - append-ldflags $(test-flags-CCLD -Wl,--undefined-version) - - local mycmakeargs=( - -DCMAKE_PREFIX_PATH="$(get_llvm_prefix)" - -DCMAKE_SKIP_RPATH=ON - -D__HIP_ENABLE_PCH=OFF - - -DCLR_BUILD_HIP="$(usex hip)" - -DCLR_BUILD_OCL="$(usex opencl)" - - -DHIP_COMMON_DIR="${HIP_S}" - -DHIP_ENABLE_ROCPROFILER_REGISTER=OFF - -DHIPCC_BIN_DIR="${EPREFIX}/usr/bin" - -DROCM_PATH="${EPREFIX}/usr" - -DUSE_PROF_API=OFF - -DFILE_REORG_BACKWARD_COMPATIBILITY=OFF - - -DOpenGL_GL_PREFERENCE="GLVND" - -DCMAKE_DISABLE_FIND_PACKAGE_Git=ON - ) - - if use video_cards_amdgpu; then - mycmakeargs+=( - -DHIP_PLATFORM="amd" - ) - elif use video_cards_nvidia; then - mycmakeargs+=( - -DHIPNV_DIR="${EPREFIX}/usr" - -DHIP_PLATFORM="nvidia" - ) - fi - - cmake_src_configure - - if use test; then - local mycmakeargs=( - -DCMAKE_MODULE_PATH="${TEST_S}/external/Catch2/cmake/Catch2" - -DROCM_PATH="${EPREFIX}/usr" - -DCMAKE_NO_SYSTEM_FROM_IMPORTED=ON - -Wno-dev - - # 1) Use custom build of hipamd instead of system one - # 2) Build fails with libc++: https://github.com/llvm/llvm-project/issues/119076 - -DCMAKE_CXX_FLAGS="-I${BUILD_DIR}/hipamd/include -stdlib=libstdc++" - -DCMAKE_EXE_LINKER_FLAGS="-L${BUILD_DIR}/hipamd/lib" - ) - if use video_cards_amdgpu; then - mycmakeargs+=( - -DHIP_PLATFORM="amd" - ) - elif use video_cards_nvidia; then - mycmakeargs+=( - -DHIP_PLATFORM="nvidia" - ) - fi - hip_test_wrapper cmake_src_configure - fi -} - -src_compile() { - cmake_src_compile - - if use test; then - hip_test_wrapper cmake_src_compile build_tests - fi -} - -src_test() { - check_amdgpu - export LD_LIBRARY_PATH="${BUILD_DIR}/hipamd/lib" - - # TODO: research how to test Vulkan-related features. - local CMAKE_SKIP_TESTS=( - Unit_hipExternalMemoryGetMappedBuffer_Vulkan_Positive_Read_Write - Unit_hipExternalMemoryGetMappedBuffer_Vulkan_Negative_Parameters - Unit_hipImportExternalMemory_Vulkan_Negative_Parameters - Unit_hipWaitExternalSemaphoresAsync_Vulkan_Positive_Binary_Semaphore - Unit_hipWaitExternalSemaphoresAsync_Vulkan_Positive_Multiple_Semaphores - Unit_hipWaitExternalSemaphoresAsync_Vulkan_Negative_Parameters - Unit_hipSignalExternalSemaphoresAsync_Vulkan_Positive_Binary_Semaphore - Unit_hipSignalExternalSemaphoresAsync_Vulkan_Positive_Multiple_Semaphores - Unit_hipSignalExternalSemaphoresAsync_Vulkan_Negative_Parameters - Unit_hipImportExternalSemaphore_Vulkan_Negative_Parameters - Unit_hipDestroyExternalSemaphore_Vulkan_Negative_Parameters - ) - - MAKEOPTS="-j1" hip_test_wrapper cmake_src_test -} - -src_install() { - cmake_src_install - - # add version file that is required by some libraries - mkdir "${ED}"/usr/include/rocm-core || die - cat <<-EOF > "${ED}"/usr/include/rocm-core/rocm_version.h || die - #pragma once - #define ROCM_VERSION_MAJOR $(ver_cut 1) - #define ROCM_VERSION_MINOR $(ver_cut 2) - #define ROCM_VERSION_PATCH $(ver_cut 3) - #define ROCM_BUILD_INFO "$(ver_cut 1-3).0-9999-unknown" - EOF - - dosym -r /usr/include/rocm-core/rocm_version.h /usr/include/rocm_version.h - - if use video_cards_nvidia; then - newenvd - 99hipconfig <<-EOF - HIP_PLATFORM="nvidia" - HIP_RUNTIME="cuda" - CUDA_PATH="${EPREFIX}/opt/cuda" - EOF - fi -} diff --git a/dev-util/hip/hip-6.3.3.ebuild b/dev-util/hip/hip-6.3.3.ebuild deleted file mode 100644 index f48faed..0000000 --- a/dev-util/hip/hip-6.3.3.ebuild +++ /dev/null @@ -1,255 +0,0 @@ -# Copyright 1999-2025 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -DOCS_BUILDER="doxygen" -DOCS_DEPEND="media-gfx/graphviz" -ROCM_SKIP_GLOBALS=1 - -LLVM_COMPAT=( 20 ) - -inherit cmake docs flag-o-matic llvm-r1 rocm - -TEST_PV=${PV} - -DESCRIPTION="C++ Heterogeneous-Compute Interface for Portability" -HOMEPAGE="https://github.com/ROCm/clr" -SRC_URI=" - https://github.com/ROCm/clr/archive/refs/tags/rocm-${PV}.tar.gz -> rocm-clr-${PV}.tar.gz - https://github.com/ROCm/HIP/archive/refs/tags/rocm-${PV}.tar.gz -> hip-${PV}.tar.gz - test? ( - https://github.com/ROCm/hip-tests/archive/refs/tags/rocm-${TEST_PV}.tar.gz -> hip-test-${TEST_PV}.tar.gz - ) -" -S="${WORKDIR}/clr-rocm-${PV}/" -TEST_S="${WORKDIR}/hip-tests-rocm-${TEST_PV}/catch" -HIP_S="${WORKDIR}/HIP-rocm-${PV}" - -LICENSE="MIT" -SLOT="0/$(ver_cut 1-2)" -KEYWORDS="~amd64" - -IUSE="debug +hip opencl test video_cards_amdgpu video_cards_nvidia" - -# some tests are broken -RESTRICT="test" - -REQUIRED_USE=" - || ( hip opencl ) - ^^ ( video_cards_amdgpu video_cards_nvidia ) -" - -DEPEND=" - video_cards_amdgpu? ( - dev-util/rocminfo:${SLOT} - dev-libs/rocm-comgr:${SLOT} - dev-libs/rocr-runtime:${SLOT} - ) - video_cards_nvidia? ( - dev-libs/hipother:${SLOT} - ) - x11-base/xorg-proto - virtual/opengl -" -BDEPEND=" - video_cards_amdgpu? ( - dev-util/hipcc:${SLOT}[${LLVM_USEDEP}] - ) - test? ( - media-libs/freeglut - ) -" -RDEPEND="${DEPEND} - opencl? ( - !dev-libs/opencl-icd-loader - !dev-libs/rocm-opencl-runtime - !dev-util/clinfo - !dev-util/opencl-headers - ) - video_cards_amdgpu? ( - dev-util/hipcc:${SLOT}[${LLVM_USEDEP}] - dev-libs/rocm-device-libs:${SLOT} - dev-libs/roct-thunk-interface:${SLOT} - ) -" - -PATCHES=( - "${FILESDIR}/${PN}-5.7.1-no_asan_doc.patch" - "${FILESDIR}/${PN}-6.3.0-install.patch" - "${FILESDIR}/${PN}-6.1.1-fix-musl.patch" - "${FILESDIR}/${PN}-6.2.4-libcxx.patch" - "${FILESDIR}/${PN}-6.3.0-no-isystem-usr-include.patch" - "${FILESDIR}/${PN}-6.3.0-clr-fix-libcxx.patch" -) - -hip_test_wrapper() { - local CMAKE_USE_DIR="${TEST_S}" - local BUILD_DIR="${TEST_S}_build" - cd "${TEST_S}" || die - "${@}" -} - -src_prepare() { - # NOTE We do this head stand to safe the patch size. - # NOTE Adjust when we drop 5.7.1 - sed \ - -e 's:kAmdgcnTargetTriple:AMDGCN_TARGET_TRIPLE:g' \ - -i hipamd/src/hip_code_object.cpp || die - eapply "${FILESDIR}/${PN}-5.7.1-extend-isa-compatibility-check.patch" - sed \ - -e 's:AMDGCN_TARGET_TRIPLE:kAmdgcnTargetTriple:g' \ - -i hipamd/src/hip_code_object.cpp || die - - pushd "${HIP_S}" >/dev/null || die - eapply "${FILESDIR}/${PN}-6.3.0-hip-fix-libcxx.patch" - - # hipamd is itself built by cmake, and should never provide a - # FindHIP.cmake module. But the reality is some package relies on it. - # Set HIP and HIP Clang paths directly, don't search using heuristics - sed -e "s:# Search for HIP installation:set(HIP_ROOT_DIR \"${EPREFIX}/usr\"):" \ - -e "s:#Set HIP_CLANG_PATH:set(HIP_CLANG_PATH \"$(get_llvm_prefix -d)/bin\"):" \ - -i "cmake/FindHIP.cmake" || die - popd >/dev/null || die - - sed -e "s/ -Werror//g" -i "hipamd/src/CMakeLists.txt" || die - - cmake_src_prepare - - if use test; then - local PATCHES=( - "${FILESDIR}"/hip-test-6.3.0-hipcc-system-install.patch - "${FILESDIR}"/hip-test-5.7.1-remove-incompatible-flag.patch - "${FILESDIR}"/hip-test-6.1.1-fix-musl.patch - ) - sed -e "s/-Werror //" -e "s/-Wall -Wextra //" -i "${TEST_S}/CMakeLists.txt" || die - - hip_test_wrapper cmake_src_prepare - fi -} - -src_configure() { - # -Werror=strict-aliasing - # https://bugs.gentoo.org/858383 - # https://github.com/ROCm/clr/issues/64 - # - # Do not trust it for LTO either - append-flags -fno-strict-aliasing - filter-lto - - use debug && CMAKE_BUILD_TYPE="Debug" - - # Fix ld.lld linker error: https://github.com/ROCm/HIP/issues/3382 - # See also: https://github.com/gentoo/gentoo/pull/29097 - append-ldflags $(test-flags-CCLD -Wl,--undefined-version) - - local mycmakeargs=( - -DCMAKE_PREFIX_PATH="$(get_llvm_prefix)" - -DCMAKE_SKIP_RPATH=ON - -D__HIP_ENABLE_PCH=OFF - - -DCLR_BUILD_HIP="$(usex hip)" - -DCLR_BUILD_OCL="$(usex opencl)" - - -DHIP_COMMON_DIR="${HIP_S}" - -DHIP_ENABLE_ROCPROFILER_REGISTER=OFF - -DHIPCC_BIN_DIR="${EPREFIX}/usr/bin" - -DROCM_PATH="${EPREFIX}/usr" - -DUSE_PROF_API=OFF - -DFILE_REORG_BACKWARD_COMPATIBILITY=OFF - - -DOpenGL_GL_PREFERENCE="GLVND" - -DCMAKE_DISABLE_FIND_PACKAGE_Git=ON - ) - - if use video_cards_amdgpu; then - mycmakeargs+=( - -DHIP_PLATFORM="amd" - ) - elif use video_cards_nvidia; then - mycmakeargs+=( - -DHIPNV_DIR="${EPREFIX}/usr" - -DHIP_PLATFORM="nvidia" - ) - fi - - cmake_src_configure - - if use test; then - local mycmakeargs=( - -DCMAKE_MODULE_PATH="${TEST_S}/external/Catch2/cmake/Catch2" - -DROCM_PATH="${EPREFIX}/usr" - -DCMAKE_NO_SYSTEM_FROM_IMPORTED=ON - -Wno-dev - - # 1) Use custom build of hipamd instead of system one - # 2) Build fails with libc++: https://github.com/llvm/llvm-project/issues/119076 - -DCMAKE_CXX_FLAGS="-I${BUILD_DIR}/hipamd/include -stdlib=libstdc++" - -DCMAKE_EXE_LINKER_FLAGS="-L${BUILD_DIR}/hipamd/lib" - ) - if use video_cards_amdgpu; then - mycmakeargs+=( - -DHIP_PLATFORM="amd" - ) - elif use video_cards_nvidia; then - mycmakeargs+=( - -DHIP_PLATFORM="nvidia" - ) - fi - hip_test_wrapper cmake_src_configure - fi -} - -src_compile() { - cmake_src_compile - - if use test; then - hip_test_wrapper cmake_src_compile build_tests - fi -} - -src_test() { - check_amdgpu - export LD_LIBRARY_PATH="${BUILD_DIR}/hipamd/lib" - - # TODO: research how to test Vulkan-related features. - local CMAKE_SKIP_TESTS=( - Unit_hipExternalMemoryGetMappedBuffer_Vulkan_Positive_Read_Write - Unit_hipExternalMemoryGetMappedBuffer_Vulkan_Negative_Parameters - Unit_hipImportExternalMemory_Vulkan_Negative_Parameters - Unit_hipWaitExternalSemaphoresAsync_Vulkan_Positive_Binary_Semaphore - Unit_hipWaitExternalSemaphoresAsync_Vulkan_Positive_Multiple_Semaphores - Unit_hipWaitExternalSemaphoresAsync_Vulkan_Negative_Parameters - Unit_hipSignalExternalSemaphoresAsync_Vulkan_Positive_Binary_Semaphore - Unit_hipSignalExternalSemaphoresAsync_Vulkan_Positive_Multiple_Semaphores - Unit_hipSignalExternalSemaphoresAsync_Vulkan_Negative_Parameters - Unit_hipImportExternalSemaphore_Vulkan_Negative_Parameters - Unit_hipDestroyExternalSemaphore_Vulkan_Negative_Parameters - ) - - MAKEOPTS="-j1" hip_test_wrapper cmake_src_test -} - -src_install() { - cmake_src_install - - # add version file that is required by some libraries - mkdir "${ED}"/usr/include/rocm-core || die - cat <<-EOF > "${ED}"/usr/include/rocm-core/rocm_version.h || die - #pragma once - #define ROCM_VERSION_MAJOR $(ver_cut 1) - #define ROCM_VERSION_MINOR $(ver_cut 2) - #define ROCM_VERSION_PATCH $(ver_cut 3) - #define ROCM_BUILD_INFO "$(ver_cut 1-3).0-9999-unknown" - EOF - - dosym -r /usr/include/rocm-core/rocm_version.h /usr/include/rocm_version.h - - if use video_cards_nvidia; then - newenvd - 99hipconfig <<-EOF - HIP_PLATFORM="nvidia" - HIP_RUNTIME="cuda" - CUDA_PATH="${EPREFIX}/opt/cuda" - EOF - fi -} diff --git a/dev-util/hip/metadata.xml b/dev-util/hip/metadata.xml deleted file mode 100644 index 8746df9..0000000 --- a/dev-util/hip/metadata.xml +++ /dev/null @@ -1,33 +0,0 @@ - - - - - sci@gentoo.org - Gentoo Science Project - - - candrews@gentoo.org - Craig Andrews - - - xgreenlandforwyy@gmail.com - Yiyang Wu - - - gentoo@holzke.net - Wilfried Holzke - - - lockalsash@gmail.com - Sv. Lockal - - - ROCm/HIP - - - Build HIP runtime - Build OpenCL runtime - Build for AMD platform - Build for Nvidia platform - - diff --git a/dev-util/hipcc/Manifest b/dev-util/hipcc/Manifest deleted file mode 100644 index 17ea85c..0000000 --- a/dev-util/hipcc/Manifest +++ /dev/null @@ -1,5 +0,0 @@ -DIST hipcc-5.7.1.tar.gz 36589 BLAKE2B a8ae6bd9f0f985d78119223b67b5b35b8d1ee38edb7e43c1e77752d203fe2c8b669b3bcff0cec661054d8cb24f799e7784a49eb0664bdd1dc2bf024ce026c175 SHA512 2d232c8dd4a47de6e0cff9d37b4e63a26cb1809ef2ff3a119c15e992cae96ffc2f4d8c1ddffd8732dea3a3d589a93e177f424a6174f982908aa50904e265432a -DIST llvm-project-rocm-6.1.1.tar.gz 196027084 BLAKE2B 3ef0b6e3c47c66fd80289373e6ff8aaff44751f9b380addfae73a18dc388093c0535f230b0cc7528724bc43f6992e2ae6decd3d0d3c700893ca95a6166b7b8dc SHA512 e320d4eeaa6f61ed1cdbf653d67fe887d3ce9dc0d6743b4713502e1cb5318ab8afbe1ee71f8cba07635c54ce532df6683de40ade0e5be4a52e50ce25a9b70818 -DIST llvm-project-rocm-6.1.2.tar.gz 195992927 BLAKE2B d821f29f2f1f7c1ff414c63a710281f16d2a394b21f3365d01b86710cc09ed27e514b49fb744bf6a36b38815afa56cc26d44f0238f38479a0c2db9bf9989f389 SHA512 5f7e5dbe5976141de35e96e603624bd9d5a2c08b0690ba9fcd81d1b32f540f94bb9f4b74539e2838fd60ae1312dbe5e0b429ba80a03871782cdf3bd834940ce0 -DIST llvm-project-rocm-6.3.2.tar.gz 206671202 BLAKE2B a280e2be22b8eb9fd51814074447baed3637231d4bfbe391047a1fb2409197c8d8ba58cebb3aeaec15aa4daee9371311274b30ede48e0039d7c84e432b15de1a SHA512 314e27577af76268635f3c96ee3516829e4622913c3d0c4c68eccbaee0c9f7f5fc031cbd35827deb4bc29712592c424e296c15ce8c500c897bfb3eb19455899c -DIST llvm-project-rocm-6.3.3.tar.gz 206663912 BLAKE2B 939527dbbcd0c4b4785e5cdbd7144149f169120506c2b5b00e84e8208e3877109e24cf58501a1317d1f9dcce0614cf47a0290cb2e0e10aa7b164bcb064c2ffbc SHA512 380d6ca72dd215b1996b14fe9b54f4981bd1d275aae22ed89f4f3efc46ec2988054cc98dcc45e1c678812c2bd3488ed6cf375ca193af4ad272a6cff7f2388872 diff --git a/dev-util/hipcc/files/hipcc-5.7.1-fno-stack-protector.patch b/dev-util/hipcc/files/hipcc-5.7.1-fno-stack-protector.patch deleted file mode 100644 index c464202..0000000 --- a/dev-util/hipcc/files/hipcc-5.7.1-fno-stack-protector.patch +++ /dev/null @@ -1,13 +0,0 @@ -Related bug: https://bugs.gentoo.org/890377 ---- a/bin/hipcc.pl -+++ b/bin/hipcc.pl -@@ -552,6 +552,9 @@ if ($buildDeps and $HIP_PLATFORM eq 'amd') { - # pass-through CPP mode. - - if ($HIP_PLATFORM eq "amd") { -+ # Append -fno-stack-protector due to stack protection for HIP is not supported -+ $HIPCXXFLAGS .= " -fno-stack-protector"; -+ $HIPCFLAGS .= " -fno-stack-protector"; - # Set default optimization level to -O3 for hip-clang. - if ($optArg eq "") { - $HIPCXXFLAGS .= " -O3"; diff --git a/dev-util/hipcc/files/hipcc-5.7.1-hipcc-hip-version.patch b/dev-util/hipcc/files/hipcc-5.7.1-hipcc-hip-version.patch deleted file mode 100644 index fa00d44..0000000 --- a/dev-util/hipcc/files/hipcc-5.7.1-hipcc-hip-version.patch +++ /dev/null @@ -1,42 +0,0 @@ -Edit from: -https://salsa.debian.org/rocm-team/rocm-hipamd/-/blob/759b0773bd848ff9471fa8cdecd9ee21010bc29c/debian/patches/0013-hipcc-hip-version.patch -`--hip-version` is required for correclty including __clang_hip_runtime_wrapper.h -================================================================================= -Description: enforce --hip-version option within hipcc call. - This change is needed since the normal mechanism in ROCm relies on - reading a .hipVersion hidden configuration file which has no proper - equivalent in a FHS compliant tree, as of ROCm 5.0. -Author: Cordell Bloor -Bug: https://github.com/ROCm-Developer-Tools/HIP/pull/2937 -Forwarded: not-needed -Reviewed-by: Étienne Mollier -Last-Update: 2022-07-04 ---- -This patch header follows DEP-3: http://dep.debian.net/deps/dep3/ -Index: HIP/bin/hipcc.pl -=================================================================== ---- HIP.orig/bin/hipcc.pl -+++ HIP/bin/hipcc.pl -@@ -121,6 +121,9 @@ $HIP_PATH = $hipvars::HIP_PATH; - $ROCM_PATH = $hipvars::ROCM_PATH; - $HIP_VERSION = $hipvars::HIP_VERSION; - $HIP_ROCCLR_HOME = $hipvars::HIP_ROCCLR_HOME; -+$HIP_VERSION_MAJOR = $hipvars::HIP_VERSION_MAJOR; -+$HIP_VERSION_MINOR = $hipvars::HIP_VERSION_MINOR; -+$HIP_VERSION_PATCH = $hipvars::HIP_VERSION_PATCH; - - if ($HIP_PLATFORM eq "amd") { - $HIP_INCLUDE_PATH = "$HIP_ROCCLR_HOME/include"; -@@ -188,6 +191,12 @@ if ($HIP_PLATFORM eq "amd") { - ## Allow __fp16 as function parameter and return type. - $HIPCXXFLAGS .= " -Xclang -fallow-half-arguments-and-returns -D__HIP_HCC_COMPAT_MODE__=1"; - } -+ -+ # Gentoo: there is no FHS compliant location for .hipVersion where clang will still be -+ # able to find it, so .hipVersion has been omitted and the hip version is passed explicitly -+ $HIPCXXFLAGS .= " --hip-version=$HIP_VERSION_MAJOR.$HIP_VERSION_MINOR.$HIP_VERSION_PATCH"; -+ $HIPCFLAGS .= " --hip-version=$HIP_VERSION_MAJOR.$HIP_VERSION_MINOR.$HIP_VERSION_PATCH"; -+ $HIPLDFLAGS .= " --hip-version=$HIP_VERSION_MAJOR.$HIP_VERSION_MINOR.$HIP_VERSION_PATCH"; - } elsif ($HIP_PLATFORM eq "nvidia") { - $CUDA_PATH=$ENV{'CUDA_PATH'} // '/usr/local/cuda'; - $HIP_INCLUDE_PATH = "$HIP_PATH/include"; diff --git a/dev-util/hipcc/hipcc-5.7.1-r3.ebuild b/dev-util/hipcc/hipcc-5.7.1-r3.ebuild deleted file mode 100644 index 5e96899..0000000 --- a/dev-util/hipcc/hipcc-5.7.1-r3.ebuild +++ /dev/null @@ -1,50 +0,0 @@ -# Copyright 1999-2024 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -inherit cmake llvm - -LLVM_MAX_SLOT=17 - -DESCRIPTION="Radeon Open Compute hipcc" -HOMEPAGE="https://github.com/ROCm-Developer-Tools/hipcc" - -KEYWORDS="~amd64" -SRC_URI="https://github.com/ROCm-Developer-Tools/hipcc/archive/refs/tags/rocm-${PV}.tar.gz -> hipcc-${PV}.tar.gz" - -LICENSE="Apache-2.0 MIT" -SLOT="0/$(ver_cut 1-2)" -IUSE="debug test" -RESTRICT="!test? ( test )" - -S=${WORKDIR}/HIPCC-rocm-${PV} - -DEPEND="17 -amdgpu-early-inline-all=true causes OOMs in dependencies - # https://github.com/llvm/llvm-project/issues/86332 - if [ "$LLVM_SLOT" != "17" ]; then - sed -e "s/-mllvm -amdgpu-early-inline-all=true //g" -i bin/hipcc.pl || die - fi -} - -src_install() { - cmake_src_install - # rm unwanted copy - rm -rf "${ED}/usr/hip" || die - # Handle hipvars.pm - rm "${ED}/usr/bin/hipvars.pm" || die - perl_domodule "${S}"/bin/hipvars.pm -} diff --git a/dev-util/hipcc/hipcc-6.1.2.ebuild b/dev-util/hipcc/hipcc-6.1.2.ebuild deleted file mode 100644 index b37cf9b..0000000 --- a/dev-util/hipcc/hipcc-6.1.2.ebuild +++ /dev/null @@ -1,83 +0,0 @@ -# Copyright 1999-2024 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -LLVM_COMPAT=( 20 ) -inherit cmake perl-functions llvm-r1 - -DESCRIPTION="Radeon Open Compute hipcc" -HOMEPAGE="https://github.com/ROCm/hipcc" - -MY_P=llvm-project-rocm-${PV} -components=( "amd/hipcc" ) -if [[ ${PV} == *9999 ]] ; then - EGIT_REPO_URI="https://github.com/ROCm/llvm-project" - inherit git-r3 - S="${WORKDIR}/${P}/${components[0]}" -else - SRC_URI="https://github.com/ROCm/llvm-project/archive/rocm-${PV}.tar.gz -> ${MY_P}.tar.gz" - S="${WORKDIR}/${MY_P}/${components[0]}" - KEYWORDS="~amd64" -fi - -LICENSE="Apache-2.0 MIT" -SLOT="0/$(ver_cut 1-2)" -IUSE="debug test" -RESTRICT="!test? ( test )" - -DEPEND=" - $(llvm_gen_dep ' - llvm-runtimes/compiler-rt:${LLVM_SLOT}= - llvm-core/llvm:${LLVM_SLOT}= - llvm-core/clang:${LLVM_SLOT}= - ') -" -RDEPEND="${DEPEND} - !17 -amdgpu-early-inline-all=true causes OOMs in dependencies - # https://github.com/llvm/llvm-project/issues/86332 - if [ "$LLVM_SLOT" != "17" ]; then - sed -e "s/-mllvm -amdgpu-early-inline-all=true //g" -i bin/hipcc.pl || die - fi -} - -src_install() { - cmake_src_install - # rm unwanted copy - rm -rf "${ED}/usr/hip" || die - # Handle hipvars.pm - rm "${ED}/usr/bin/hipvars.pm" || die - perl_domodule "${S}"/bin/hipvars.pm -} diff --git a/dev-util/hipcc/hipcc-6.3.2.ebuild b/dev-util/hipcc/hipcc-6.3.2.ebuild deleted file mode 100644 index 9030940..0000000 --- a/dev-util/hipcc/hipcc-6.3.2.ebuild +++ /dev/null @@ -1,85 +0,0 @@ -# Copyright 1999-2025 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -LLVM_COMPAT=( 20 ) -inherit cmake perl-functions llvm-r1 - -DESCRIPTION="Radeon Open Compute hipcc" -HOMEPAGE="https://github.com/ROCm/llvm-project/tree/amd-staging/amd/hipcc" - -MY_P=llvm-project-rocm-${PV} -components=( "amd/hipcc" ) -if [[ ${PV} == *9999 ]] ; then - EGIT_REPO_URI="https://github.com/ROCm/llvm-project" - inherit git-r3 - S="${WORKDIR}/${P}/${components[0]}" -else - SRC_URI="https://github.com/ROCm/llvm-project/archive/rocm-${PV}.tar.gz -> ${MY_P}.tar.gz" - S="${WORKDIR}/${MY_P}/${components[0]}" - KEYWORDS="~amd64" -fi - -LICENSE="Apache-2.0 MIT" -SLOT="0/$(ver_cut 1-2)" -IUSE="debug test" -RESTRICT="!test? ( test )" - -DEPEND=" - $(llvm_gen_dep ' - llvm-runtimes/compiler-rt:${LLVM_SLOT}= - llvm-core/llvm:${LLVM_SLOT}= - llvm-core/clang:${LLVM_SLOT}= - ') -" -RDEPEND="${DEPEND} - !17 -amdgpu-early-inline-all=true causes OOMs in dependencies - # https://github.com/llvm/llvm-project/issues/86332 - sed -e "s/-mllvm -amdgpu-early-inline-all=true //g" \ - -i bin/hipcc.pl \ - -i src/hipBin_amd.h || die -} - -src_install() { - cmake_src_install - # rm unwanted copy - rm -rf "${ED}/usr/hip" || die - # Handle hipvars.pm - rm "${ED}/usr/bin/hipvars.pm" || die - perl_domodule "${S}"/bin/hipvars.pm -} diff --git a/dev-util/hipcc/hipcc-6.3.3.ebuild b/dev-util/hipcc/hipcc-6.3.3.ebuild deleted file mode 100644 index 9030940..0000000 --- a/dev-util/hipcc/hipcc-6.3.3.ebuild +++ /dev/null @@ -1,85 +0,0 @@ -# Copyright 1999-2025 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -LLVM_COMPAT=( 20 ) -inherit cmake perl-functions llvm-r1 - -DESCRIPTION="Radeon Open Compute hipcc" -HOMEPAGE="https://github.com/ROCm/llvm-project/tree/amd-staging/amd/hipcc" - -MY_P=llvm-project-rocm-${PV} -components=( "amd/hipcc" ) -if [[ ${PV} == *9999 ]] ; then - EGIT_REPO_URI="https://github.com/ROCm/llvm-project" - inherit git-r3 - S="${WORKDIR}/${P}/${components[0]}" -else - SRC_URI="https://github.com/ROCm/llvm-project/archive/rocm-${PV}.tar.gz -> ${MY_P}.tar.gz" - S="${WORKDIR}/${MY_P}/${components[0]}" - KEYWORDS="~amd64" -fi - -LICENSE="Apache-2.0 MIT" -SLOT="0/$(ver_cut 1-2)" -IUSE="debug test" -RESTRICT="!test? ( test )" - -DEPEND=" - $(llvm_gen_dep ' - llvm-runtimes/compiler-rt:${LLVM_SLOT}= - llvm-core/llvm:${LLVM_SLOT}= - llvm-core/clang:${LLVM_SLOT}= - ') -" -RDEPEND="${DEPEND} - !17 -amdgpu-early-inline-all=true causes OOMs in dependencies - # https://github.com/llvm/llvm-project/issues/86332 - sed -e "s/-mllvm -amdgpu-early-inline-all=true //g" \ - -i bin/hipcc.pl \ - -i src/hipBin_amd.h || die -} - -src_install() { - cmake_src_install - # rm unwanted copy - rm -rf "${ED}/usr/hip" || die - # Handle hipvars.pm - rm "${ED}/usr/bin/hipvars.pm" || die - perl_domodule "${S}"/bin/hipvars.pm -} diff --git a/dev-util/hipcc/metadata.xml b/dev-util/hipcc/metadata.xml deleted file mode 100644 index b6d2531..0000000 --- a/dev-util/hipcc/metadata.xml +++ /dev/null @@ -1,31 +0,0 @@ - - - - - sci@gentoo.org - Gentoo Science Project - - - candrews@gentoo.org - Craig Andrews - - - patrick@gentoo.org - Patrick Lauer - - - xgreenlandforwyy@gmail.com - Yiyang Wu - - - gentoo@holzke.net - Wilfried Holzke - - - lockalsash@gmail.com - Sv. Lockal - - - ROCm/hipcc - - diff --git a/dev-util/hipify-clang/Manifest b/dev-util/hipify-clang/Manifest deleted file mode 100644 index a70988b..0000000 --- a/dev-util/hipify-clang/Manifest +++ /dev/null @@ -1,4 +0,0 @@ -DIST HIPIFY-5.7.1.tar.gz 673452 BLAKE2B e0293c1b7f9ea028efc8d712ddedae4ec933c5bcfba524e13816bd999e67bcf06097f9fe0e4d1f4fa6a38df133be694e92adeefd92f77301d8537b6880b1a1fe SHA512 0cc75fdbcb6278d319cfe8ee3c8547dc75ea494a007d2159c64312c3411627905e0d6c7d7f0032cbc4c727a90723325aa2705db2fd473dbeb41e60f276d1c9a7 -DIST HIPIFY-6.1.1.tar.gz 813425 BLAKE2B accc661431f11796d0c8bcf638537a6035020b2a36ebe66c1b8c10bb63b762418d5fd1f256f3a3e51d2ace224a6492abfe72838bef859b1da68c2126cc3521be SHA512 29c45e312c8e2f0d06916b57f24eba27ba7beae3bd860850b57cfe27c87df22aabe9fdcf3d12671b81e68b61c3974aaf0064e96ae68392d181148aaeef14f1c7 -DIST HIPIFY-6.3.2.tar.gz 978994 BLAKE2B 7f35d462f69ab298485ef27b53624676071be551d671532383f246dbe6cd133ce1b30fb98d5457b82a0a9a01070cc6050e14f4f8fdecbf04a9b589309c3afd67 SHA512 26fc5db270e661d3ca380dfd570f2b46108c41b808f84413b27c4b6efaf6796ae625d4489c2278c253345d8a25408f636fde476be380b08d489254e20b8a12c0 -DIST HIPIFY-6.3.3.tar.gz 978886 BLAKE2B 391afa3ca27651597264ada3f1ef8f2a3ed75d7f0bbd29b868e89d0ecd6a76986fb4b74e15d62c7a0990d5e8a6c5e92cf4e987ddbf3fb5e45eddd2f9d22c9b45 SHA512 5fe529db7ef9de56e127ced21c62b45b770aa383913bd9d373e7c4eb16e1028a6414ae25aa2f40c79b45f5a2dcb4318cd6773cf821c814bfd545431512cae490 diff --git a/dev-util/hipify-clang/files/hipify-clang-5.7.1-fix-clang-libs.patch b/dev-util/hipify-clang/files/hipify-clang-5.7.1-fix-clang-libs.patch deleted file mode 100644 index c2a50c9..0000000 --- a/dev-util/hipify-clang/files/hipify-clang-5.7.1-fix-clang-libs.patch +++ /dev/null @@ -1,47 +0,0 @@ -diff --git a/CMakeLists.txt b/CMakeLists.txt -index ce188b7..19bd013 100644 ---- a/CMakeLists.txt -+++ b/CMakeLists.txt -@@ -68,41 +68,7 @@ if (NOT HIPIFY_CLANG_TESTS_ONLY) - endif() - - # Link against LLVM and CLANG libraries. -- target_link_libraries(hipify-clang PRIVATE -- clangASTMatchers -- clangFrontend -- clangTooling -- clangParse -- clangSerialization -- clangSema -- clangEdit -- clangFormat -- clangLex -- clangAnalysis -- clangDriver -- clangAST -- clangToolingCore -- clangRewrite -- clangBasic -- LLVMProfileData -- LLVMSupport -- LLVMMCParser -- LLVMMC -- LLVMBitReader -- LLVMOption -- LLVMCore) -- -- if(LLVM_PACKAGE_VERSION VERSION_GREATER "6.0.1") -- target_link_libraries(hipify-clang PRIVATE clangToolingInclusions) -- endif() -- -- if(LLVM_PACKAGE_VERSION VERSION_GREATER "9.0.1") -- target_link_libraries(hipify-clang PRIVATE LLVMFrontendOpenMP) -- endif() -- -- if(LLVM_PACKAGE_VERSION VERSION_EQUAL "15.0.0" OR LLVM_PACKAGE_VERSION VERSION_GREATER "15.0.0") -- target_link_libraries(hipify-clang PRIVATE LLVMWindowsDriver clangSupport) -- endif() -+ target_link_libraries(hipify-clang PRIVATE clang clang-cpp) - - if(LLVM_PACKAGE_VERSION VERSION_EQUAL "16.0.0" OR LLVM_PACKAGE_VERSION VERSION_GREATER "16.0.0") - if(MSVC) diff --git a/dev-util/hipify-clang/hipify-clang-5.7.1.ebuild b/dev-util/hipify-clang/hipify-clang-5.7.1.ebuild deleted file mode 100644 index b9ca905..0000000 --- a/dev-util/hipify-clang/hipify-clang-5.7.1.ebuild +++ /dev/null @@ -1,41 +0,0 @@ -# Copyright 1999-2024 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -inherit cmake - -DESCRIPTION="A set of tools to translate CUDA source code into portable HIP C++" -HOMEPAGE="https://github.com/ROCm-Developer-Tools/HIPIFY" -SRC_URI="https://github.com/ROCm-Developer-Tools/HIPIFY/archive/rocm-${PV}.tar.gz -> HIPIFY-${PV}.tar.gz" - -LICENSE="MIT" -KEYWORDS="~amd64" -SLOT="0/$(ver_cut 1-2)" - -BDEPEND=">=dev-build/cmake-3.22" -DEPEND=" - llvm-core/clang:17 - llvm-core/llvm:17" - -S="${WORKDIR}/HIPIFY-rocm-${PV}" - -PATCHES=( - "${FILESDIR}/${PN}-5.7.1-fix-clang-libs.patch" -) - -src_prepare() { - cmake_src_prepare - sed -i 's:/../libexec/hipify::' \ - bin/hipconvertinplace.sh bin/hipconvertinplace-perl.sh \ - bin/hipexamine-perl.sh bin/hipexamine.sh || die - # Workaround for bug https://github.com/ROCm/HIPIFY/issues/1396 - sed -i 's/find_package(LLVM REQUIRED/find_package(LLVM 17 REQUIRED/' CMakeLists.txt || die -} - -src_install() { - cmake_src_install - - # rm unwanted copy - rm -rf "${ED}/usr/hip" || die -} diff --git a/dev-util/hipify-clang/hipify-clang-6.1.1.ebuild b/dev-util/hipify-clang/hipify-clang-6.1.1.ebuild deleted file mode 100644 index ae32248..0000000 --- a/dev-util/hipify-clang/hipify-clang-6.1.1.ebuild +++ /dev/null @@ -1,55 +0,0 @@ -# Copyright 1999-2024 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -LLVM_COMPAT=( 20 ) - -inherit cmake flag-o-matic llvm-r1 - -DESCRIPTION="A set of tools to translate CUDA source code into portable HIP C++" -HOMEPAGE="https://github.com/ROCm/HIPIFY" -SRC_URI="https://github.com/ROCm/HIPIFY/archive/rocm-${PV}.tar.gz -> HIPIFY-${PV}.tar.gz" -S="${WORKDIR}/HIPIFY-rocm-${PV}" - -LICENSE="MIT" -SLOT="0/$(ver_cut 1-2)" -KEYWORDS="~amd64" - -BDEPEND=">=dev-build/cmake-3.22" -DEPEND=" - $(llvm_gen_dep ' - llvm-core/clang:${LLVM_SLOT}= - llvm-core/llvm:${LLVM_SLOT}= - ') -" - -PATCHES=( - "${FILESDIR}/${PN}-5.7.1-fix-clang-libs.patch" -) - -src_prepare() { - cmake_src_prepare - sed -i 's:/../libexec/hipify::' \ - bin/hipconvertinplace.sh bin/hipconvertinplace-perl.sh \ - bin/hipexamine-perl.sh bin/hipexamine.sh || die -} - -src_configure() { - # 928906: CMakeLists.txt ignores CC/CXX, switches compiler to clang - # and fails if non-compatible CFLAGS/CXXFLAGS are used - strip-unsupported-flags - - local mycmakeargs=( - -DCMAKE_PREFIX_PATH="$(get_llvm_prefix)/$(get_libdir)/cmake/llvm" - ) - - cmake_src_configure -} - -src_install() { - cmake_src_install - - # rm unwanted copy - rm -rf "${ED}/usr/hip" || die -} diff --git a/dev-util/hipify-clang/hipify-clang-6.3.2.ebuild b/dev-util/hipify-clang/hipify-clang-6.3.2.ebuild deleted file mode 100644 index 34f16f8..0000000 --- a/dev-util/hipify-clang/hipify-clang-6.3.2.ebuild +++ /dev/null @@ -1,58 +0,0 @@ -# Copyright 1999-2025 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -LLVM_COMPAT=( 20 ) - -inherit cmake flag-o-matic llvm-r1 - -DESCRIPTION="A set of tools to translate CUDA source code into portable HIP C++" -HOMEPAGE="https://github.com/ROCm/HIPIFY" -SRC_URI="https://github.com/ROCm/HIPIFY/archive/rocm-${PV}.tar.gz -> HIPIFY-${PV}.tar.gz" -S="${WORKDIR}/HIPIFY-rocm-${PV}" - -LICENSE="MIT" -SLOT="0/$(ver_cut 1-2)" -KEYWORDS="~amd64" - -BDEPEND=">=dev-build/cmake-3.22" -DEPEND=" - $(llvm_gen_dep ' - llvm-core/clang:${LLVM_SLOT}= - llvm-core/llvm:${LLVM_SLOT}= - ') -" - -PATCHES=( - "${FILESDIR}/${PN}-5.7.1-fix-clang-libs.patch" -) - -src_prepare() { - cmake_src_prepare - sed -i 's:/../libexec/hipify::' \ - bin/hipconvertinplace.sh bin/hipconvertinplace-perl.sh \ - bin/hipexamine-perl.sh bin/hipexamine.sh || die -} - -src_configure() { - # 928906: CMakeLists.txt ignores CC/CXX, switches compiler to clang - # and fails if non-compatible CFLAGS/CXXFLAGS are used - strip-unsupported-flags - - local mycmakeargs=( - -DCMAKE_PREFIX_PATH="$(get_llvm_prefix)/$(get_libdir)/cmake/llvm" - ) - - cmake_src_configure -} - -src_install() { - cmake_src_install - - fperms +x /usr/bin/hipconvertinplace-perl.sh - fperms +x /usr/bin/hipconvertinplace.sh - fperms +x /usr/bin/hipexamine-perl.sh - fperms +x /usr/bin/hipexamine.sh - fperms +x /usr/bin/hipify-perl -} diff --git a/dev-util/hipify-clang/hipify-clang-6.3.3.ebuild b/dev-util/hipify-clang/hipify-clang-6.3.3.ebuild deleted file mode 100644 index 34f16f8..0000000 --- a/dev-util/hipify-clang/hipify-clang-6.3.3.ebuild +++ /dev/null @@ -1,58 +0,0 @@ -# Copyright 1999-2025 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -LLVM_COMPAT=( 20 ) - -inherit cmake flag-o-matic llvm-r1 - -DESCRIPTION="A set of tools to translate CUDA source code into portable HIP C++" -HOMEPAGE="https://github.com/ROCm/HIPIFY" -SRC_URI="https://github.com/ROCm/HIPIFY/archive/rocm-${PV}.tar.gz -> HIPIFY-${PV}.tar.gz" -S="${WORKDIR}/HIPIFY-rocm-${PV}" - -LICENSE="MIT" -SLOT="0/$(ver_cut 1-2)" -KEYWORDS="~amd64" - -BDEPEND=">=dev-build/cmake-3.22" -DEPEND=" - $(llvm_gen_dep ' - llvm-core/clang:${LLVM_SLOT}= - llvm-core/llvm:${LLVM_SLOT}= - ') -" - -PATCHES=( - "${FILESDIR}/${PN}-5.7.1-fix-clang-libs.patch" -) - -src_prepare() { - cmake_src_prepare - sed -i 's:/../libexec/hipify::' \ - bin/hipconvertinplace.sh bin/hipconvertinplace-perl.sh \ - bin/hipexamine-perl.sh bin/hipexamine.sh || die -} - -src_configure() { - # 928906: CMakeLists.txt ignores CC/CXX, switches compiler to clang - # and fails if non-compatible CFLAGS/CXXFLAGS are used - strip-unsupported-flags - - local mycmakeargs=( - -DCMAKE_PREFIX_PATH="$(get_llvm_prefix)/$(get_libdir)/cmake/llvm" - ) - - cmake_src_configure -} - -src_install() { - cmake_src_install - - fperms +x /usr/bin/hipconvertinplace-perl.sh - fperms +x /usr/bin/hipconvertinplace.sh - fperms +x /usr/bin/hipexamine-perl.sh - fperms +x /usr/bin/hipexamine.sh - fperms +x /usr/bin/hipify-perl -} diff --git a/dev-util/hipify-clang/metadata.xml b/dev-util/hipify-clang/metadata.xml deleted file mode 100644 index 4d4ce95..0000000 --- a/dev-util/hipify-clang/metadata.xml +++ /dev/null @@ -1,15 +0,0 @@ - - - - - sci@gentoo.org - Gentoo Science Project - - - lockalsash@gmail.com - Sv. Lockal - - - ROCm/HIPIFY - - diff --git a/dev-util/intel-graphics-compiler/Manifest b/dev-util/intel-graphics-compiler/Manifest deleted file mode 100644 index 024e6c5..0000000 --- a/dev-util/intel-graphics-compiler/Manifest +++ /dev/null @@ -1,2 +0,0 @@ -DIST intel-graphics-compiler-1.0.17791.18.tar.gz 10746999 BLAKE2B d85c7888e4be962fc90ba6e2686aeba14d7ebe32c7dececdfddb0ba3726df82e43167dfc1bd0a2c4a0f72a6de481a270a4dcb6b4d5a40d785dac6c4628a27e2d SHA512 c814f667c558eebfbe1af68614c4eff7259b2d3626e317eb936e185b33b4aba7b225f33276ab09e9582164e5573b6cc52c230ab82e4689db41b3b2f4368367ec -DIST intel-graphics-compiler-2.7.8.tar.gz 11044562 BLAKE2B ab1b3fc35cfc668a3e7e9c6a8eb772d0f8a6c04b842ad543044d3d210e832482cc9e8092cc0ceaabd4245f7795530c16fb607cc304c0b4cf8abfabfb2f67f911 SHA512 ab663ce9c715e14cb61f7a442ed5c7e68167f18c3116d2c78cb08d8ae1f7f6a47e16ac8c5fd191c51ef03692117c31881fbae84bd5a353fe95698bcb278fd26f diff --git a/dev-util/intel-graphics-compiler/files/intel-graphics-compiler-1.0.8173-opencl-clang_version.patch b/dev-util/intel-graphics-compiler/files/intel-graphics-compiler-1.0.8173-opencl-clang_version.patch deleted file mode 100644 index 54a3364..0000000 --- a/dev-util/intel-graphics-compiler/files/intel-graphics-compiler-1.0.8173-opencl-clang_version.patch +++ /dev/null @@ -1,31 +0,0 @@ ---- a/IGC/BiFModule/CMakeLists.txt -+++ b/IGC/BiFModule/CMakeLists.txt -@@ -19,24 +19,10 @@ - - if(UNIX) - if(NOT ${CCLANG_BUILD_INTREE_LLVM}) -- # Get common clang library soname -- get_target_property(CCLANG_LIB_PATH opencl-clang-lib "IMPORTED_LOCATION") -- execute_process( -- COMMAND readelf -d ${CCLANG_LIB_PATH} -- RESULT_VARIABLE CCLANG_READELF_RESULT -- OUTPUT_VARIABLE CCLANG_READELF_CALL) -- if(CCLANG_READELF_RESULT AND NOT CCLANG_READELF_RESULT EQUAL 0) -- message(FATAL_ERROR "[IGC\\BiFModule] : Error occurred while executing readelf: ${CCLANG_READELF_RESULT}") -- endif() -- string(REGEX MATCH "\\[${COMMON_CLANG_LIB_FULL_NAME}\\.([0-9](\\.[0-9]*)*[a-zA-Z0-9]*)\\]" CCLANG_SONAME_VERSION "${CCLANG_READELF_CALL}") -- set(CCLANG_SONAME_VERSION "${CMAKE_MATCH_1}") -- -- # Check if common clang library is newer than 5.0.0 version on which we have SPIR-V support -- if("${CCLANG_SONAME_VERSION}" VERSION_GREATER "5.0.0") -- set_property(TARGET opencl-clang-lib PROPERTY "IMPORTED_SONAME" "${COMMON_CLANG_LIB_FULL_NAME}.${CCLANG_SONAME_VERSION}") -- else() -- message(FATAL_ERROR "[IGC\\BiFModule] : Version ${CCLANG_SONAME_VERSION} of library ${COMMON_CLANG_LIB_FULL_NAME} is below version 5.0.0 (where it's starts support of SPIR-V), please upgrade this library at least to version 5.0.0") -- endif() -+ # Workaround for https://bugs.gentoo.org/739138 : instead of checking -+ # the version of opencl-clang, have ebuilds set CCLANG_SONAME_VERSION -+ # for us. -+ set_property(TARGET opencl-clang-lib PROPERTY "IMPORTED_SONAME" "${COMMON_CLANG_LIB_FULL_NAME}.${CCLANG_SONAME_VERSION}") - endif() - if (NOT CCLANG_FROM_SYSTEM) - install(FILES $ DESTINATION ${CMAKE_INSTALL_FULL_LIBDIR} COMPONENT igc-opencl) diff --git a/dev-util/intel-graphics-compiler/files/intel-graphics-compiler-1.0.8365-disable-git.patch b/dev-util/intel-graphics-compiler/files/intel-graphics-compiler-1.0.8365-disable-git.patch deleted file mode 100644 index 4a9a898..0000000 --- a/dev-util/intel-graphics-compiler/files/intel-graphics-compiler-1.0.8365-disable-git.patch +++ /dev/null @@ -1,37 +0,0 @@ -From d0f801a178755504c2f8956841823b2aa6a124c4 Mon Sep 17 00:00:00 2001 -From: Conrad Kostecki -Date: Sat, 28 Aug 2021 00:57:59 +0200 -Subject: [PATCH] IGC: CMakeLists: drop git - -Dropping git, as we don't have any git release. - -Signed-off-by: Conrad Kostecki ---- - visa/iga/IGALibrary/CMakeLists.txt | 11 ----------- - 1 file changed, 11 deletions(-) - -diff --git a/visa/iga/IGALibrary/CMakeLists.txt b/visa/iga/IGALibrary/CMakeLists.txt -index 061476d94..2fd44807c 100644 ---- a/visa/iga/IGALibrary/CMakeLists.txt -+++ b/visa/iga/IGALibrary/CMakeLists.txt -@@ -14,17 +14,6 @@ set(CMAKE_CXX_STANDARD 14) - - ############################################## - # compute the version string from the git repo --execute_process( -- COMMAND git rev-parse --short HEAD -- OUTPUT_VARIABLE GIT_COMMIT -- OUTPUT_STRIP_TRAILING_WHITESPACE -- WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}) --# --execute_process( -- COMMAND git diff-index --quiet HEAD -- -- RESULT_VARIABLE GIT_DIRTY -- WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}) -- - set(IGA_VERSION_SUFFIX "") - if(GIT_COMMIT) - set(IGA_VERSION_DIRTY_TAG "") --- -2.33.0 - diff --git a/dev-util/intel-graphics-compiler/files/intel-graphics-compiler-1.0.9-no_Werror.patch b/dev-util/intel-graphics-compiler/files/intel-graphics-compiler-1.0.9-no_Werror.patch deleted file mode 100644 index 433b0e9..0000000 --- a/dev-util/intel-graphics-compiler/files/intel-graphics-compiler-1.0.9-no_Werror.patch +++ /dev/null @@ -1,10 +0,0 @@ ---- a/IGC/CMakeLists.txt -+++ b/IGC/CMakeLists.txt -@@ -2769,7 +2769,6 @@ - -march=corei7 - -mstackrealign - -fms-extensions -- -Werror - -Wno-unused-parameter - -Wno-missing-field-initializers - -Wwrite-strings diff --git a/dev-util/intel-graphics-compiler/intel-graphics-compiler-1.0.17791.18.ebuild b/dev-util/intel-graphics-compiler/intel-graphics-compiler-1.0.17791.18.ebuild deleted file mode 100644 index 02a0dd6..0000000 --- a/dev-util/intel-graphics-compiler/intel-graphics-compiler-1.0.17791.18.ebuild +++ /dev/null @@ -1,109 +0,0 @@ -# Copyright 1999-2025 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -CMAKE_BUILD_TYPE="Release" -LLVM_COMPAT=( 20 ) -MY_PN="igc" -MY_P="${MY_PN}-${PV}" -PYTHON_COMPAT=( python3_{10..13} ) - -inherit cmake flag-o-matic llvm-r1 python-any-r1 - -DESCRIPTION="LLVM-based OpenCL compiler for OpenCL targetting Intel Gen graphics hardware" -HOMEPAGE="https://github.com/intel/intel-graphics-compiler" -SRC_URI="https://github.com/intel/${PN}/archive/refs/tags/${MY_P}.tar.gz -> ${P}.tar.gz" -S="${WORKDIR}/${PN}-${MY_P}" - -LICENSE="MIT" -SLOT="0/1.0.1" -KEYWORDS="amd64" -IUSE="debug vc" - -DEPEND=" - dev-libs/opencl-clang:15[${LLVM_USEDEP}] - dev-util/spirv-tools - $(llvm_gen_dep ' - llvm-core/lld:${LLVM_SLOT} - llvm-core/llvm:${LLVM_SLOT} - ') - vc? ( - >=dev-libs/intel-vc-intrinsics-0.21.0[${LLVM_USEDEP}] - dev-util/spirv-llvm-translator:15= - ) -" - -RDEPEND="${DEPEND}" - -BDEPEND=" - $(python_gen_any_dep 'dev-python/mako[${PYTHON_USEDEP}]') - $(python_gen_any_dep 'dev-python/pyyaml[${PYTHON_USEDEP}]') - $(llvm_gen_dep 'llvm-core/lld:${LLVM_SLOT}') - ${PYTHON_DEPS} -" - -python_check_deps() { - python_has_version "dev-python/mako[${PYTHON_USEDEP}]" - python_has_version "dev-python/pyyaml[${PYTHON_USEDEP}]" -} - -PATCHES=( - "${FILESDIR}/${PN}-1.0.9-no_Werror.patch" - "${FILESDIR}/${PN}-1.0.8173-opencl-clang_version.patch" - "${FILESDIR}/${PN}-1.0.8365-disable-git.patch" -) - -pkg_setup() { - llvm-r1_pkg_setup - python-any-r1_pkg_setup -} - -src_prepare() { - # Don't hardcode FORTIFY_SOURCE - sed -e '/-D_FORTIFY_SOURCE=2/d' -i IGC/CMakeLists.txt || die - - cmake_src_prepare -} - -src_configure() { - # Get LLVM version - local llvm_version="$(best_version -d llvm-core/llvm:${LLVM_SLOT})" - local llvm_version="${llvm_version%%-r*}" - - # See https://github.com/intel/intel-graphics-compiler/issues/212 - append-ldflags -Wl,-z,undefs - - # See bug #893370 and https://github.com/intel/intel-graphics-compiler/issues/282 - append-flags -U_GLIBCXX_ASSERTIONS - - # See https://bugs.gentoo.org/718824 - ! use debug && append-cppflags -DNDEBUG - - local mycmakeargs=( - -DBUILD_SHARED_LIBS="OFF" - -DCCLANG_FROM_SYSTEM="ON" - -DCCLANG_SONAME_VERSION="${LLVM_SLOT}" - -DCMAKE_LIBRARY_PATH="$(get_llvm_prefix)/$(get_libdir)" - -DIGC_BUILD__VC_ENABLED="$(usex vc)" - -DIGC_OPTION__ARCHITECTURE_TARGET="Linux64" - -DIGC_OPTION__CLANG_MODE="Prebuilds" - -DIGC_OPTION__LINK_KHRONOS_SPIRV_TRANSLATOR="ON" - -DIGC_OPTION__LLD_MODE="Prebuilds" - -DIGC_OPTION__LLDELF_H_DIR="$(get_llvm_prefix)/include/lld/Common" - -DIGC_OPTION__LLVM_MODE="Prebuilds" - -DIGC_OPTION__LLVM_PREFERRED_VERSION="${llvm_version##*-}" - -DIGC_OPTION__OPENCL_HEADER_PATH="/usr/lib/clang/${llvm_version##*-}/include/opencl-c.h" - -DIGC_OPTION__SPIRV_TOOLS_MODE="Prebuilds" - -DIGC_OPTION__SPIRV_TRANSLATOR_MODE="Prebuilds" - -DIGC_OPTION__USE_KHRONOS_SPIRV_TRANSLATOR_IN_SC="ON" - -DIGC_OPTION__USE_PREINSTALLED_SPIRV_HEADERS="ON" - $(usex vc '-DIGC_OPTION__VC_INTRINSICS_MODE=Prebuilds' '') - -DPYTHON_EXECUTABLE="${PYTHON}" - -DINSTALL_GENX_IR="ON" - -DSPIRVLLVMTranslator_INCLUDE_DIR="${EPREFIX}/usr/lib/llvm/${LLVM_SLOT}/include/LLVMSPIRVLib" - -Wno-dev - ) - - cmake_src_configure -} diff --git a/dev-util/intel-graphics-compiler/intel-graphics-compiler-2.7.8.ebuild b/dev-util/intel-graphics-compiler/intel-graphics-compiler-2.7.8.ebuild deleted file mode 100644 index 9ff187f..0000000 --- a/dev-util/intel-graphics-compiler/intel-graphics-compiler-2.7.8.ebuild +++ /dev/null @@ -1,104 +0,0 @@ -# Copyright 1999-2025 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -CMAKE_BUILD_TYPE="Release" -LLVM_COMPAT=( 20 ) -PYTHON_COMPAT=( python3_{10..13} ) - -inherit cmake flag-o-matic llvm-r1 python-any-r1 - -DESCRIPTION="LLVM-based OpenCL compiler for OpenCL targetting Intel Gen graphics hardware" -HOMEPAGE="https://github.com/intel/intel-graphics-compiler" -SRC_URI="https://github.com/intel/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz" - -LICENSE="MIT" -SLOT="0/2.5.0" -KEYWORDS="~amd64" -IUSE="debug vc" - -DEPEND=" - dev-libs/opencl-clang:15[${LLVM_USEDEP}] - dev-util/spirv-tools - $(llvm_gen_dep ' - llvm-core/lld:${LLVM_SLOT} - llvm-core/llvm:${LLVM_SLOT} - ') - vc? ( - >=dev-libs/intel-vc-intrinsics-0.22.0[${LLVM_USEDEP}] - dev-util/spirv-llvm-translator:15= - ) -" - -RDEPEND="${DEPEND}" - -BDEPEND=" - $(python_gen_any_dep 'dev-python/mako[${PYTHON_USEDEP}]') - $(python_gen_any_dep 'dev-python/pyyaml[${PYTHON_USEDEP}]') - $(llvm_gen_dep 'llvm-core/lld:${LLVM_SLOT}') - ${PYTHON_DEPS} -" - -python_check_deps() { - python_has_version "dev-python/mako[${PYTHON_USEDEP}]" - python_has_version "dev-python/pyyaml[${PYTHON_USEDEP}]" -} - -PATCHES=( - "${FILESDIR}/${PN}-1.0.9-no_Werror.patch" - "${FILESDIR}/${PN}-1.0.8365-disable-git.patch" -) - -pkg_setup() { - llvm-r1_pkg_setup - python-any-r1_pkg_setup -} - -src_prepare() { - # Don't hardcode FORTIFY_SOURCE - sed -e '/-D_FORTIFY_SOURCE=2/d' -i IGC/CMakeLists.txt || die - - cmake_src_prepare -} - -src_configure() { - # Get LLVM version - local llvm_version="$(best_version -d llvm-core/llvm:${LLVM_SLOT})" - local llvm_version="${llvm_version%%-r*}" - - # See https://github.com/intel/intel-graphics-compiler/issues/212 - append-ldflags -Wl,-z,undefs - - # See bug #893370 and https://github.com/intel/intel-graphics-compiler/issues/282 - append-flags -U_GLIBCXX_ASSERTIONS - - # See https://bugs.gentoo.org/718824 - ! use debug && append-cppflags -DNDEBUG - - local mycmakeargs=( - -DBUILD_SHARED_LIBS="OFF" - -DCCLANG_FROM_SYSTEM="ON" - -DCCLANG_SONAME_VERSION="${LLVM_SLOT}" - -DCMAKE_LIBRARY_PATH="$(get_llvm_prefix)/$(get_libdir)" - -DIGC_BUILD__VC_ENABLED="$(usex vc)" - -DIGC_OPTION__ARCHITECTURE_TARGET="Linux64" - -DIGC_OPTION__CLANG_MODE="Prebuilds" - -DIGC_OPTION__LINK_KHRONOS_SPIRV_TRANSLATOR="ON" - -DIGC_OPTION__LLD_MODE="Prebuilds" - -DIGC_OPTION__LLDELF_H_DIR="$(get_llvm_prefix)/include/lld/Common" - -DIGC_OPTION__LLVM_MODE="Prebuilds" - -DIGC_OPTION__LLVM_PREFERRED_VERSION="${llvm_version##*-}" - -DIGC_OPTION__OPENCL_HEADER_PATH="/usr/lib/clang/${llvm_version##*-}/include/opencl-c.h" - -DIGC_OPTION__SPIRV_TOOLS_MODE="Prebuilds" - -DIGC_OPTION__SPIRV_TRANSLATOR_MODE="Prebuilds" - -DIGC_OPTION__USE_KHRONOS_SPIRV_TRANSLATOR_IN_SC="ON" - -DIGC_OPTION__USE_PREINSTALLED_SPIRV_HEADERS="ON" - $(usex vc '-DIGC_OPTION__VC_INTRINSICS_MODE=Prebuilds' '') - -DPYTHON_EXECUTABLE="${PYTHON}" - -DSPIRVLLVMTranslator_INCLUDE_DIR="${EPREFIX}/usr/lib/llvm/${LLVM_SLOT}/include/LLVMSPIRVLib" - -Wno-dev - ) - - cmake_src_configure -} diff --git a/dev-util/intel-graphics-compiler/metadata.xml b/dev-util/intel-graphics-compiler/metadata.xml deleted file mode 100644 index 35c6738..0000000 --- a/dev-util/intel-graphics-compiler/metadata.xml +++ /dev/null @@ -1,22 +0,0 @@ - - - - - gentoo@taujhe.de - Jan Henke - - - proxy-maint@gentoo.org - Proxy Maintainers - - - conikost@gentoo.org - Conrad Kostecki - - - Enable VectorCompiler for a better performance. - - - intel/intel-graphics-compiler - - diff --git a/dev-util/roctracer/Manifest b/dev-util/roctracer/Manifest deleted file mode 100644 index 2786fb5..0000000 --- a/dev-util/roctracer/Manifest +++ /dev/null @@ -1,4 +0,0 @@ -DIST roctracer-5.7.1.tar.gz 354686 BLAKE2B 2e72d8df5cf53a913102a715dab55f7c6d33b2d4a9cad7647a61824deba0363cf3dbf96d8de3469a78d6b5c8e517c163c303bf6aa12eeaf8e43f82ac8381ef97 SHA512 62cf62fc505955426596bd6d539c92f4d730d90d820d817343525f1b7be693290727c8c447ca98b1a0e46d1d188b62b3f4fafcf6bffbf2479fc5d937fb354e13 -DIST roctracer-6.1.1.tar.gz 396688 BLAKE2B e332c3a6056d1678e3da511878fd2710a4eaa02526cd1e7353dd1dbcba776cb77e6e431d90daf5f238ec7793fc8e9f51afd7f09992f70b26c7e3aab28bb319a9 SHA512 d59c367953b1d5df0daae96746095e2e19f706f43b5ebed3d45c15d23697e9c99c1623bbb8dfa001648fdeda172a3c1d820d884b6da3946addec8f4b9a86e5dc -DIST roctracer-6.3.2.tar.gz 397366 BLAKE2B 0edc2e6483935dcbc8e905b1eac1d426c3e553491cbe119a8f6cba99cadad5c622ec7a0005e27e66d57f9baf4e3048033185cd38f32b4cfd17277d80673ac225 SHA512 d08657e8424cf2fbdee1caa46140dd90f45b5efe7c71a96c789b0bb350d7c36a9c725ae436bee00fb0948ab0de5fc5356f71082619edae1316922221c19eae1c -DIST roctracer-6.3.3.tar.gz 397370 BLAKE2B dff4c796b7284c2107ef0d308ee16d640aab6e9ce49c769a84352837f3e29e24e09e71d5a1d1fe19d22d218e607e85f7fbe6b43ff1a0a1f6e04aa859baefd054 SHA512 50ee107b7c8676dd5d41d2b9433fce701807b954b3d6624c25c32d057bd3a50ad2c7f853cb287c7bb5dd1f5fe2c3b0ec4a7cb082d5ef545c17f2ae2644c1df7c diff --git a/dev-util/roctracer/files/roctracer-5.3.3-rocm-path.patch b/dev-util/roctracer/files/roctracer-5.3.3-rocm-path.patch deleted file mode 100644 index d8cc792..0000000 --- a/dev-util/roctracer/files/roctracer-5.3.3-rocm-path.patch +++ /dev/null @@ -1,12 +0,0 @@ -Append flags for clang to recognize device lib path -=================================================================== ---- roctracer-rocm-5.3.3.orig/test/CMakeLists.txt -+++ roctracer-rocm-5.3.3/test/CMakeLists.txt -@@ -80,6 +80,7 @@ add_dependencies(mytest codeobj_test) - function(generate_hsaco TARGET_ID INPUT_FILE OUTPUT_FILE) - separate_arguments(CLANG_ARG_LIST UNIX_COMMAND - "-O2 -x cl -Xclang -finclude-default-header -cl-denorms-are-zero -cl-std=CL2.0 -Wl,--build-id=sha1 -+ --rocm-path=@GENTOO_PORTAGE_EPREFIX@/usr --rocm-device-lib-path=@GENTOO_PORTAGE_EPREFIX@/usr/lib/amdgcn/bitcode - -target amdgcn-amd-amdhsa -mcpu=${TARGET_ID} -o ${OUTPUT_FILE} ${INPUT_FILE}") - add_custom_command(OUTPUT ${PROJECT_BINARY_DIR}/${OUTPUT_FILE} - COMMAND clang ${CLANG_ARG_LIST} diff --git a/dev-util/roctracer/files/roctracer-5.7.1-with-tests.patch b/dev-util/roctracer/files/roctracer-5.7.1-with-tests.patch deleted file mode 100644 index eb728b8..0000000 --- a/dev-util/roctracer/files/roctracer-5.7.1-with-tests.patch +++ /dev/null @@ -1,11 +0,0 @@ ---- a/CMakeLists.txt -+++ b/CMakeLists.txt -@@ -56,7 +56,7 @@ endif() - add_subdirectory(src) - - ## Build tests --if(${LIBRARY_TYPE} STREQUAL SHARED) -+if(WITH_TESTS) - add_subdirectory(test) - endif() - diff --git a/dev-util/roctracer/files/roctracer-6.3.0-fix-prettyprinter.patch b/dev-util/roctracer/files/roctracer-6.3.0-fix-prettyprinter.patch deleted file mode 100644 index d6f5191..0000000 --- a/dev-util/roctracer/files/roctracer-6.3.0-fix-prettyprinter.patch +++ /dev/null @@ -1,67 +0,0 @@ ---- a/script/gen_ostream_ops.py -+++ b/script/gen_ostream_ops.py -@@ -242,7 +242,15 @@ def gen_cppheader(infilepath, outfilepath, rank): - if c == 'max_align_t' or c == '__fsid_t': # Skipping as it is defined in multiple domains - continue - if len(cppHeader.classes[c]["properties"]["public"]) != 0: -- output_filename_h.write("inline static std::ostream& operator<<(std::ostream& out, const " + c + "& v)\n") -+ print_c = ("typename " + c) if '>::' in c else c -+ -+ if '\n") -+ elif c == 'HIP_vector_type': -+ output_filename_h.write("template\n") -+ print_c = 'HIP_vector_type' -+ -+ output_filename_h.write("inline static std::ostream& operator<<(std::ostream& out, const " + print_c + "& v)\n") - output_filename_h.write("{\n") - output_filename_h.write(" std::operator<<(out, '{');\n") - output_filename_h.write(" " + apiname.upper() + "_depth_max_cnt++;\n") -@@ -257,7 +265,13 @@ def gen_cppheader(infilepath, outfilepath, rank): - output_filename_h.write(" return out;\n") - output_filename_h.write("}\n") - global_str = '' -- global_ops += "inline static std::ostream& operator<<(std::ostream& out, const " + c + "& v)\n" + "{\n" + " roctracer::" + apiname.lower() + "_support::detail::operator<<(out, v);\n" + " return out;\n" + "}\n\n" -+ -+ if ' /dev/null -@@ -83,7 +91,7 @@ find_file(HIP_RUNTIME_API_H hip_runtime_api.h - ## Generate the HIP pretty printers - add_custom_command( - OUTPUT hip_ostream_ops.h -- COMMAND ${CMAKE_C_COMPILER} "$<$:-I$-I>>" -+ COMMAND ${CMAKE_C_COMPILER} -nostdinc++ -isystem ${SYSTEM_HEADERS_DIR} "$<$:-I$-I>>" - -E "${CMAKE_CURRENT_SOURCE_DIR}/roctracer/hip_full_api.h" -D__HIP_PLATFORM_AMD__=1 -D__HIP_ROCclr__=1 -o hip_runtime_api.h.i - BYPRODUCTS hip_runtime_api.h.i - COMMAND ${Python3_EXECUTABLE} ${PROJECT_SOURCE_DIR}/script/gen_ostream_ops.py diff --git a/dev-util/roctracer/metadata.xml b/dev-util/roctracer/metadata.xml deleted file mode 100644 index a7f7157..0000000 --- a/dev-util/roctracer/metadata.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - sci@gentoo.org - Gentoo Science Project - - - xgreenlandforwyy@gmail.com - Yiyang Wu - - - gentoo@holzke.net - Wilfried Holzke - - - lockalsash@gmail.com - Sv. Lockal - - - ROCm/roctracer - - diff --git a/dev-util/roctracer/roctracer-5.7.1-r1.ebuild b/dev-util/roctracer/roctracer-5.7.1-r1.ebuild deleted file mode 100644 index 6c36347..0000000 --- a/dev-util/roctracer/roctracer-5.7.1-r1.ebuild +++ /dev/null @@ -1,87 +0,0 @@ -# Copyright 1999-2024 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -PYTHON_COMPAT=( python3_{10..12} ) -LLVM_MAX_SLOT=17 -ROCM_VERSION=${PV} - -inherit cmake prefix python-any-r1 rocm llvm - -DESCRIPTION="Callback/Activity Library for Performance tracing AMD GPU's" -HOMEPAGE="https://github.com/ROCm-Developer-Tools/roctracer" -SRC_URI="https://github.com/ROCm-Developer-Tools/roctracer/archive/rocm-${PV}.tar.gz -> ${P}.tar.gz" -S="${WORKDIR}/roctracer-rocm-${PV}" - -LICENSE="MIT" -SLOT="0/$(ver_cut 1-2)" -KEYWORDS="~amd64" -IUSE="test" -RESTRICT="!test? ( test )" - -RDEPEND="dev-libs/rocr-runtime - dev-util/hip" -DEPEND="${RDEPEND}" -BDEPEND=" - $(python_gen_any_dep ' - dev-python/cppheaderparser[${PYTHON_USEDEP}] - dev-python/ply[${PYTHON_USEDEP}] - ') -" - -PATCHES=( - "${FILESDIR}"/roctracer-5.7.1-with-tests.patch -) - -python_check_deps() { - python_has_version "dev-python/cppheaderparser[${PYTHON_USEDEP}]" \ - "dev-python/ply[${PYTHON_USEDEP}]" -} - -src_prepare() { - cmake_src_prepare - - hprefixify script/*.py - eapply $(prefixify_ro "${FILESDIR}"/${PN}-5.3.3-rocm-path.patch) - - # Install libs directly into /usr/lib64 - sed -e 's:${CMAKE_INSTALL_LIBDIR}/${PROJECT_NAME}:${CMAKE_INSTALL_LIBDIR}:g' \ - -i src/CMakeLists.txt plugin/file/CMakeLists.txt || die - - # Remove all install commands for tests - sed -E '/^ *install\(.+/d' -i test/CMakeLists.txt || die - - # Fix search path for HIP cmake - sed -e "s,\${ROCM_PATH}/lib/cmake,/usr/$(get_libdir)/cmake,g" -i test/CMakeLists.txt || die -} - -src_configure() { - local mycmakeargs=( - -DCMAKE_MODULE_PATH="${EPREFIX}/usr/$(get_libdir)/cmake/hip" - -DFILE_REORG_BACKWARD_COMPATIBILITY=OFF - -DWITH_TESTS=$(usex test) - ) - use test && mycmakeargs+=( - -DCMAKE_FIND_DEBUG_MODE=ON - -DHIP_ROOT_DIR="${EPREFIX}/usr" - -DHIP_CLANG_INSTALL_DIR="$(get_llvm_prefix "${LLVM_MAX_SLOT}")/bin" - -DGPU_TARGETS="$(get_amdgpu_flags)" - ) - - cmake_src_configure -} - -src_test() { - check_amdgpu - cd "${BUILD_DIR}" || die - # if LD_LIBRARY_PATH not set, dlopen cannot find correct lib - LD_LIBRARY_PATH="${EPREFIX}/usr/$(get_libdir):${LD_LIBRARY_PATH}" bash run.sh || die -} - -src_install() { - cmake_src_install - - # remove unneeded copy - rm -r "${ED}/usr/share/doc/${PF}-asan" || die -} diff --git a/dev-util/roctracer/roctracer-6.1.1-r1.ebuild b/dev-util/roctracer/roctracer-6.1.1-r1.ebuild deleted file mode 100644 index 1bbcbf6..0000000 --- a/dev-util/roctracer/roctracer-6.1.1-r1.ebuild +++ /dev/null @@ -1,108 +0,0 @@ -# Copyright 1999-2024 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -PYTHON_COMPAT=( python3_{10..13} ) -LLVM_COMPAT=( 20 ) -ROCM_VERSION=${PV} - -inherit cmake flag-o-matic llvm-r1 prefix python-any-r1 rocm toolchain-funcs - -DESCRIPTION="Callback/Activity Library for Performance tracing AMD GPU's" -HOMEPAGE="https://github.com/ROCm/roctracer" -SRC_URI="https://github.com/ROCm/roctracer/archive/rocm-${PV}.tar.gz -> ${P}.tar.gz" -S="${WORKDIR}/roctracer-rocm-${PV}" - -LICENSE="MIT" -SLOT="0/$(ver_cut 1-2)" -KEYWORDS="~amd64" -IUSE="test" -RESTRICT="!test? ( test )" - -RDEPEND=" - dev-util/hip:${SLOT} - dev-libs/rocr-runtime -" -DEPEND="${RDEPEND}" -BDEPEND=" - $(python_gen_any_dep ' - dev-python/cppheaderparser[${PYTHON_USEDEP}] - dev-python/ply[${PYTHON_USEDEP}] - ') -" - -PATCHES=( - "${FILESDIR}"/roctracer-5.7.1-with-tests.patch -) - -python_check_deps() { - python_has_version "dev-python/cppheaderparser[${PYTHON_USEDEP}]" \ - "dev-python/ply[${PYTHON_USEDEP}]" -} - -pkg_setup() { - python-any-r1_pkg_setup - llvm-r1_pkg_setup -} - -src_prepare() { - cmake_src_prepare - - hprefixify script/*.py - eapply $(prefixify_ro "${FILESDIR}"/${PN}-5.3.3-rocm-path.patch) - - # Install libs directly into /usr/lib64 - sed -e 's:${CMAKE_INSTALL_LIBDIR}/${PROJECT_NAME}:${CMAKE_INSTALL_LIBDIR}:g' \ - -i src/CMakeLists.txt plugin/file/CMakeLists.txt || die - - # Remove all install commands for tests - sed -E '/^ *install\(.+/d' -i test/CMakeLists.txt || die - - # Fix search path for HIP cmake - sed -e "s,\${ROCM_PATH}/lib/cmake,/usr/$(get_libdir)/cmake,g" -i test/CMakeLists.txt || die - - # bug #892732 - sed -i -e 's/-Werror//' CMakeLists.txt || die - - # libc++ may have no experimental/filesystem - sed -e 's|experimental/||' -e 's|experimental::||' \ - -i plugin/file/file.cpp src/hip_stats/hip_stats.cpp \ - src/roctracer/loader.h src/tracer_tool/tracer_tool.cpp || die -} - -src_configure() { - rocm_use_hipcc - - if [[ $(tc-get-cxx-stdlib) == "libc++" ]] ; then - # https://releases.llvm.org/9.0.0/projects/libcxx/docs/UsingLibcxx.html#using-filesystem - append-libs "-lc++fs" - fi - - local mycmakeargs=( - -DCMAKE_MODULE_PATH="${EPREFIX}/usr/$(get_libdir)/cmake/hip" - -DFILE_REORG_BACKWARD_COMPATIBILITY=OFF - -DWITH_TESTS=$(usex test) - -DPython3_EXECUTABLE="${PYTHON}" - ) - use test && mycmakeargs+=( - -DHIP_ROOT_DIR="${EPREFIX}/usr" - -DGPU_TARGETS="$(get_amdgpu_flags)" - ) - - cmake_src_configure -} - -src_test() { - check_amdgpu - cd "${BUILD_DIR}" || die - # if LD_LIBRARY_PATH not set, dlopen cannot find correct lib - LD_LIBRARY_PATH="${EPREFIX}/usr/$(get_libdir):${LD_LIBRARY_PATH}" bash run.sh || die -} - -src_install() { - cmake_src_install - - # remove unneeded copy - rm -r "${ED}/usr/share/doc/${PF}-asan" || die -} diff --git a/dev-util/roctracer/roctracer-6.3.2.ebuild b/dev-util/roctracer/roctracer-6.3.2.ebuild deleted file mode 100644 index 453e1d1..0000000 --- a/dev-util/roctracer/roctracer-6.3.2.ebuild +++ /dev/null @@ -1,110 +0,0 @@ -# Copyright 1999-2025 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -PYTHON_COMPAT=( python3_{10..13} ) -ROCM_VERSION=${PV} - -inherit cmake flag-o-matic prefix python-any-r1 rocm toolchain-funcs - -DESCRIPTION="Callback/Activity Library for Performance tracing AMD GPU's" -HOMEPAGE="https://github.com/ROCm/roctracer" -SRC_URI="https://github.com/ROCm/roctracer/archive/rocm-${PV}.tar.gz -> ${P}.tar.gz" -S="${WORKDIR}/roctracer-rocm-${PV}" - -LICENSE="MIT" -SLOT="0/$(ver_cut 1-2)" -KEYWORDS="~amd64" -IUSE="test" -RESTRICT="!test? ( test )" - -RDEPEND=" - dev-util/hip:${SLOT} - dev-libs/rocr-runtime -" -DEPEND="${RDEPEND}" -BDEPEND=" - $(python_gen_any_dep ' - dev-python/cppheaderparser[${PYTHON_USEDEP}] - dev-python/ply[${PYTHON_USEDEP}] - ') -" - -PATCHES=( - "${FILESDIR}/${PN}-5.7.1-with-tests.patch" - "${FILESDIR}/${PN}-6.3.0-fix-prettyprinter.patch" -) - -python_check_deps() { - python_has_version "dev-python/cppheaderparser[${PYTHON_USEDEP}]" \ - "dev-python/ply[${PYTHON_USEDEP}]" -} - -pkg_setup() { - python-any-r1_pkg_setup -} - -src_prepare() { - cmake_src_prepare - - hprefixify script/*.py - eapply $(prefixify_ro "${FILESDIR}/${PN}"-5.3.3-rocm-path.patch) - - # Install libs directly into /usr/lib64 - sed -e "s:\${CMAKE_INSTALL_LIBDIR}/\${PROJECT_NAME}:\${CMAKE_INSTALL_LIBDIR}:g" \ - -i src/CMakeLists.txt plugin/file/CMakeLists.txt || die - - # Remove all install commands for tests - sed -E '/^ *install\(.+/d' -i test/CMakeLists.txt || die - - # Test fails: https://github.com/ROCm/roctracer/issues/109 - sed '/load_unload_reload_test/d' -i test/run.sh || die - - # Fix search path for HIP cmake - sed -e "s,\${ROCM_PATH}/lib/cmake,/usr/$(get_libdir)/cmake,g" -i test/CMakeLists.txt || die - - # bug #892732 - sed -e 's/-Werror//' -i CMakeLists.txt || die - - # libc++ may have no experimental/filesystem - sed -e 's|experimental/||' -e 's|experimental::||' \ - -i plugin/file/file.cpp src/hip_stats/hip_stats.cpp \ - src/roctracer/loader.h src/tracer_tool/tracer_tool.cpp || die -} - -src_configure() { - rocm_use_hipcc - - if [[ $(tc-get-cxx-stdlib) == "libc++" ]] ; then - # https://releases.llvm.org/9.0.0/projects/libcxx/docs/UsingLibcxx.html#using-filesystem - append-libs "-lc++fs" - fi - - local mycmakeargs=( - -DCMAKE_MODULE_PATH="${EPREFIX}/usr/$(get_libdir)/cmake/hip" - -DFILE_REORG_BACKWARD_COMPATIBILITY=OFF - -DWITH_TESTS=$(usex test) - -DPython3_EXECUTABLE="${PYTHON}" - ) - use test && mycmakeargs+=( - -DHIP_ROOT_DIR="${EPREFIX}/usr" - -DGPU_TARGETS="$(get_amdgpu_flags)" - ) - - cmake_src_configure -} - -src_test() { - check_amdgpu - cd "${BUILD_DIR}" || die - # if LD_LIBRARY_PATH not set, dlopen cannot find correct lib - LD_LIBRARY_PATH="${EPREFIX}/usr/$(get_libdir):${LD_LIBRARY_PATH}" bash run.sh || die -} - -src_install() { - cmake_src_install - - # remove unneeded copy - rm -r "${ED}/usr/share/doc/${PF}-asan" || die -} diff --git a/dev-util/roctracer/roctracer-6.3.3.ebuild b/dev-util/roctracer/roctracer-6.3.3.ebuild deleted file mode 100644 index 453e1d1..0000000 --- a/dev-util/roctracer/roctracer-6.3.3.ebuild +++ /dev/null @@ -1,110 +0,0 @@ -# Copyright 1999-2025 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -PYTHON_COMPAT=( python3_{10..13} ) -ROCM_VERSION=${PV} - -inherit cmake flag-o-matic prefix python-any-r1 rocm toolchain-funcs - -DESCRIPTION="Callback/Activity Library for Performance tracing AMD GPU's" -HOMEPAGE="https://github.com/ROCm/roctracer" -SRC_URI="https://github.com/ROCm/roctracer/archive/rocm-${PV}.tar.gz -> ${P}.tar.gz" -S="${WORKDIR}/roctracer-rocm-${PV}" - -LICENSE="MIT" -SLOT="0/$(ver_cut 1-2)" -KEYWORDS="~amd64" -IUSE="test" -RESTRICT="!test? ( test )" - -RDEPEND=" - dev-util/hip:${SLOT} - dev-libs/rocr-runtime -" -DEPEND="${RDEPEND}" -BDEPEND=" - $(python_gen_any_dep ' - dev-python/cppheaderparser[${PYTHON_USEDEP}] - dev-python/ply[${PYTHON_USEDEP}] - ') -" - -PATCHES=( - "${FILESDIR}/${PN}-5.7.1-with-tests.patch" - "${FILESDIR}/${PN}-6.3.0-fix-prettyprinter.patch" -) - -python_check_deps() { - python_has_version "dev-python/cppheaderparser[${PYTHON_USEDEP}]" \ - "dev-python/ply[${PYTHON_USEDEP}]" -} - -pkg_setup() { - python-any-r1_pkg_setup -} - -src_prepare() { - cmake_src_prepare - - hprefixify script/*.py - eapply $(prefixify_ro "${FILESDIR}/${PN}"-5.3.3-rocm-path.patch) - - # Install libs directly into /usr/lib64 - sed -e "s:\${CMAKE_INSTALL_LIBDIR}/\${PROJECT_NAME}:\${CMAKE_INSTALL_LIBDIR}:g" \ - -i src/CMakeLists.txt plugin/file/CMakeLists.txt || die - - # Remove all install commands for tests - sed -E '/^ *install\(.+/d' -i test/CMakeLists.txt || die - - # Test fails: https://github.com/ROCm/roctracer/issues/109 - sed '/load_unload_reload_test/d' -i test/run.sh || die - - # Fix search path for HIP cmake - sed -e "s,\${ROCM_PATH}/lib/cmake,/usr/$(get_libdir)/cmake,g" -i test/CMakeLists.txt || die - - # bug #892732 - sed -e 's/-Werror//' -i CMakeLists.txt || die - - # libc++ may have no experimental/filesystem - sed -e 's|experimental/||' -e 's|experimental::||' \ - -i plugin/file/file.cpp src/hip_stats/hip_stats.cpp \ - src/roctracer/loader.h src/tracer_tool/tracer_tool.cpp || die -} - -src_configure() { - rocm_use_hipcc - - if [[ $(tc-get-cxx-stdlib) == "libc++" ]] ; then - # https://releases.llvm.org/9.0.0/projects/libcxx/docs/UsingLibcxx.html#using-filesystem - append-libs "-lc++fs" - fi - - local mycmakeargs=( - -DCMAKE_MODULE_PATH="${EPREFIX}/usr/$(get_libdir)/cmake/hip" - -DFILE_REORG_BACKWARD_COMPATIBILITY=OFF - -DWITH_TESTS=$(usex test) - -DPython3_EXECUTABLE="${PYTHON}" - ) - use test && mycmakeargs+=( - -DHIP_ROOT_DIR="${EPREFIX}/usr" - -DGPU_TARGETS="$(get_amdgpu_flags)" - ) - - cmake_src_configure -} - -src_test() { - check_amdgpu - cd "${BUILD_DIR}" || die - # if LD_LIBRARY_PATH not set, dlopen cannot find correct lib - LD_LIBRARY_PATH="${EPREFIX}/usr/$(get_libdir):${LD_LIBRARY_PATH}" bash run.sh || die -} - -src_install() { - cmake_src_install - - # remove unneeded copy - rm -r "${ED}/usr/share/doc/${PF}-asan" || die -} diff --git a/net-dns/avahi/avahi-0.8-r5.ebuild b/net-dns/avahi/avahi-0.8-r5.ebuild deleted file mode 100644 index 4eebdd8..0000000 --- a/net-dns/avahi/avahi-0.8-r5.ebuild +++ /dev/null @@ -1,214 +0,0 @@ -# Copyright 1999-2022 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI="7" - -PYTHON_COMPAT=( python3_{8..10} ) -PYTHON_REQ_USE="gdbm" -inherit autotools flag-o-matic multilib-minimal mono-env python-single-r1 systemd - -DESCRIPTION="System which facilitates service discovery on a local network" -HOMEPAGE="https://avahi.org/" -SRC_URI="https://github.com/lathiat/avahi/archive/v${PV}.tar.gz -> ${P}.tar.gz" - -LICENSE="LGPL-2.1" -SLOT="0" -KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~loong ~mips ppc ppc64 ~riscv ~s390 sparc x86" -IUSE="autoipd bookmarks +dbus doc gdbm gtk howl-compat +introspection ipv6 mdnsresponder-compat mono nls python qt5 selinux systemd test" - -REQUIRED_USE=" - python? ( dbus gdbm ${PYTHON_REQUIRED_USE} ) - bookmarks? ( python ) - mono? ( dbus ) - howl-compat? ( dbus ) - mdnsresponder-compat? ( dbus ) - systemd? ( dbus ) -" - -RESTRICT="!test? ( test )" - -DEPEND=" - dev-libs/libdaemon - dev-libs/libevent:=[${MULTILIB_USEDEP}] - dev-libs/expat - dev-libs/glib:2[${MULTILIB_USEDEP}] - gdbm? ( sys-libs/gdbm:=[${MULTILIB_USEDEP}] ) - qt5? ( dev-qt/qtcore:5 ) - gtk? ( x11-libs/gtk+:3[${MULTILIB_USEDEP}] ) - dbus? ( sys-apps/dbus[${MULTILIB_USEDEP}] ) - kernel_linux? ( sys-libs/libcap ) - introspection? ( dev-libs/gobject-introspection:= ) - mono? ( dev-lang/mono ) - python? ( - ${PYTHON_DEPS} - $(python_gen_cond_dep ' - bookmarks? ( >=dev-python/twisted-16.0.0[${PYTHON_USEDEP}] ) - dbus? ( dev-python/dbus-python[${PYTHON_USEDEP}] ) - introspection? ( dev-python/pygobject:3[${PYTHON_USEDEP}] ) - ') - ) -" -RDEPEND=" - acct-user/avahi - acct-group/avahi - acct-group/netdev - autoipd? ( - acct-user/avahi-autoipd - acct-group/avahi-autoipd - ) - ${DEPEND} - selinux? ( sec-policy/selinux-avahi ) -" -BDEPEND=" - dev-util/glib-utils - doc? ( app-doc/doxygen ) - app-doc/xmltoman - sys-devel/gettext - virtual/pkgconfig -" - -MULTILIB_WRAPPED_HEADERS=( /usr/include/avahi-qt5/qt-watch.h ) - -PATCHES=( - "${FILESDIR}/${P}-disable-avahi-ui-sharp.patch" # bug 769062 -# These patches do not apply cleanly but may need to be re-instated. -# I'll leave them commented out for now. -# "${FILESDIR}/${PN}-0.7-qt5.patch" -# "${FILESDIR}/${PN}-0.7-CVE-2017-6519.patch" -# "${FILESDIR}/${PN}-0.7-remove-empty-avahi_discover.patch" -# "${FILESDIR}/${PN}-0.7-python3.patch" -# "${FILESDIR}/${PN}-0.7-python3-unittest.patch" -# "${FILESDIR}/${PN}-0.7-python3-gdbm.patch" -) - -pkg_setup() { - use mono && mono-env_pkg_setup - use python && python-single-r1_pkg_setup -} - -src_prepare() { - default - - if ! use ipv6; then - sed -i \ - -e "s/use-ipv6=yes/use-ipv6=no/" \ - avahi-daemon/avahi-daemon.conf || die - fi - - sed -i \ - -e "s:\\.\\./\\.\\./\\.\\./doc/avahi-docs/html/:../../../doc/${PF}/html/:" \ - doxygen_to_devhelp.xsl || die - - eautoreconf - - # bundled manpages - multilib_copy_sources -} - -multilib_src_configure() { - local myconf=( - --disable-gtk - --disable-monodoc - --disable-python-dbus - --disable-qt3 - --disable-qt4 - --disable-static - --enable-manpages - --enable-glib - --enable-gobject - --enable-xmltoman - --localstatedir="${EPREFIX}/var" - --with-distro=gentoo - --with-systemdsystemunitdir="$(systemd_get_systemunitdir)" - $(use_enable dbus) - $(use_enable gdbm) - $(use_enable gtk gtk3) - $(use_enable howl-compat compat-howl) - $(use_enable mdnsresponder-compat compat-libdns_sd) - $(use_enable nls) - $(multilib_native_use_enable autoipd) - $(multilib_native_use_enable doc doxygen-doc) - $(multilib_native_use_enable introspection) - $(multilib_native_use_enable mono) - $(multilib_native_use_enable python) - $(multilib_native_use_enable test tests) - ) - - if use python; then - myconf+=( - $(multilib_native_use_enable dbus python-dbus) - $(multilib_native_use_enable introspection pygobject) - ) - fi - - if use mono; then - myconf+=( $(multilib_native_use_enable doc monodoc) ) - fi - - if ! multilib_is_native_abi; then - myconf+=( - # used by daemons only - --disable-libdaemon - --with-xml=none - ) - fi - - myconf+=( $(multilib_native_use_enable qt5) ) - - econf "${myconf[@]}" -} - -multilib_src_compile() { - emake - - multilib_is_native_abi && use doc && emake avahi.devhelp -} - -multilib_src_install() { - emake install DESTDIR="${D}" - - if ! use bookmarks || ! use python || ! use dbus; then - rm -f "${ED}"/usr/bin/avahi-bookmarks || die - fi - - # https://github.com/lathiat/avahi/issues/28 - use howl-compat && dosym avahi-compat-howl.pc /usr/$(get_libdir)/pkgconfig/howl.pc - use mdnsresponder-compat && dosym avahi-compat-libdns_sd/dns_sd.h /usr/include/dns_sd.h - - if multilib_is_native_abi && use doc; then - docinto html - dodoc -r doxygen/html/. - insinto /usr/share/devhelp/books/avahi - doins avahi.devhelp - fi - - # The build system creates an empty "/run" directory, so we clean it up here - rmdir "${ED}"/run || die -} - -multilib_src_install_all() { - use python && python_optimize - - if use autoipd; then - insinto /lib/rcscripts/net - doins "${FILESDIR}"/autoipd.sh - - insinto /lib/netifrc/net - newins "${FILESDIR}"/autoipd-openrc.sh autoipd.sh - fi - - dodoc docs/{AUTHORS,NEWS,README,TODO} - - find "${ED}" -name '*.la' -type f -delete || die -} - -pkg_postinst() { - if use autoipd; then - elog - elog "To use avahi-autoipd to configure your interfaces with IPv4LL (RFC3927)" - elog "addresses, just set config_=( autoipd ) in /etc/conf.d/net!" - elog - fi - - systemd_reenable avahi-daemon.service -} diff --git a/net-libs/libtorrent-rasterbar/Manifest b/net-libs/libtorrent-rasterbar/Manifest deleted file mode 100644 index 81b5228..0000000 --- a/net-libs/libtorrent-rasterbar/Manifest +++ /dev/null @@ -1,9 +0,0 @@ -DIST libtorrent-rasterbar-1.2.18.tar.gz 4178407 BLAKE2B ccf8d891e4c34d101a8d822149d14b46cebf57dd893c00e2481e55c0cb35f6931b02e4b6f8877140316bb3bf1840a54eb04943aa1fd190d29708ae64a5c93604 SHA512 4ac7ad6357a612bdc537d4dbce40935a43c32295773870e490d1acffab9841b2bb3052e476a91f702b7b5eb2ab3e6282792f53593cdcb06ddbd6f1d5a3097ee7 -DIST libtorrent-rasterbar-2.0.6.tar.gz 4431174 BLAKE2B 4951a102b68a5a7ba9a98d771ca638e8438b2aeaa95f5d7bf616542c7a02d28e184ee1bf5b7a55cd91a068cd2d4e9756c479e4ddb5eabe89d8aa833d70aa7502 SHA512 4a5d710706040ef6193967dbb13998cb0ddebe7e95c3bf8aec0812876027c68c32b001fd3f07cd4ff1b819660a8d46ae8c7077e72caf92572288a51cdec7daea -DIST libtorrent-rasterbar-2.0.7.tar.gz 4453469 BLAKE2B b04884c55cb96031f6bfcef786ea101d18bb9310ec2e1ed528e27d8f625712855726575beae127f24c007144bb85e1eba293da748ad06794c58ebd9b38ec5aac SHA512 30e558245a261ccf3f23815a037477ae6da1a02da0b7b3aa40383058c5782a341a11ae684f959efc1c9b39e31475ec31451b9ff4b2db3c0bfccc4d42bd6d69c1 -DIST libtorrent-rasterbar-2.0.8.tar.gz 4562750 BLAKE2B 6ea5855bd2e2d2ef56191ffea7bfc08a88ef43ffee177c1de12dbb62dc9167789abc5fcf2608856d5b23d5dc461fdc8d3f30c01286ce2ba9a11cb4d24fed477c SHA512 697988feae149876745097bedfbfb4cceae00ffe1cd4ba2063dcb93a8eee9e99344f772b8364e3df1986a50105e386e56b75fe362707d58ba3272139d9beb98f -EBUILD libtorrent-rasterbar-1.2.18.ebuild 1789 BLAKE2B c5f86fcc9780ccd6568c304ede8664546dd0f4b1227a97dfa5863b000e8ecd33683c14a8ff16733d597f90514217e0b4d4b502d6d54447d10dee09a14dd64b3f SHA512 865c486f5a6439444935e470a97b577708b82008c0955e872adbb768167369f86e108aa029e15cd7da8281ce4c4685073217966d8d4c0ae0f30415ed24162e28 -EBUILD libtorrent-rasterbar-2.0.6.ebuild 1838 BLAKE2B 2500b8573865a8d6870a14d558d88fba63ca5369f172fe2a3d8a66594532b810f734f98545b56cb5f2135acc7a02c9db1e3af3253cd6d67760d4638bd0a040b6 SHA512 6d2e38952ba689adceb87f65bb6dac469cf99d234d85d65d0d33f9fba4c27de2789bd44d487609b8f5cc610852ceb3ef7ab9850335452c0e816c86dbd8e76325 -EBUILD libtorrent-rasterbar-2.0.7.ebuild 1893 BLAKE2B 7b3ab0d9628e06a8214e06c24f97f0a3e22287add500f36816b8e7228d2279d14cf40fb4abbfbd4eaa2f1cbdf621dd52072c29a5c642832cca098b2d9aae3549 SHA512 151d1ce34d1f2d9918ec5c47fd504c9f1821567cc14aed163d72cd84444191d1f33eee6ce1238b6476be12e0d992e9ffb537bb0f337d61f226e2cdd29c2eecbb -EBUILD libtorrent-rasterbar-2.0.8.ebuild 1895 BLAKE2B c65c006418b22b17981dc98f39d211d4edf52974cc3de3c622bac8614e132b030a01c24a5455456ad179f40d1c3777effaab3601c06d8d1829d873e2b8082846 SHA512 6f01c8fd38576aa2b3d331224d967338566ea364a95008cac8fde5b855332cf6f7d676dbd80a68e162d75993c0ab6776661ab41f89d6f8c407e4e271abb8c2e4 -MISC metadata.xml 638 BLAKE2B e4ea9381097b54924059f7682aead071561015a3842a6089927840ce24fdac16101cce2c57e01431800c1e471c34117038d10a8b82d70aaed555573a9d4d03d6 SHA512 49f5bd5348f054bec0a2646f96803ab6d2dcf6a0b0f32c9ccfb05a7055012a40703b1e9ddf912827c9197ab1a740fd41b98cd7e993f5f30633686e5b102bdec2 diff --git a/net-libs/libtorrent-rasterbar/libtorrent-rasterbar-1.2.18.ebuild b/net-libs/libtorrent-rasterbar/libtorrent-rasterbar-1.2.18.ebuild deleted file mode 100644 index 676c494..0000000 --- a/net-libs/libtorrent-rasterbar/libtorrent-rasterbar-1.2.18.ebuild +++ /dev/null @@ -1,70 +0,0 @@ -# Copyright 2021-2022 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -PYTHON_COMPAT=( python3_{8..11} ) - -inherit cmake python-single-r1 - -DESCRIPTION="C++ BitTorrent implementation focusing on efficiency and scalability" -HOMEPAGE="https://libtorrent.org/ https://github.com/arvidn/libtorrent" -SRC_URI="https://github.com/arvidn/libtorrent/releases/download/v${PV}/${P}.tar.gz" - -LICENSE="BSD" -SLOT="0/10" -KEYWORDS="amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~sparc x86" -IUSE="+dht debug python ssl test" -REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" -RESTRICT="!test? ( test )" - -DEPEND=" - dev-libs/boost:= - python? ( - ${PYTHON_DEPS} - $(python_gen_cond_dep ' - dev-libs/boost[python,${PYTHON_USEDEP}] - ') - ) - ssl? ( dev-libs/openssl:= ) -" -RDEPEND="${DEPEND}" -BDEPEND="python? ( - $(python_gen_cond_dep ' - dev-python/setuptools[${PYTHON_USEDEP}] - ') - )" - -pkg_setup() { - use python && python-single-r1_pkg_setup -} - -src_configure() { - local mycmakeargs=( - -DBUILD_SHARED_LIBS=ON - -Dbuild_examples=OFF - -Ddht=$(usex dht ON OFF) - -Dencryption=$(usex ssl ON OFF) - -Dlogging=$(usex debug ON OFF) - -Dpython-bindings=$(usex python ON OFF) - -Dbuild_tests=$(usex test ON OFF) - ) - - # We need to drop the . from the Python version to satisfy Boost's - # FindBoost.cmake module, bug #793038. - use python && mycmakeargs+=( -Dboost-python-module-name="${EPYTHON/./}" ) - - cmake_src_configure -} - -src_test() { - local myctestargs=( - # test_upnp: needs running UPnP server - -E "test_upnp" - ) - - # Checked out Fedora's test workarounds for inspiration - # https://src.fedoraproject.org/rpms/rb_libtorrent/blob/rawhide/f/rb_libtorrent.spec#_120 - # -j1 for https://bugs.gentoo.org/854603#c1 - LD_LIBRARY_PATH="${BUILD_DIR}:${LD_LIBRARY_PATH}" cmake_src_test -j1 -} diff --git a/net-libs/libtorrent-rasterbar/libtorrent-rasterbar-2.0.6.ebuild b/net-libs/libtorrent-rasterbar/libtorrent-rasterbar-2.0.6.ebuild deleted file mode 100644 index ba6233a..0000000 --- a/net-libs/libtorrent-rasterbar/libtorrent-rasterbar-2.0.6.ebuild +++ /dev/null @@ -1,74 +0,0 @@ -# Copyright 2021-2022 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -PYTHON_COMPAT=( python3_{8,9,10} ) - -inherit cmake python-single-r1 - -DESCRIPTION="C++ BitTorrent implementation focusing on efficiency and scalability" -HOMEPAGE="https://libtorrent.org/ https://github.com/arvidn/libtorrent" -SRC_URI="https://github.com/arvidn/libtorrent/releases/download/v${PV}/${P}.tar.gz" - -LICENSE="BSD" -SLOT="0/2.0" -KEYWORDS="amd64 ~arm ~arm64 ~ppc ~ppc64 ~sparc x86" -IUSE="+dht debug gnutls python ssl test" -REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" -RESTRICT="!test? ( test )" - -DEPEND=" - dev-libs/boost:= - python? ( - ${PYTHON_DEPS} - $(python_gen_cond_dep ' - dev-libs/boost[python,${PYTHON_USEDEP}] - ') - ) - ssl? ( - gnutls? ( net-libs/gnutls:= ) - !gnutls? ( dev-libs/openssl:= ) - ) -" -RDEPEND="${DEPEND}" -BDEPEND="python? ( - $(python_gen_cond_dep ' - dev-python/setuptools[${PYTHON_USEDEP}] - ') - )" - -pkg_setup() { - use python && python-single-r1_pkg_setup -} - -src_configure() { - local mycmakeargs=( - -DCMAKE_CXX_STANDARD=17 - -DBUILD_SHARED_LIBS=ON - -Dbuild_examples=OFF - -Ddht=$(usex dht ON OFF) - -Dencryption=$(usex ssl ON OFF) - -Dgnutls=$(usex gnutls ON OFF) - -Dlogging=$(usex debug ON OFF) - -Dpython-bindings=$(usex python ON OFF) - -Dbuild_tests=$(usex test ON OFF) - ) - - # We need to drop the . from the Python version to satisfy Boost's - # FindBoost.cmake module, bug #793038. - use python && mycmakeargs+=( -Dboost-python-module-name="${EPYTHON/./}" ) - - cmake_src_configure -} - -src_test() { - local myctestargs=( - # Needs running UPnP server - -E "test_upnp" - ) - - # Checked out Fedora's test workarounds for inspiration - # https://src.fedoraproject.org/rpms/rb_libtorrent/blob/rawhide/f/rb_libtorrent.spec#_120 - LD_LIBRARY_PATH="${BUILD_DIR}:${LD_LIBRARY_PATH}" cmake_src_test -} diff --git a/net-libs/libtorrent-rasterbar/libtorrent-rasterbar-2.0.7.ebuild b/net-libs/libtorrent-rasterbar/libtorrent-rasterbar-2.0.7.ebuild deleted file mode 100644 index 1ceb96d..0000000 --- a/net-libs/libtorrent-rasterbar/libtorrent-rasterbar-2.0.7.ebuild +++ /dev/null @@ -1,75 +0,0 @@ -# Copyright 2021-2022 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -PYTHON_COMPAT=( python3_{8..11} ) - -inherit cmake python-single-r1 - -DESCRIPTION="C++ BitTorrent implementation focusing on efficiency and scalability" -HOMEPAGE="https://libtorrent.org/ https://github.com/arvidn/libtorrent" -SRC_URI="https://github.com/arvidn/libtorrent/releases/download/v${PV}/${P}.tar.gz" - -LICENSE="BSD" -SLOT="0/2.0" -KEYWORDS="amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~sparc x86" -IUSE="+dht debug gnutls python ssl test" -REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" -RESTRICT="!test? ( test )" - -DEPEND=" - dev-libs/boost:= - python? ( - ${PYTHON_DEPS} - $(python_gen_cond_dep ' - dev-libs/boost[python,${PYTHON_USEDEP}] - ') - ) - ssl? ( - gnutls? ( net-libs/gnutls:= ) - !gnutls? ( dev-libs/openssl:= ) - ) -" -RDEPEND="${DEPEND}" -BDEPEND="python? ( - $(python_gen_cond_dep ' - dev-python/setuptools[${PYTHON_USEDEP}] - ') - )" - -pkg_setup() { - use python && python-single-r1_pkg_setup -} - -src_configure() { - local mycmakeargs=( - -DCMAKE_CXX_STANDARD=17 - -DBUILD_SHARED_LIBS=ON - -Dbuild_examples=OFF - -Ddht=$(usex dht ON OFF) - -Dencryption=$(usex ssl ON OFF) - -Dgnutls=$(usex gnutls ON OFF) - -Dlogging=$(usex debug ON OFF) - -Dpython-bindings=$(usex python ON OFF) - -Dbuild_tests=$(usex test ON OFF) - ) - - # We need to drop the . from the Python version to satisfy Boost's - # FindBoost.cmake module, bug #793038. - use python && mycmakeargs+=( -Dboost-python-module-name="${EPYTHON/./}" ) - - cmake_src_configure -} - -src_test() { - local myctestargs=( - # Needs running UPnP server - -E "test_upnp" - ) - - # Checked out Fedora's test workarounds for inspiration - # https://src.fedoraproject.org/rpms/rb_libtorrent/blob/rawhide/f/rb_libtorrent.spec#_120 - # -j1 for https://bugs.gentoo.org/854603#c1 - LD_LIBRARY_PATH="${BUILD_DIR}:${LD_LIBRARY_PATH}" cmake_src_test -j1 -} diff --git a/net-libs/libtorrent-rasterbar/libtorrent-rasterbar-2.0.8.ebuild b/net-libs/libtorrent-rasterbar/libtorrent-rasterbar-2.0.8.ebuild deleted file mode 100644 index 576d7a2..0000000 --- a/net-libs/libtorrent-rasterbar/libtorrent-rasterbar-2.0.8.ebuild +++ /dev/null @@ -1,75 +0,0 @@ -# Copyright 2021-2022 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -PYTHON_COMPAT=( python3_{8..11} ) - -inherit cmake python-single-r1 - -DESCRIPTION="C++ BitTorrent implementation focusing on efficiency and scalability" -HOMEPAGE="https://libtorrent.org/ https://github.com/arvidn/libtorrent" -SRC_URI="https://github.com/arvidn/libtorrent/releases/download/v${PV}/${P}.tar.gz" - -LICENSE="BSD" -SLOT="0/2.0" -KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~sparc ~x86" -IUSE="+dht debug gnutls python ssl test" -REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" -RESTRICT="!test? ( test )" - -DEPEND=" - dev-libs/boost:= - python? ( - ${PYTHON_DEPS} - $(python_gen_cond_dep ' - dev-libs/boost[python,${PYTHON_USEDEP}] - ') - ) - ssl? ( - gnutls? ( net-libs/gnutls:= ) - !gnutls? ( dev-libs/openssl:= ) - ) -" -RDEPEND="${DEPEND}" -BDEPEND="python? ( - $(python_gen_cond_dep ' - dev-python/setuptools[${PYTHON_USEDEP}] - ') - )" - -pkg_setup() { - use python && python-single-r1_pkg_setup -} - -src_configure() { - local mycmakeargs=( - -DCMAKE_CXX_STANDARD=17 - -DBUILD_SHARED_LIBS=ON - -Dbuild_examples=OFF - -Ddht=$(usex dht ON OFF) - -Dencryption=$(usex ssl ON OFF) - -Dgnutls=$(usex gnutls ON OFF) - -Dlogging=$(usex debug ON OFF) - -Dpython-bindings=$(usex python ON OFF) - -Dbuild_tests=$(usex test ON OFF) - ) - - # We need to drop the . from the Python version to satisfy Boost's - # FindBoost.cmake module, bug #793038. - use python && mycmakeargs+=( -Dboost-python-module-name="${EPYTHON/./}" ) - - cmake_src_configure -} - -src_test() { - local myctestargs=( - # Needs running UPnP server - -E "test_upnp" - ) - - # Checked out Fedora's test workarounds for inspiration - # https://src.fedoraproject.org/rpms/rb_libtorrent/blob/rawhide/f/rb_libtorrent.spec#_120 - # -j1 for https://bugs.gentoo.org/854603#c1 - LD_LIBRARY_PATH="${BUILD_DIR}:${LD_LIBRARY_PATH}" cmake_src_test -j1 -} diff --git a/net-libs/libtorrent-rasterbar/metadata.xml b/net-libs/libtorrent-rasterbar/metadata.xml deleted file mode 100644 index 2344254..0000000 --- a/net-libs/libtorrent-rasterbar/metadata.xml +++ /dev/null @@ -1,20 +0,0 @@ - - - - - zlogene@gentoo.org - Mikle Kolyada - - - slashbeast@gentoo.org - Piotr Karbowski - - - libtorrent - libtorrent - arvidn/libtorrent - - - Enable DHT (distributed hash table) support - - diff --git a/net-p2p/qbittorrent/Manifest b/net-p2p/qbittorrent/Manifest deleted file mode 100644 index 5e7a25a..0000000 --- a/net-p2p/qbittorrent/Manifest +++ /dev/null @@ -1,13 +0,0 @@ -DIST qbittorrent-4.3.9.tar.gz 8510414 BLAKE2B de98aff6d81f43c3ad87f6c5f800a4488e18173fb96713d0a2420cf4d4708c9b1f2f54c8d0aa566e7738b4f94d192aad9f0196a05d43724582ef81833901727f SHA512 ec33f67895fbf47acc2f79d9c9e16db8b96c756cf493b76eb24b90e13a790a709104ea9aa378ee111d8c38b605bed5192b366d1917bbf160b21aa2ae3aacd2d1 -DIST qbittorrent-4.4.3.1.tar.gz 7736308 BLAKE2B 9177f0c629418a5f9e7f117b7d1f990181ef910193fed9763f2137cbc91c9de07ad96884d57e96782b5a2f6089fe73d3fab0a2f2f54f72dd8c2cec00dd179e5f SHA512 e3d63c4090e27387f4a5524d0daab26eab70f70ef81ad607e9661e128ccccbf33f2d240cd219bbb1fb138d6e78493ce73055d5128bf888e0ad3949922774efba -DIST qbittorrent-4.4.4.tar.gz 7738480 BLAKE2B 2a3157a732fda6eaff809d3ea717ebcc2cb7f4364cc3209bd1836196541e83cf8c7430b32037a6a6c4f517d17edb576dd80c834185d7cb764567bd5ce699bd52 SHA512 3bd26021f45287ff5b6c9a1629ff470204121c4056d452a5c00bc94b69a198093127916d33797b357eaacdb9ffd01d0de13daecb7503088cde440d5e4895ec3e -DIST qbittorrent-4.4.5.tar.gz 7739170 BLAKE2B b40a3ca63c787e0b9b9aac00a6fef452b461ba36b1ef030bc3cdd5fbefcca42d58ff6c3bd382e49f7937161afc6a37bc2c29de4f804db10c7031b9f1ad5f4e2b SHA512 a2b6ecd9a6f087a7ecaad2774d395ee4b2164cb8540b9f32574640f485fa3fc8688046d30e0179863a0aff1524d69b83c00bc232c7feb9ad737c79a05734ad95 -DIST qbittorrent-4.5.0.tar.gz 8703851 BLAKE2B 1d124921726124650073f5ae2bc078213d82d95b5986145f8570da3af38bc3f70e67046cf22db2e3a196343715b60c0896ed933bec45f5d746e6ad410748223d SHA512 3a7ae1e5d8b92748ea87b3bd07ea76fc19f4ce1c5cfbb76e57dae3e4fee1ca1c4d650db28e9571463c34b9d1af7c7c8475851911398f57e24b395223683727e7 -EBUILD qbittorrent-4.3.9.ebuild 1362 BLAKE2B 6106817ed42c625617fd496dc1eae4a28f87688bd10d5608a78d55d4dd7b36f55f3f43ee8e5724cf9a1a1d97a6617bb7e1a580fe4eec34b5b5a1db2eb91d1379 SHA512 2b799366d1e5900ca8f379aaa2effb52a429047cf413fbb994746bb64abb94d7cca043ee7cedb045dc65dd10e719486fae9888ed7437602709822029b78bd7f4 -EBUILD qbittorrent-4.4.3.1-r1.ebuild 2352 BLAKE2B 230145a96bdbc09cb22e4cb50a884747cb2f839be1f64b887e5d5d62c788accee17d93fba183ffd12a055b9bf57faf220f47f1b261ed088b0e811f9c4521075a SHA512 b5ce026aa2709b21ccbc6dc838ed297ef9859ad6230abebc112f63932a123b43f0dddd0650138c30f9b22a73d7b955438f294783da6e557c848ceb789e485f4d -EBUILD qbittorrent-4.4.3.1.ebuild 2246 BLAKE2B f3371154bc570260986ac64cb0939701feaf9f337a3a091d2f2febc84014942995310b40dcfe55d01914de4d78cadbc82b38f893af087ed0f355347000049981 SHA512 bdcefaf7424e155bab24545de21691050966b352cc6a56ba6855de1ef49b7c4bcc9ba4618be7ee25e692e9989a9c056b602d1d2263940bf7b6772681b058667e -EBUILD qbittorrent-4.4.4.ebuild 2341 BLAKE2B ee24cf7b2eea7eed8c5693b52a59ba14ee55fff3c82b485e020d8a9de8dd757c0ec91b9795b883fc9829bc457c3c44a89adcf226fae9ecb60c9fd2ade0520cca SHA512 62ddd28777814c08af483d0c4fa36bb2409ae567b6bbb1f40f9740b41cc63e03203e18959a45205ba67f052fa9a394199e09a60bfde16c3e3a217747b22f84ef -EBUILD qbittorrent-4.4.5-r2.ebuild 2198 BLAKE2B caf8f385026da31d28caf3df67e9bc6f640763a409ac07a16e9e44e442cf09e1c696c50d286da1973ed1243b9f841c06d137f59157fd1464d04e85e79182e1a5 SHA512 8da09c0b5d4748f8b44dd31227ce8a8997bba4a8deaf26e0d3577b7348965552c7c09e082f966b09548e0dd1dcd382bfbf8d0f22cdd4f3980b896ee2c0947dec -EBUILD qbittorrent-4.5.0.ebuild 2195 BLAKE2B df816dc9932e40ded609e03e260439197cd6163018bb50261285d2276aef8cc9e422609838021923e5e92c7948c9942684b12cfe479866bf180dc82c0387d881 SHA512 3c2bcbfe186383ebe4c33dc81ccb3d0d763b4a79bc9e3e1db6ed1a7467803bc8164e737d686dd53e73f8c5b081edbd7006d750a8a7ea2cda92e8c77900cad2c1 -EBUILD qbittorrent-9999.ebuild 2400 BLAKE2B 43bd3d95c41f48a9559a6d1ea4425dd6403829f578eced5ad8ff573d78ed5eef728abd43fcee20ffaffe6076bf633aebe76e24af791e8864cc0971b7a5d2bb7a SHA512 29cd2977a885952192ce2d5580e38be1dfaf734cf665a528a384894ef905ef210d30c0c6919113a1134458e70101b68117ec732c0d8ea554698a3275af038edb -MISC metadata.xml 566 BLAKE2B 72e93fef7709a25fa6059c14628ee6111454bc9ce5e3a18c2797f639047d690d5d5c42d97ec1b5376420ed9f449c36f344684b65e40797f98808709731f710f6 SHA512 24713ec8461785dc06298abf8c1e5ef34bc85412c734efb91a32fc4bc279635cde48c576ebd3743c0669d21f57129ebe7893ed7e40989f0cde1ae31db2f43ad7 diff --git a/net-p2p/qbittorrent/metadata.xml b/net-p2p/qbittorrent/metadata.xml deleted file mode 100644 index d972c0f..0000000 --- a/net-p2p/qbittorrent/metadata.xml +++ /dev/null @@ -1,19 +0,0 @@ - - - - - zlogene@gentoo.org - Mikle Kolyada - - - slashbeast@gentoo.org - Piotr Karbowski - - - Enable the Web UI - - - qbittorrent/qBittorrent - qbittorrent - - diff --git a/net-p2p/qbittorrent/qbittorrent-4.3.9.ebuild b/net-p2p/qbittorrent/qbittorrent-4.3.9.ebuild deleted file mode 100644 index 90ba6c0..0000000 --- a/net-p2p/qbittorrent/qbittorrent-4.3.9.ebuild +++ /dev/null @@ -1,68 +0,0 @@ -# Copyright 1999-2022 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -inherit xdg-utils - -DESCRIPTION="BitTorrent client in C++ and Qt" -HOMEPAGE="https://www.qbittorrent.org - https://github.com/qbittorrent" - -if [[ ${PV} == *9999 ]]; then - inherit git-r3 - EGIT_REPO_URI="https://github.com/${PN}/qBittorrent.git" -else - SRC_URI="https://github.com/qbittorrent/qBittorrent/archive/release-${PV}.tar.gz -> ${P}.tar.gz" - KEYWORDS="amd64 ~arm ~ppc64 x86" - S="${WORKDIR}/qBittorrent-release-${PV}" -fi - -LICENSE="GPL-2" -SLOT="0" -IUSE="+dbus debug webui +X" -REQUIRED_USE="dbus? ( X )" - -RDEPEND=" - dev-libs/boost:= - dev-qt/qtcore:5 - dev-qt/qtnetwork:5[ssl] - dev-qt/qtxml:5 - >=net-libs/libtorrent-rasterbar-1.2.12:0= - sys-libs/zlib - dbus? ( dev-qt/qtdbus:5 ) - X? ( - dev-libs/geoip - dev-qt/qtgui:5 - dev-qt/qtsvg:5 - dev-qt/qtwidgets:5 - )" -DEPEND="${RDEPEND} - dev-qt/linguist-tools:5" - -BDEPEND="virtual/pkgconfig" - -DOCS=( AUTHORS Changelog CONTRIBUTING.md README.md TODO ) - -src_configure() { - econf \ - $(use_enable dbus qt-dbus) \ - $(use_enable debug) \ - $(use_enable webui) \ - $(use_enable X gui) -} - -src_install() { - emake STRIP="/bin/false" INSTALL_ROOT="${D}" install - einstalldocs -} - -pkg_postinst() { - xdg_icon_cache_update - xdg_desktop_database_update -} - -pkg_postrm() { - xdg_icon_cache_update - xdg_desktop_database_update -} diff --git a/net-p2p/qbittorrent/qbittorrent-4.4.3.1-r1.ebuild b/net-p2p/qbittorrent/qbittorrent-4.4.3.1-r1.ebuild deleted file mode 100644 index 90f3d56..0000000 --- a/net-p2p/qbittorrent/qbittorrent-4.4.3.1-r1.ebuild +++ /dev/null @@ -1,109 +0,0 @@ -# Copyright 1999-2022 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -inherit cmake multibuild systemd xdg - -DESCRIPTION="BitTorrent client in C++ and Qt" -HOMEPAGE="https://www.qbittorrent.org - https://github.com/qbittorrent" - -if [[ ${PV} == *9999 ]]; then - inherit git-r3 - EGIT_REPO_URI="https://github.com/${PN}/qBittorrent.git" -else - SRC_URI="https://github.com/qbittorrent/qBittorrent/archive/release-${PV}.tar.gz -> ${P}.tar.gz" - KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86" - S="${WORKDIR}/qBittorrent-release-${PV}" -fi - -LICENSE="GPL-2" -SLOT="0" -IUSE="+dbus +gui webui" -REQUIRED_USE="dbus? ( gui ) - || ( gui webui )" - -RDEPEND=" - dev-libs/boost:= - dev-libs/openssl:= - dev-qt/qtcore:5 - dev-qt/qtnetwork:5[ssl] - dev-qt/qtsql:5 - dev-qt/qtxml:5 - >=net-libs/libtorrent-rasterbar-1.2.14:= - sys-libs/zlib - dbus? ( dev-qt/qtdbus:5 ) - gui? ( - dev-libs/geoip - dev-qt/qtgui:5 - dev-qt/qtsvg:5 - dev-qt/qtwidgets:5 - )" -DEPEND="${RDEPEND}" -BDEPEND="dev-qt/linguist-tools:5 - virtual/pkgconfig" - -DOCS=( AUTHORS Changelog CONTRIBUTING.md README.md TODO ) - -src_prepare() { - MULTIBUILD_VARIANTS=( base ) - use webui && MULTIBUILD_VARIANTS+=( webui ) - - cmake_src_prepare -} - -src_configure() { - multibuild_src_configure() { - local mycmakeargs=( - -DDBUS=$(usex dbus) - - # musl lacks execinfo.h - -DSTACKTRACE=$(usex !elibc_musl) - - # We always want to install unit files - -DSYSTEMD=ON - -DSYSTEMD_SERVICES_INSTALL_DIR=$(systemd_get_systemunitdir) - - # More verbose build logs are preferable for bug reports - -DVERBOSE_CONFIGURE=ON - - # Not yet in ::gentoo - -DQT6=OFF - - # We do these in multibuild, see bug #839531 for why. - # Fedora has to do the same thing. - -DGUI=$(usex gui) - ) - - if [[ ${MULTIBUILD_VARIANT} == webui ]] ; then - mycmakeargs+=( - # Need to specify GUI here to allow webui settings - # to appear in the GUI. bug #864731. - -DGUI=$(usex gui) - -DWEBUI=ON - ) - else - mycmakeargs+=( -DWEBUI=OFF ) - fi - - cmake_src_configure - } - - multibuild_foreach_variant multibuild_src_configure -} - -src_compile() { - multibuild_foreach_variant cmake_src_compile -} - -src_install() { - multibuild_foreach_variant cmake_src_install - - if ! use webui ; then - # No || die deliberately as it doesn't always exist - rm "${D}/$(systemd_get_systemunitdir)"/qbittorrent-nox*.service - fi - - einstalldocs -} diff --git a/net-p2p/qbittorrent/qbittorrent-4.4.3.1.ebuild b/net-p2p/qbittorrent/qbittorrent-4.4.3.1.ebuild deleted file mode 100644 index 94ae8db..0000000 --- a/net-p2p/qbittorrent/qbittorrent-4.4.3.1.ebuild +++ /dev/null @@ -1,107 +0,0 @@ -# Copyright 1999-2022 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -inherit cmake multibuild systemd xdg - -DESCRIPTION="BitTorrent client in C++ and Qt" -HOMEPAGE="https://www.qbittorrent.org - https://github.com/qbittorrent" - -if [[ ${PV} == *9999 ]]; then - inherit git-r3 - EGIT_REPO_URI="https://github.com/${PN}/qBittorrent.git" -else - SRC_URI="https://github.com/qbittorrent/qBittorrent/archive/release-${PV}.tar.gz -> ${P}.tar.gz" - KEYWORDS="amd64 ~arm ~arm64 ~ppc64 x86" - S="${WORKDIR}/qBittorrent-release-${PV}" -fi - -LICENSE="GPL-2" -SLOT="0" -IUSE="+dbus +gui webui" -REQUIRED_USE="dbus? ( gui ) - || ( gui webui )" - -RDEPEND=" - dev-libs/boost:= - dev-libs/openssl:= - dev-qt/qtcore:5 - dev-qt/qtnetwork:5[ssl] - dev-qt/qtsql:5 - dev-qt/qtxml:5 - >=net-libs/libtorrent-rasterbar-1.2.14:= - sys-libs/zlib - dbus? ( dev-qt/qtdbus:5 ) - gui? ( - dev-libs/geoip - dev-qt/qtgui:5 - dev-qt/qtsvg:5 - dev-qt/qtwidgets:5 - )" -DEPEND="${RDEPEND}" -BDEPEND="dev-qt/linguist-tools:5 - virtual/pkgconfig" - -DOCS=( AUTHORS Changelog CONTRIBUTING.md README.md TODO ) - -src_prepare() { - MULTIBUILD_VARIANTS=( base ) - use webui && MULTIBUILD_VARIANTS+=( webui ) - - cmake_src_prepare -} - -src_configure() { - multibuild_src_configure() { - local mycmakeargs=( - -DDBUS=$(usex dbus) - - # musl lacks execinfo.h - -DSTACKTRACE=$(usex !elibc_musl) - - # We always want to install unit files - -DSYSTEMD=ON - -DSYSTEMD_SERVICES_INSTALL_DIR=$(systemd_get_systemunitdir) - - # More verbose build logs are preferable for bug reports - -DVERBOSE_CONFIGURE=ON - - # Not yet in ::gentoo - -DQT6=OFF - - # We do these in multibuild, see bug #839531 for why. - # Fedora has to do the same thing. - -DGUI=$(usex gui) - ) - - if [[ ${MULTIBUILD_VARIANT} == webui ]] ; then - mycmakeargs+=( - -DGUI=OFF - -DWEBUI=ON - ) - else - mycmakeargs+=( -DWEBUI=OFF ) - fi - - cmake_src_configure - } - - multibuild_foreach_variant multibuild_src_configure -} - -src_compile() { - multibuild_foreach_variant cmake_src_compile -} - -src_install() { - multibuild_foreach_variant cmake_src_install - - if ! use webui ; then - # No || die deliberately as it doesn't always exist - rm "${D}/$(systemd_get_systemunitdir)"/qbittorrent-nox*.service - fi - - einstalldocs -} diff --git a/net-p2p/qbittorrent/qbittorrent-4.4.4.ebuild b/net-p2p/qbittorrent/qbittorrent-4.4.4.ebuild deleted file mode 100644 index c84808b..0000000 --- a/net-p2p/qbittorrent/qbittorrent-4.4.4.ebuild +++ /dev/null @@ -1,108 +0,0 @@ -# Copyright 1999-2022 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -inherit cmake multibuild systemd xdg - -DESCRIPTION="BitTorrent client in C++ and Qt" -HOMEPAGE="https://www.qbittorrent.org" - -if [[ ${PV} == *9999 ]]; then - EGIT_REPO_URI="https://github.com/qbittorrent/qBittorrent.git" - inherit git-r3 -else - SRC_URI="https://github.com/qbittorrent/qBittorrent/archive/release-${PV}.tar.gz -> ${P}.tar.gz" - KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86" - S="${WORKDIR}"/qBittorrent-release-${PV} -fi - -LICENSE="GPL-2" -SLOT="0" -IUSE="+dbus +gui webui" -REQUIRED_USE="dbus? ( gui ) - || ( gui webui )" - -RDEPEND=" - dev-libs/boost:= - >=dev-libs/openssl-1.1.1:= - dev-qt/qtcore:5 - dev-qt/qtnetwork:5[ssl] - dev-qt/qtsql:5 - dev-qt/qtxml:5 - >=net-libs/libtorrent-rasterbar-1.2.14:= - >=sys-libs/zlib-1.2.11 - dbus? ( dev-qt/qtdbus:5 ) - gui? ( - dev-libs/geoip - dev-qt/qtgui:5 - dev-qt/qtsvg:5 - dev-qt/qtwidgets:5 - )" -DEPEND="${RDEPEND}" -BDEPEND="dev-qt/linguist-tools:5 - virtual/pkgconfig" - -DOCS=( AUTHORS Changelog CONTRIBUTING.md README.md TODO ) - -src_prepare() { - MULTIBUILD_VARIANTS=( base ) - use webui && MULTIBUILD_VARIANTS+=( webui ) - - cmake_src_prepare -} - -src_configure() { - multibuild_src_configure() { - local mycmakeargs=( - -DDBUS=$(usex dbus) - - # musl lacks execinfo.h - -DSTACKTRACE=$(usex !elibc_musl) - - # We always want to install unit files - -DSYSTEMD=ON - -DSYSTEMD_SERVICES_INSTALL_DIR=$(systemd_get_systemunitdir) - - # More verbose build logs are preferable for bug reports - -DVERBOSE_CONFIGURE=ON - - # Not yet in ::gentoo - -DQT6=OFF - - # We do these in multibuild, see bug #839531 for why. - # Fedora has to do the same thing. - -DGUI=$(usex gui) - ) - - if [[ ${MULTIBUILD_VARIANT} == webui ]] ; then - mycmakeargs+=( - # Need to specify GUI here to allow webui settings - # to appear in the GUI. bug #864731. - -DGUI=$(usex gui) - -DWEBUI=ON - ) - else - mycmakeargs+=( -DWEBUI=OFF ) - fi - - cmake_src_configure - } - - multibuild_foreach_variant multibuild_src_configure -} - -src_compile() { - multibuild_foreach_variant cmake_src_compile -} - -src_install() { - multibuild_foreach_variant cmake_src_install - - if ! use webui ; then - # No || die deliberately as it doesn't always exist - rm "${D}/$(systemd_get_systemunitdir)"/qbittorrent-nox*.service - fi - - einstalldocs -} diff --git a/net-p2p/qbittorrent/qbittorrent-4.4.5-r2.ebuild b/net-p2p/qbittorrent/qbittorrent-4.4.5-r2.ebuild deleted file mode 100644 index a61652d..0000000 --- a/net-p2p/qbittorrent/qbittorrent-4.4.5-r2.ebuild +++ /dev/null @@ -1,103 +0,0 @@ -# Copyright 1999-2022 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -inherit cmake multibuild systemd xdg - -DESCRIPTION="BitTorrent client in C++ and Qt" -HOMEPAGE="https://www.qbittorrent.org" - -if [[ ${PV} == *9999 ]]; then - EGIT_REPO_URI="https://github.com/qbittorrent/qBittorrent.git" - inherit git-r3 -else - SRC_URI="https://github.com/qbittorrent/qBittorrent/archive/release-${PV}.tar.gz -> ${P}.tar.gz" - KEYWORDS="amd64 ~arm ~arm64 ~ppc64 ~riscv x86" - S="${WORKDIR}"/qBittorrent-release-${PV} -fi - -LICENSE="GPL-2" -SLOT="0" -IUSE="+dbus +gui webui" -REQUIRED_USE="dbus? ( gui ) - || ( gui webui )" - -RDEPEND=" - dev-libs/boost:= - >=dev-libs/openssl-1.1.1:= - dev-qt/qtcore:5 - dev-qt/qtnetwork:5[ssl] - dev-qt/qtsql:5 - dev-qt/qtxml:5 - =sys-libs/zlib-1.2.11 - dbus? ( dev-qt/qtdbus:5 ) - gui? ( - dev-libs/geoip - dev-qt/qtgui:5 - dev-qt/qtsvg:5 - dev-qt/qtwidgets:5 - )" -DEPEND="${RDEPEND}" -BDEPEND="dev-qt/linguist-tools:5 - virtual/pkgconfig" - -DOCS=( AUTHORS Changelog CONTRIBUTING.md README.md TODO ) - -src_prepare() { - MULTIBUILD_VARIANTS=() - use gui && MULTIBUILD_VARIANTS+=( gui ) - use webui && MULTIBUILD_VARIANTS+=( nogui ) - - cmake_src_prepare -} - -src_configure() { - multibuild_src_configure() { - local mycmakeargs=( - # musl lacks execinfo.h - -DSTACKTRACE=$(usex !elibc_musl) - - # More verbose build logs are preferable for bug reports - -DVERBOSE_CONFIGURE=ON - - # Not yet in ::gentoo - -DQT6=OFF - - -DWEBUI=$(usex webui) - ) - - if [[ ${MULTIBUILD_VARIANT} == gui ]]; then - # We do this in multibuild, see bug #839531 for why. - # Fedora has to do the same thing. - mycmakeargs+=( - -DGUI=ON - -DDBUS=$(usex dbus) - -DSYSTEMD=OFF - ) - else - mycmakeargs+=( - -DGUI=OFF - -DDBUS=OFF - # The systemd service calls qbittorrent-nox, which is only - # installed when GUI=OFF. - -DSYSTEMD=ON - -DSYSTEMD_SERVICES_INSTALL_DIR="$(systemd_get_systemunitdir)" - ) - fi - - cmake_src_configure - } - - multibuild_foreach_variant multibuild_src_configure -} - -src_compile() { - multibuild_foreach_variant cmake_src_compile -} - -src_install() { - multibuild_foreach_variant cmake_src_install - einstalldocs -} diff --git a/net-p2p/qbittorrent/qbittorrent-4.5.0.ebuild b/net-p2p/qbittorrent/qbittorrent-4.5.0.ebuild deleted file mode 100644 index 6dfbc8e..0000000 --- a/net-p2p/qbittorrent/qbittorrent-4.5.0.ebuild +++ /dev/null @@ -1,103 +0,0 @@ -# Copyright 1999-2022 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -inherit cmake multibuild systemd xdg - -DESCRIPTION="BitTorrent client in C++ and Qt" -HOMEPAGE="https://www.qbittorrent.org" - -if [[ ${PV} == *9999 ]]; then - EGIT_REPO_URI="https://github.com/qbittorrent/qBittorrent.git" - inherit git-r3 -else - SRC_URI="https://github.com/qbittorrent/qBittorrent/archive/release-${PV}.tar.gz -> ${P}.tar.gz" - KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~riscv ~x86" - S="${WORKDIR}"/qBittorrent-release-${PV} -fi - -LICENSE="GPL-2" -SLOT="0" -IUSE="+dbus +gui webui" -REQUIRED_USE="dbus? ( gui ) - || ( gui webui )" - -RDEPEND=" - dev-libs/boost:= - >=dev-libs/openssl-1.1.1:= - dev-qt/qtcore:5 - dev-qt/qtnetwork:5[ssl] - dev-qt/qtsql:5 - dev-qt/qtxml:5 - net-libs/libtorrent-rasterbar - >=sys-libs/zlib-1.2.11 - dbus? ( dev-qt/qtdbus:5 ) - gui? ( - dev-libs/geoip - dev-qt/qtgui:5 - dev-qt/qtsvg:5 - dev-qt/qtwidgets:5 - )" -DEPEND="${RDEPEND}" -BDEPEND="dev-qt/linguist-tools:5 - virtual/pkgconfig" - -DOCS=( AUTHORS Changelog CONTRIBUTING.md README.md ) - -src_prepare() { - MULTIBUILD_VARIANTS=() - use gui && MULTIBUILD_VARIANTS+=( gui ) - use webui && MULTIBUILD_VARIANTS+=( nogui ) - - cmake_src_prepare -} - -src_configure() { - multibuild_src_configure() { - local mycmakeargs=( - # musl lacks execinfo.h - -DSTACKTRACE=$(usex !elibc_musl) - - # More verbose build logs are preferable for bug reports - -DVERBOSE_CONFIGURE=ON - - # Not yet in ::gentoo - -DQT6=OFF - - -DWEBUI=$(usex webui) - ) - - if [[ ${MULTIBUILD_VARIANT} == gui ]]; then - # We do this in multibuild, see bug #839531 for why. - # Fedora has to do the same thing. - mycmakeargs+=( - -DGUI=ON - -DDBUS=$(usex dbus) - -DSYSTEMD=OFF - ) - else - mycmakeargs+=( - -DGUI=OFF - -DDBUS=OFF - # The systemd service calls qbittorrent-nox, which is only - # installed when GUI=OFF. - -DSYSTEMD=ON - -DSYSTEMD_SERVICES_INSTALL_DIR="$(systemd_get_systemunitdir)" - ) - fi - - cmake_src_configure - } - - multibuild_foreach_variant multibuild_src_configure -} - -src_compile() { - multibuild_foreach_variant cmake_src_compile -} - -src_install() { - multibuild_foreach_variant cmake_src_install - einstalldocs -} diff --git a/net-p2p/qbittorrent/qbittorrent-9999.ebuild b/net-p2p/qbittorrent/qbittorrent-9999.ebuild deleted file mode 100644 index c6292ef..0000000 --- a/net-p2p/qbittorrent/qbittorrent-9999.ebuild +++ /dev/null @@ -1,115 +0,0 @@ -# Copyright 1999-2022 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -inherit cmake multibuild systemd xdg - -DESCRIPTION="BitTorrent client in C++ and Qt" -HOMEPAGE="https://www.qbittorrent.org" - -if [[ ${PV} == *9999 ]]; then - EGIT_REPO_URI="https://github.com/qbittorrent/qBittorrent.git" - inherit git-r3 -else - SRC_URI="https://github.com/qbittorrent/qBittorrent/archive/release-${PV}.tar.gz -> ${P}.tar.gz" - KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86" - S="${WORKDIR}"/qBittorrent-release-${PV} -fi - -LICENSE="GPL-2" -SLOT="0" -IUSE="+dbus +gui test webui" -RESTRICT="!test? ( test )" -REQUIRED_USE="dbus? ( gui ) - || ( gui webui )" - -RDEPEND=" - dev-libs/boost:= - >=dev-libs/openssl-1.1.1:= - dev-qt/qtcore:5 - dev-qt/qtnetwork:5[ssl] - dev-qt/qtsql:5 - dev-qt/qtxml:5 - >=net-libs/libtorrent-rasterbar-1.2.14:= - >=sys-libs/zlib-1.2.11 - dbus? ( dev-qt/qtdbus:5 ) - gui? ( - dev-libs/geoip - dev-qt/qtgui:5 - dev-qt/qtsvg:5 - dev-qt/qtwidgets:5 - )" -DEPEND="${RDEPEND}" -BDEPEND="dev-qt/linguist-tools:5 - virtual/pkgconfig" - -DOCS=( AUTHORS Changelog CONTRIBUTING.md README.md ) - -src_prepare() { - MULTIBUILD_VARIANTS=() - use gui && MULTIBUILD_VARIANTS+=( gui ) - use webui && MULTIBUILD_VARIANTS+=( nogui ) - - cmake_src_prepare -} - -src_configure() { - multibuild_src_configure() { - local mycmakeargs=( - # musl lacks execinfo.h - -DSTACKTRACE=$(usex !elibc_musl) - - # More verbose build logs are preferable for bug reports - -DVERBOSE_CONFIGURE=ON - - # Not yet in ::gentoo - -DQT6=OFF - - -DWEBUI=$(usex webui) - - -DTESTING=$(usex test) - ) - - if [[ ${MULTIBUILD_VARIANT} == gui ]] ; then - # We do this in multibuild, see bug #839531 for why. - # Fedora has to do the same thing. - mycmakeargs+=( - -DGUI=ON - -DDBUS=$(usex dbus) - -DSYSTEMD=OFF - ) - else - mycmakeargs+=( - -DGUI=OFF - -DDBUS=OFF - # The systemd service calls qbittorrent-nox, which is only - # installed when GUI=OFF. - -DSYSTEMD=ON - -DSYSTEMD_SERVICES_INSTALL_DIR="$(systemd_get_systemunitdir)" - ) - fi - - cmake_src_configure - } - - multibuild_foreach_variant multibuild_src_configure -} - -src_compile() { - multibuild_foreach_variant cmake_src_compile -} - -src_test() { - qbittorrent_run_tests() { - cd "${BUILD_DIR}"/test || die - ctest . || die - } - - multibuild_foreach_variant qbittorrent_run_tests -} - -src_install() { - multibuild_foreach_variant cmake_src_install - einstalldocs -} diff --git a/sci-libs/hipBLASLt/Manifest b/sci-libs/hipBLASLt/Manifest deleted file mode 100644 index 15ab940..0000000 --- a/sci-libs/hipBLASLt/Manifest +++ /dev/null @@ -1,4 +0,0 @@ -DIST hipBLASLt-6.1.1.tar.gz 78448557 BLAKE2B 08ac9ce45d7d1e4384a36939af22f65589ed87e25b4db77f5f7ff5fbe65b8070e9c55fbb09db3b7bd49be98981dc8bf939e646ea27571bf1d1ccfa52a50b0f92 SHA512 1aa3a1cb8e9c7f653db66909b38be065b7386b97d4bd6b52ecc6c2bf72c6cdfabde6f12ebc6016b5fa195f979359af875eda8d54ea6772329312cb357bc2ebc5 -DIST hipBLASLt-6.3.1.tar.gz 89385330 BLAKE2B 4bcf083e41ad6f22f61321bd066d79a6a387ea677cdb05f96f474e1b409f0b1cc5dc0c61259d7d6456ced2b77191388e1bd4b260bd7d185875241f55246ed1a8 SHA512 7a6443ab7a66bae1d6273945ea91814b2d5f9846d8276040cda7f43ed7ea0c2cb6063009e7fe092742d396c8d87c2cf62ed4cf8249e936eed69c0cad6db02193 -DIST hipBLASLt-6.3.2.tar.gz 89385514 BLAKE2B 785ee2951b76100f29eed4891cdc3fc58abbee866a9eac7109bc49e56854007d57d15bc6d605a7527ecc685e59500567581d194ede67cff566fba3b582d7b3c4 SHA512 2f4f497a5228162f4fffda9f549f943d26c86d7160a50c0aadc403340cee4466e9f16bd5cfcd386535b7f05cc8d1839a4d146c52761b6eb29e2e53962437e781 -DIST hipBLASLt-6.3.3.tar.gz 89385318 BLAKE2B b307e4c418bda7583efdf5dc646f05368c195f6df0077823ae179efb52a56ba4f13b5fce6a10ff38e0ad593bf5b415fc6e5b4132488b2dbf9da58198af15d230 SHA512 9fb523e614dd790aa3c01337f3d93f9df0a135d25e9efda2375e88818f6097d661e5159336258631cc0a25d923efcddb4b39378bf54c33d0e5a01bba387f1368 diff --git a/sci-libs/hipBLASLt/files/hipBLASLt-6.1.1-clang-19.patch b/sci-libs/hipBLASLt/files/hipBLASLt-6.1.1-clang-19.patch deleted file mode 100644 index 5d082cc..0000000 --- a/sci-libs/hipBLASLt/files/hipBLASLt-6.1.1-clang-19.patch +++ /dev/null @@ -1,11 +0,0 @@ -Clang 19 is so smart, it can analyze templates before instantiation ---- a/tensilelite/Tensile/Source/lib/include/Tensile/MasterSolutionLibrary.hpp -+++ b/tensilelite/Tensile/Source/lib/include/Tensile/MasterSolutionLibrary.hpp -@@ -36,6 +36,7 @@ - - namespace Tensile - { -+ enum class LazyLoadingInit; - - /** - * \ingroup SolutionLibrary diff --git a/sci-libs/hipBLASLt/files/hipBLASLt-6.1.1-fix-libcxx.patch b/sci-libs/hipBLASLt/files/hipBLASLt-6.1.1-fix-libcxx.patch deleted file mode 100644 index 32aa651..0000000 --- a/sci-libs/hipBLASLt/files/hipBLASLt-6.1.1-fix-libcxx.patch +++ /dev/null @@ -1,57 +0,0 @@ -# libc++ issue: https://github.com/llvm/llvm-project/issues/98734 -diff --git a/library/src/amd_detail/rocblaslt/src/rocblaslt_mat.cpp b/library/src/amd_detail/rocblaslt/src/rocblaslt_mat.cpp -index 82cc81f..94e62d4 100644 ---- a/library/src/amd_detail/rocblaslt/src/rocblaslt_mat.cpp -+++ b/library/src/amd_detail/rocblaslt/src/rocblaslt_mat.cpp -@@ -28,6 +28,7 @@ - #include "handle.h" - #include "rocblaslt_mat_utils.hpp" - #include "tensile_host.hpp" -+#include - - #include - -@@ -602,7 +603,7 @@ rocblaslt_status - std::vector ldc_vec, batch_stride_c_vec, num_batches_c_vec; - std::vector ldd_vec, batch_stride_d_vec, num_batches_d_vec; - std::vector lde_vec, batch_stride_e_vec, num_batches_e_vec; -- std::vector alpha_1(matmul_descr.size()); -+ std::vector> alpha_1(matmul_descr.size()); - - std::vector gradient_vec; - -@@ -692,10 +693,10 @@ rocblaslt_status - return validArgs; - - const void* alphaTmp = nullptr; -- memset(alpha_1[i], 0, sizeof(int8_t) * 16); -+ memset(alpha_1[i].data(), 0, sizeof(int8_t) * 16); - if(scaleAlphaVec) - { -- setTo1(compute_type, (void*)alpha_1[i], &alphaTmp); -+ setTo1(compute_type, (void*)alpha_1[i].data(), &alphaTmp); - } - else - { -@@ -867,7 +868,7 @@ rocblaslt_status - std::vector lde_vec, batch_stride_e_vec, num_batches_e_vec; - std::vector gradient_vec; - -- std::vector alpha_1(m.size()); -+ std::vector> alpha_1(m.size()); - - for(int i = 0; i < m.size(); i++) - { -@@ -924,10 +925,10 @@ rocblaslt_status - return validArgs; - - const void* alphaTmp = nullptr; -- memset(alpha_1[i], 0, sizeof(int8_t) * 16); -+ memset(alpha_1[i].data(), 0, sizeof(int8_t) * 16); - if(scaleAlphaVec) - { -- setTo1(compute_type, (void*)alpha_1[i], &alphaTmp); -+ setTo1(compute_type, (void*)alpha_1[i].data(), &alphaTmp); - } - else - { diff --git a/sci-libs/hipBLASLt/files/hipBLASLt-6.1.1-fix-msgpack-dependency.patch b/sci-libs/hipBLASLt/files/hipBLASLt-6.1.1-fix-msgpack-dependency.patch deleted file mode 100644 index ef0b839..0000000 --- a/sci-libs/hipBLASLt/files/hipBLASLt-6.1.1-fix-msgpack-dependency.patch +++ /dev/null @@ -1,29 +0,0 @@ -Gentoo uses "msgpack-cxx" as library name and adds important -MSGPACK_NO_BOOST compile definition when msgpack-cxx us installed with USE=-boost ---- a/tensilelite/Tensile/Source/lib/CMakeLists.txt -+++ b/tensilelite/Tensile/Source/lib/CMakeLists.txt -@@ -102,22 +102,9 @@ if(TENSILE_USE_LLVM OR TENSILE_USE_MSGPACK) - endif() - - if(TENSILE_USE_MSGPACK) -- find_package(msgpack REQUIRED) -+ find_package(msgpack-cxx REQUIRED) - target_compile_definitions(TensileHost PUBLIC -DTENSILE_MSGPACK=1) -- -- if(TARGET msgpackc-cxx) -- get_target_property(msgpack_inc msgpackc-cxx INTERFACE_INCLUDE_DIRECTORIES) -- elseif(TARGET msgpackc) -- get_target_property(msgpack_inc msgpackc INTERFACE_INCLUDE_DIRECTORIES) -- endif() -- -- if(DEFINED msgpack_inc) -- # include C++ headers manually -- # External header includes included as system files -- target_include_directories(TensileHost -- SYSTEM PRIVATE $ -- ) -- endif() -+ target_link_libraries(TensileHost PRIVATE msgpack-cxx) - endif() - - if(TENSILE_USE_LLVM) diff --git a/sci-libs/hipBLASLt/files/hipBLASLt-6.1.1-gentoopath.patch b/sci-libs/hipBLASLt/files/hipBLASLt-6.1.1-gentoopath.patch deleted file mode 100644 index 17c5d9c..0000000 --- a/sci-libs/hipBLASLt/files/hipBLASLt-6.1.1-gentoopath.patch +++ /dev/null @@ -1,24 +0,0 @@ ---- a/tensilelite/Tensile/Ops/gen_assembly.sh -+++ b/tensilelite/Tensile/Ops/gen_assembly.sh -@@ -32,7 +32,7 @@ if ! [ -z ${ROCM_PATH+x} ]; then - rocm_path=${ROCM_PATH} - fi - --toolchain=${rocm_path}/llvm/bin/clang++ -+toolchain=@LLVM_PATH@/bin/clang++ - - . ${venv}/bin/activate - ---- a/CMakeLists.txt -+++ b/CMakeLists.txt -@@ -97,10 +97,6 @@ endif() - # hipBLASLt project - project(hipblaslt LANGUAGES CXX) - --# Force library install path to lib (CentOS 7 defaults to lib64) --set(CMAKE_INSTALL_LIBDIR "lib" CACHE INTERNAL "Installation directory for libraries" FORCE) -- -- - # Build options - option(BUILD_SHARED_LIBS "Build hipBLASLt as a shared library" ON) - option(BUILD_CLIENTS_TESTS "Build tests (requires googletest)" OFF) diff --git a/sci-libs/hipBLASLt/files/hipBLASLt-6.1.1-no-arch.patch b/sci-libs/hipBLASLt/files/hipBLASLt-6.1.1-no-arch.patch deleted file mode 100644 index 7f1e61d..0000000 --- a/sci-libs/hipBLASLt/files/hipBLASLt-6.1.1-no-arch.patch +++ /dev/null @@ -1,57 +0,0 @@ -Add ability to build without specitying any arch. -This produces dummy library, which can be linked to other project (like caffe2 in pytorch). - -Related upstream bug: https://github.com/ROCm/hipBLASLt/issues/535 ---- a/CMakeLists.txt -+++ b/CMakeLists.txt -@@ -220,6 +220,10 @@ else() - else() - find_package(Tensile 4.33.0 EXACT REQUIRED HIP LLVM OpenMP PATHS "${INSTALLED_TENSILE_PATH}") - endif() -+ else() # link to Tensile (required), but don't generate libraries -+ cmake_policy(SET CMP0074 NEW) -+ set(Tensile_ROOT "${CMAKE_SOURCE_DIR}/tensilelite/Tensile") -+ find_package(Tensile REQUIRED HIP LLVM OpenMP) - endif() - - # setup hipblaslt defines used for both the library and clients ---- a/library/CMakeLists.txt -+++ b/library/CMakeLists.txt -@@ -75,7 +75,7 @@ add_library(roc::hipblaslt ALIAS hipblaslt) - - # Target compile definitions - if(NOT BUILD_CUDA) --if( BUILD_WITH_TENSILE ) -+if( TRUE ) # link with Tensile is always reqiured - - if( BUILD_SHARED_LIBS ) - target_link_libraries( hipblaslt PRIVATE TensileHost ) -@@ -194,7 +194,7 @@ rocm_install_targets(TARGETS hipblaslt - ${CMAKE_BINARY_DIR}/include - ) - --if ( NOT BUILD_CUDA ) -+if ( NOT BUILD_CUDA AND BUILD_WITH_TENSILE ) - if (WIN32) - set( HIPBLASLT_TENSILE_LIBRARY_DIR "\${CPACK_PACKAGING_INSTALL_PREFIX}hipblaslt/bin" CACHE PATH "path to tensile library" ) - else() ---- a/library/src/amd_detail/rocblaslt/src/CMakeLists.txt -+++ b/library/src/amd_detail/rocblaslt/src/CMakeLists.txt -@@ -100,7 +100,17 @@ if( BUILD_WITH_TENSILE ) - set( Tensile_INC - ${CMAKE_CURRENT_SOURCE_DIR}/src/amd_detail/rocblaslt/src/Tensile - ) -+else() -+ set_target_properties( TensileHost PROPERTIES POSITION_INDEPENDENT_CODE ON ) - -+ set( Tensile_SRC -+ ${CMAKE_CURRENT_SOURCE_DIR}/src/amd_detail/rocblaslt/src/tensile_host.cpp -+ ${PROJECT_SOURCE_DIR}/tensilelite/Tensile/Source/lib/source/msgpack/MessagePack.cpp -+ ) -+ -+ set( Tensile_INC -+ ${CMAKE_CURRENT_SOURCE_DIR}/src/amd_detail/rocblaslt/src/Tensile -+ ) - endif( ) # BUILD_WITH_TENSILE - - set(DL_LIB dl) \ No newline at end of file diff --git a/sci-libs/hipBLASLt/files/hipBLASLt-6.1.1-no-git.patch b/sci-libs/hipBLASLt/files/hipBLASLt-6.1.1-no-git.patch deleted file mode 100644 index 55c2668..0000000 --- a/sci-libs/hipBLASLt/files/hipBLASLt-6.1.1-no-git.patch +++ /dev/null @@ -1,13 +0,0 @@ -Git is not used ---- a/cmake/Dependencies.cmake -+++ b/cmake/Dependencies.cmake -@@ -23,9 +23,6 @@ - - # Dependencies - --# Git --find_package(Git REQUIRED) -- - # Workaround until hcc & hip cmake modules fixes symlink logic in their config files. - # (Thanks to rocBLAS devs for finding workaround for this problem!) - list(APPEND CMAKE_PREFIX_PATH /opt/rocm/hip /opt/rocm) diff --git a/sci-libs/hipBLASLt/files/hipBLASLt-6.3.0-min-pip-install.patch b/sci-libs/hipBLASLt/files/hipBLASLt-6.3.0-min-pip-install.patch deleted file mode 100644 index d2d9d32..0000000 --- a/sci-libs/hipBLASLt/files/hipBLASLt-6.3.0-min-pip-install.patch +++ /dev/null @@ -1,23 +0,0 @@ -Remove unused libraries and updates from pypi.org ---- a/cmake/virtualenv.cmake -+++ b/cmake/virtualenv.cmake -@@ -24,10 +24,6 @@ endfunction() - - function(virtualenv_install) - virtualenv_create() -- execute_process( -- COMMAND ${VIRTUALENV_BIN_DIR}/${VIRTUALENV_PYTHON_EXENAME} -m pip install --upgrade pip -- COMMAND ${VIRTUALENV_BIN_DIR}/${VIRTUALENV_PYTHON_EXENAME} -m pip install --upgrade setuptools -- ) - message("${VIRTUALENV_BIN_DIR}/${VIRTUALENV_PYTHON_EXENAME} -m pip install ${ARGN}") - execute_process( - RESULT_VARIABLE rc ---- a/tensilelite/requirements.txt -+++ b/tensilelite/requirements.txt -@@ -3,6 +3,3 @@ pyyaml - msgpack - joblib>=1.4.0; python_version >= '3.8' - joblib>=1.1.1; python_version < '3.8' --simplejson --ujson --orjson diff --git a/sci-libs/hipBLASLt/files/hipBLASLt-6.3.0-no-arch-extra.patch b/sci-libs/hipBLASLt/files/hipBLASLt-6.3.0-no-arch-extra.patch deleted file mode 100644 index 785ca90..0000000 --- a/sci-libs/hipBLASLt/files/hipBLASLt-6.3.0-no-arch-extra.patch +++ /dev/null @@ -1,16 +0,0 @@ ---- a/library/src/amd_detail/rocblaslt/src/kernels/CompileSourceKernel.cmake -+++ b/library/src/amd_detail/rocblaslt/src/kernels/CompileSourceKernel.cmake -@@ -25,6 +25,13 @@ function(CompileSourceKernel source archs buildIdKind outputFolder) - message("Setup source kernel targets") - string(REGEX MATCHALL "gfx[a-z0-9]+" archs "${archs}") - list(REMOVE_DUPLICATES archs) -+ -+ list(LENGTH archs archs_length) -+ if(archs_length EQUAL 0) -+ message("No architectures specified.") -+ return() -+ endif() -+ - list(JOIN archs "," archs) - message("archs for source kernel compilation: ${archs}") - add_custom_target(MatrixTransformKernels ALL diff --git a/sci-libs/hipBLASLt/hipBLASLt-6.1.1-r1.ebuild b/sci-libs/hipBLASLt/hipBLASLt-6.1.1-r1.ebuild deleted file mode 100644 index 4f50527..0000000 --- a/sci-libs/hipBLASLt/hipBLASLt-6.1.1-r1.ebuild +++ /dev/null @@ -1,123 +0,0 @@ -# Copyright 1999-2025 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -ROCM_SKIP_GLOBALS=1 -PYTHON_COMPAT=( python3_{10..13} ) - -# gfx941 and gfx942 assembly uses directives of LLVM >= 18.1.0 -LLVM_COMPAT=( 20 ) - -inherit cmake python-any-r1 llvm-r1 rocm -DESCRIPTION="General matrix-matrix operations library for AMD Instinct accelerators" -HOMEPAGE="https://github.com/ROCm/hipBLASLt" -SRC_URI="https://github.com/ROCm/hipBLASLt/archive/rocm-${PV}.tar.gz -> ${P}.tar.gz" -S="${WORKDIR}/hipBLASLt-rocm-${PV}" - -LICENSE="MIT" -SLOT="0/$(ver_cut 1-2)" -KEYWORDS="~amd64" - -SUPPORTED_GPUS=( gfx90a gfx940 gfx941 gfx942 ) -IUSE_TARGETS=( "${SUPPORTED_GPUS[@]/#/amdgpu_targets_}" ) -IUSE="${IUSE_TARGETS[@]/#/+} test" -RESTRICT="!test? ( test )" - -RDEPEND=" - dev-util/hip:${SLOT} - dev-cpp/msgpack-cxx - sci-libs/hipBLAS:${SLOT} -" - -DEPEND="${RDEPEND}" -BDEPEND=" - dev-build/rocm-cmake - $(python_gen_any_dep ' - dev-python/msgpack[${PYTHON_USEDEP}] - dev-python/pyyaml[${PYTHON_USEDEP}] - dev-python/joblib[${PYTHON_USEDEP}] - ') - $(llvm_gen_dep 'llvm-core/clang:${LLVM_SLOT}') - test? ( - dev-cpp/gtest - ) -" - -PATCHES=( - "${FILESDIR}"/${PN}-6.1.1-fix-msgpack-dependency.patch - "${FILESDIR}"/${PN}-6.1.1-no-arch.patch - "${FILESDIR}"/${PN}-6.1.1-no-git.patch - "${FILESDIR}"/${PN}-6.1.1-clang-19.patch - "${FILESDIR}"/${PN}-6.1.1-fix-libcxx.patch -) - -python_check_deps() { - python_has_version "dev-python/msgpack[${PYTHON_USEDEP}]" && - python_has_version "dev-python/pyyaml[${PYTHON_USEDEP}]" && - python_has_version "dev-python/joblib[${PYTHON_USEDEP}]" -} - -pkg_setup() { - python-any-r1_pkg_setup -} - -pkg_pretend() { - if [[ "${AMDGPU_TARGETS[@]}" = "" ]]; then - ewarn "hipBLASLt supports only few GPUs: ${SUPPORTED_GPUS[@]}," - ewarn "but none of them were defined in AMDGPU_TARGETS USE_EXPAND variable." - ewarn - ewarn "Library will continue to be built in \"dummy\" mode," - ewarn "serving as a non-functional placeholder for end-user applications." - fi -} - -src_prepare() { - sed -e "s,\@LLVM_PATH\@,$(get_llvm_prefix),g" \ - "${FILESDIR}"/${PN}-6.1.1-gentoopath.patch > "${S}"/gentoopath.patch || die - eapply "${S}"/gentoopath.patch - - local shebangs=($(grep -rl "#!/usr/bin/env python3" tensilelite/Tensile || die)) - python_fix_shebang -q ${shebangs[*]} - - cmake_src_prepare -} - -src_configure() { - rocm_use_hipcc - - local targets="$(get_amdgpu_flags)" - local build_with_tensile=$([ "${AMDGPU_TARGETS[@]}" = "" ] && echo OFF || echo ON ) - - local mycmakeargs=( - -DROCM_SYMLINK_LIBS=OFF - -DBUILD_WITH_TENSILE="${build_with_tensile}" - -DAMDGPU_TARGETS="${targets}" - -DBUILD_CLIENTS_TESTS=$(usex test ON OFF) - ) - - use test && mycmakeargs+=( -DBUILD_FORTRAN_CLIENTS=ON ) - - cmake_src_configure -} - -src_compile() { - local -x ROCM_PATH="${EPREFIX}/usr" - # set PYTHONPATH to load Tensile from virtualenv, not the system-wide one - local -x PYTHONPATH="${S}_build/virtualenv/lib/${EPYTHON}/site-packages" - local -x TENSILE_ROCM_ASSEMBLER_PATH="$(get_llvm_prefix)/bin/clang++" - cmake_src_compile -} - -src_install() { - cmake_src_install - - # Stop llvm-strip from removing .strtab section from *.hsaco files, - # otherwise rocclr/elf/elf.cpp complains with "failed: null sections(STRTAB)" and crashes - dostrip -x /usr/$(get_libdir)/hipblaslt/library/ -} - -src_test() { - check_amdgpu - cmake_src_test -j1 -} diff --git a/sci-libs/hipBLASLt/hipBLASLt-6.3.1.ebuild b/sci-libs/hipBLASLt/hipBLASLt-6.3.1.ebuild deleted file mode 100644 index 2636df6..0000000 --- a/sci-libs/hipBLASLt/hipBLASLt-6.3.1.ebuild +++ /dev/null @@ -1,140 +0,0 @@ -# Copyright 1999-2025 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -ROCM_SKIP_GLOBALS=1 -PYTHON_COMPAT=( python3_{10..13} ) - -LLVM_COMPAT=( 20 ) - -inherit cmake flag-o-matic llvm-r1 python-any-r1 rocm -DESCRIPTION="General matrix-matrix operations library for AMD Instinct accelerators" -HOMEPAGE="https://github.com/ROCm/hipBLASLt" -SRC_URI="https://github.com/ROCm/hipBLASLt/archive/rocm-${PV}.tar.gz -> ${P}.tar.gz" -S="${WORKDIR}/hipBLASLt-rocm-${PV}" - -LICENSE="MIT" -SLOT="0/$(ver_cut 1-2)" -KEYWORDS="~amd64" - -SUPPORTED_GPUS=( gfx908 gfx90a gfx940 gfx941 gfx942 gfx1100 gfx1101 ) -IUSE_TARGETS=( "${SUPPORTED_GPUS[@]/#/amdgpu_targets_}" ) -IUSE="${IUSE_TARGETS[@]/#/+} test benchmark" -RESTRICT="!test? ( test )" - -RDEPEND=" - dev-util/hip:${SLOT} - dev-cpp/msgpack-cxx -" - -DEPEND="${RDEPEND}" -BDEPEND=" - dev-build/rocm-cmake - sci-libs/hipBLAS-common:${SLOT} - $(python_gen_any_dep ' - dev-python/msgpack[${PYTHON_USEDEP}] - dev-python/pyyaml[${PYTHON_USEDEP}] - dev-python/joblib[${PYTHON_USEDEP}] - ') - $(llvm_gen_dep 'llvm-core/clang:${LLVM_SLOT}') - test? ( - dev-cpp/gtest - virtual/blas - dev-util/rocm-smi:${SLOT} - ) - benchmark? ( - virtual/blas - llvm-runtimes/openmp - ) -" - -PATCHES=( - "${FILESDIR}"/${PN}-6.1.1-fix-msgpack-dependency.patch - "${FILESDIR}"/${PN}-6.1.1-no-arch.patch - "${FILESDIR}"/${PN}-6.1.1-no-git.patch - "${FILESDIR}"/${PN}-6.1.1-clang-19.patch - "${FILESDIR}"/${PN}-6.1.1-fix-libcxx.patch - "${FILESDIR}"/${PN}-6.3.0-no-arch-extra.patch - "${FILESDIR}"/${PN}-6.3.0-min-pip-install.patch -) - -python_check_deps() { - python_has_version "dev-python/msgpack[${PYTHON_USEDEP}]" && - python_has_version "dev-python/pyyaml[${PYTHON_USEDEP}]" && - python_has_version "dev-python/joblib[${PYTHON_USEDEP}]" -} - -pkg_setup() { - python-any-r1_pkg_setup -} - -pkg_pretend() { - if [[ "${AMDGPU_TARGETS[@]}" = "" ]]; then - ewarn "hipBLASLt supports only few GPUs: ${SUPPORTED_GPUS[@]}," - ewarn "but none of them were defined in AMDGPU_TARGETS USE_EXPAND variable." - ewarn - ewarn "Library will continue to be built in \"dummy\" mode," - ewarn "serving as a non-functional placeholder for end-user applications." - fi -} - -src_prepare() { - sed -e "s,\@LLVM_PATH\@,$(get_llvm_prefix),g" \ - "${FILESDIR}"/${PN}-6.1.1-gentoopath.patch > "${S}"/gentoopath.patch || die - eapply "${S}"/gentoopath.patch - - local shebangs=($(grep -rl "#!/usr/bin/env python3" tensilelite/Tensile || die)) - python_fix_shebang -q ${shebangs[*]} - - sed -e "s:\${rocm_path}/bin/amdclang++:$(get_llvm_prefix)/bin/clang++:" \ - -i library/src/amd_detail/rocblaslt/src/kernels/compile_code_object.sh || die - - cmake_src_prepare -} - -src_configure() { - rocm_use_hipcc - - # too many warnings - append-cxxflags -Wno-explicit-specialization-storage-class - - local targets="$(get_amdgpu_flags)" - local build_with_tensile=$([ "${AMDGPU_TARGETS[@]}" = "" ] && echo OFF || echo ON ) - - local mycmakeargs=( - -DROCM_SYMLINK_LIBS=OFF - -DBUILD_WITH_TENSILE="${build_with_tensile}" - -DAMDGPU_TARGETS="${targets}" - -DBUILD_CLIENTS_TESTS=$(usex test ON OFF) - -DBUILD_CLIENTS_BENCHMARKS="$(usex benchmark ON OFF)" - -Wno-dev - ) - - cmake_src_configure -} - -src_compile() { - local -x ROCM_PATH="${EPREFIX}/usr" - # set PYTHONPATH to load Tensile from virtualenv, not the system-wide one - local -x PYTHONPATH="${S}_build/virtualenv/lib/${EPYTHON}/site-packages" - local -x TENSILE_ROCM_ASSEMBLER_PATH="$(get_llvm_prefix)/bin/clang++" - # TensileCreateLibrary reads CMAKE_CXX_COMPILER again - local -x CMAKE_CXX_COMPILER="$(get_llvm_prefix)/bin/clang++" - cmake_src_compile -} - -src_install() { - cmake_src_install - - # Stop llvm-strip from removing .strtab section from *.hsaco files, - # otherwise rocclr/elf/elf.cpp complains with "failed: null sections(STRTAB)" and crashes - dostrip -x /usr/$(get_libdir)/hipblaslt/library/ -} - -src_test() { - check_amdgpu - - # Expected time for 7900 XTX: 340s (full) or 5s with GTEST_FILTER='*quick*' - cmake_src_test -} diff --git a/sci-libs/hipBLASLt/hipBLASLt-6.3.2.ebuild b/sci-libs/hipBLASLt/hipBLASLt-6.3.2.ebuild deleted file mode 100644 index 2636df6..0000000 --- a/sci-libs/hipBLASLt/hipBLASLt-6.3.2.ebuild +++ /dev/null @@ -1,140 +0,0 @@ -# Copyright 1999-2025 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -ROCM_SKIP_GLOBALS=1 -PYTHON_COMPAT=( python3_{10..13} ) - -LLVM_COMPAT=( 20 ) - -inherit cmake flag-o-matic llvm-r1 python-any-r1 rocm -DESCRIPTION="General matrix-matrix operations library for AMD Instinct accelerators" -HOMEPAGE="https://github.com/ROCm/hipBLASLt" -SRC_URI="https://github.com/ROCm/hipBLASLt/archive/rocm-${PV}.tar.gz -> ${P}.tar.gz" -S="${WORKDIR}/hipBLASLt-rocm-${PV}" - -LICENSE="MIT" -SLOT="0/$(ver_cut 1-2)" -KEYWORDS="~amd64" - -SUPPORTED_GPUS=( gfx908 gfx90a gfx940 gfx941 gfx942 gfx1100 gfx1101 ) -IUSE_TARGETS=( "${SUPPORTED_GPUS[@]/#/amdgpu_targets_}" ) -IUSE="${IUSE_TARGETS[@]/#/+} test benchmark" -RESTRICT="!test? ( test )" - -RDEPEND=" - dev-util/hip:${SLOT} - dev-cpp/msgpack-cxx -" - -DEPEND="${RDEPEND}" -BDEPEND=" - dev-build/rocm-cmake - sci-libs/hipBLAS-common:${SLOT} - $(python_gen_any_dep ' - dev-python/msgpack[${PYTHON_USEDEP}] - dev-python/pyyaml[${PYTHON_USEDEP}] - dev-python/joblib[${PYTHON_USEDEP}] - ') - $(llvm_gen_dep 'llvm-core/clang:${LLVM_SLOT}') - test? ( - dev-cpp/gtest - virtual/blas - dev-util/rocm-smi:${SLOT} - ) - benchmark? ( - virtual/blas - llvm-runtimes/openmp - ) -" - -PATCHES=( - "${FILESDIR}"/${PN}-6.1.1-fix-msgpack-dependency.patch - "${FILESDIR}"/${PN}-6.1.1-no-arch.patch - "${FILESDIR}"/${PN}-6.1.1-no-git.patch - "${FILESDIR}"/${PN}-6.1.1-clang-19.patch - "${FILESDIR}"/${PN}-6.1.1-fix-libcxx.patch - "${FILESDIR}"/${PN}-6.3.0-no-arch-extra.patch - "${FILESDIR}"/${PN}-6.3.0-min-pip-install.patch -) - -python_check_deps() { - python_has_version "dev-python/msgpack[${PYTHON_USEDEP}]" && - python_has_version "dev-python/pyyaml[${PYTHON_USEDEP}]" && - python_has_version "dev-python/joblib[${PYTHON_USEDEP}]" -} - -pkg_setup() { - python-any-r1_pkg_setup -} - -pkg_pretend() { - if [[ "${AMDGPU_TARGETS[@]}" = "" ]]; then - ewarn "hipBLASLt supports only few GPUs: ${SUPPORTED_GPUS[@]}," - ewarn "but none of them were defined in AMDGPU_TARGETS USE_EXPAND variable." - ewarn - ewarn "Library will continue to be built in \"dummy\" mode," - ewarn "serving as a non-functional placeholder for end-user applications." - fi -} - -src_prepare() { - sed -e "s,\@LLVM_PATH\@,$(get_llvm_prefix),g" \ - "${FILESDIR}"/${PN}-6.1.1-gentoopath.patch > "${S}"/gentoopath.patch || die - eapply "${S}"/gentoopath.patch - - local shebangs=($(grep -rl "#!/usr/bin/env python3" tensilelite/Tensile || die)) - python_fix_shebang -q ${shebangs[*]} - - sed -e "s:\${rocm_path}/bin/amdclang++:$(get_llvm_prefix)/bin/clang++:" \ - -i library/src/amd_detail/rocblaslt/src/kernels/compile_code_object.sh || die - - cmake_src_prepare -} - -src_configure() { - rocm_use_hipcc - - # too many warnings - append-cxxflags -Wno-explicit-specialization-storage-class - - local targets="$(get_amdgpu_flags)" - local build_with_tensile=$([ "${AMDGPU_TARGETS[@]}" = "" ] && echo OFF || echo ON ) - - local mycmakeargs=( - -DROCM_SYMLINK_LIBS=OFF - -DBUILD_WITH_TENSILE="${build_with_tensile}" - -DAMDGPU_TARGETS="${targets}" - -DBUILD_CLIENTS_TESTS=$(usex test ON OFF) - -DBUILD_CLIENTS_BENCHMARKS="$(usex benchmark ON OFF)" - -Wno-dev - ) - - cmake_src_configure -} - -src_compile() { - local -x ROCM_PATH="${EPREFIX}/usr" - # set PYTHONPATH to load Tensile from virtualenv, not the system-wide one - local -x PYTHONPATH="${S}_build/virtualenv/lib/${EPYTHON}/site-packages" - local -x TENSILE_ROCM_ASSEMBLER_PATH="$(get_llvm_prefix)/bin/clang++" - # TensileCreateLibrary reads CMAKE_CXX_COMPILER again - local -x CMAKE_CXX_COMPILER="$(get_llvm_prefix)/bin/clang++" - cmake_src_compile -} - -src_install() { - cmake_src_install - - # Stop llvm-strip from removing .strtab section from *.hsaco files, - # otherwise rocclr/elf/elf.cpp complains with "failed: null sections(STRTAB)" and crashes - dostrip -x /usr/$(get_libdir)/hipblaslt/library/ -} - -src_test() { - check_amdgpu - - # Expected time for 7900 XTX: 340s (full) or 5s with GTEST_FILTER='*quick*' - cmake_src_test -} diff --git a/sci-libs/hipBLASLt/hipBLASLt-6.3.3.ebuild b/sci-libs/hipBLASLt/hipBLASLt-6.3.3.ebuild deleted file mode 100644 index 2636df6..0000000 --- a/sci-libs/hipBLASLt/hipBLASLt-6.3.3.ebuild +++ /dev/null @@ -1,140 +0,0 @@ -# Copyright 1999-2025 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -ROCM_SKIP_GLOBALS=1 -PYTHON_COMPAT=( python3_{10..13} ) - -LLVM_COMPAT=( 20 ) - -inherit cmake flag-o-matic llvm-r1 python-any-r1 rocm -DESCRIPTION="General matrix-matrix operations library for AMD Instinct accelerators" -HOMEPAGE="https://github.com/ROCm/hipBLASLt" -SRC_URI="https://github.com/ROCm/hipBLASLt/archive/rocm-${PV}.tar.gz -> ${P}.tar.gz" -S="${WORKDIR}/hipBLASLt-rocm-${PV}" - -LICENSE="MIT" -SLOT="0/$(ver_cut 1-2)" -KEYWORDS="~amd64" - -SUPPORTED_GPUS=( gfx908 gfx90a gfx940 gfx941 gfx942 gfx1100 gfx1101 ) -IUSE_TARGETS=( "${SUPPORTED_GPUS[@]/#/amdgpu_targets_}" ) -IUSE="${IUSE_TARGETS[@]/#/+} test benchmark" -RESTRICT="!test? ( test )" - -RDEPEND=" - dev-util/hip:${SLOT} - dev-cpp/msgpack-cxx -" - -DEPEND="${RDEPEND}" -BDEPEND=" - dev-build/rocm-cmake - sci-libs/hipBLAS-common:${SLOT} - $(python_gen_any_dep ' - dev-python/msgpack[${PYTHON_USEDEP}] - dev-python/pyyaml[${PYTHON_USEDEP}] - dev-python/joblib[${PYTHON_USEDEP}] - ') - $(llvm_gen_dep 'llvm-core/clang:${LLVM_SLOT}') - test? ( - dev-cpp/gtest - virtual/blas - dev-util/rocm-smi:${SLOT} - ) - benchmark? ( - virtual/blas - llvm-runtimes/openmp - ) -" - -PATCHES=( - "${FILESDIR}"/${PN}-6.1.1-fix-msgpack-dependency.patch - "${FILESDIR}"/${PN}-6.1.1-no-arch.patch - "${FILESDIR}"/${PN}-6.1.1-no-git.patch - "${FILESDIR}"/${PN}-6.1.1-clang-19.patch - "${FILESDIR}"/${PN}-6.1.1-fix-libcxx.patch - "${FILESDIR}"/${PN}-6.3.0-no-arch-extra.patch - "${FILESDIR}"/${PN}-6.3.0-min-pip-install.patch -) - -python_check_deps() { - python_has_version "dev-python/msgpack[${PYTHON_USEDEP}]" && - python_has_version "dev-python/pyyaml[${PYTHON_USEDEP}]" && - python_has_version "dev-python/joblib[${PYTHON_USEDEP}]" -} - -pkg_setup() { - python-any-r1_pkg_setup -} - -pkg_pretend() { - if [[ "${AMDGPU_TARGETS[@]}" = "" ]]; then - ewarn "hipBLASLt supports only few GPUs: ${SUPPORTED_GPUS[@]}," - ewarn "but none of them were defined in AMDGPU_TARGETS USE_EXPAND variable." - ewarn - ewarn "Library will continue to be built in \"dummy\" mode," - ewarn "serving as a non-functional placeholder for end-user applications." - fi -} - -src_prepare() { - sed -e "s,\@LLVM_PATH\@,$(get_llvm_prefix),g" \ - "${FILESDIR}"/${PN}-6.1.1-gentoopath.patch > "${S}"/gentoopath.patch || die - eapply "${S}"/gentoopath.patch - - local shebangs=($(grep -rl "#!/usr/bin/env python3" tensilelite/Tensile || die)) - python_fix_shebang -q ${shebangs[*]} - - sed -e "s:\${rocm_path}/bin/amdclang++:$(get_llvm_prefix)/bin/clang++:" \ - -i library/src/amd_detail/rocblaslt/src/kernels/compile_code_object.sh || die - - cmake_src_prepare -} - -src_configure() { - rocm_use_hipcc - - # too many warnings - append-cxxflags -Wno-explicit-specialization-storage-class - - local targets="$(get_amdgpu_flags)" - local build_with_tensile=$([ "${AMDGPU_TARGETS[@]}" = "" ] && echo OFF || echo ON ) - - local mycmakeargs=( - -DROCM_SYMLINK_LIBS=OFF - -DBUILD_WITH_TENSILE="${build_with_tensile}" - -DAMDGPU_TARGETS="${targets}" - -DBUILD_CLIENTS_TESTS=$(usex test ON OFF) - -DBUILD_CLIENTS_BENCHMARKS="$(usex benchmark ON OFF)" - -Wno-dev - ) - - cmake_src_configure -} - -src_compile() { - local -x ROCM_PATH="${EPREFIX}/usr" - # set PYTHONPATH to load Tensile from virtualenv, not the system-wide one - local -x PYTHONPATH="${S}_build/virtualenv/lib/${EPYTHON}/site-packages" - local -x TENSILE_ROCM_ASSEMBLER_PATH="$(get_llvm_prefix)/bin/clang++" - # TensileCreateLibrary reads CMAKE_CXX_COMPILER again - local -x CMAKE_CXX_COMPILER="$(get_llvm_prefix)/bin/clang++" - cmake_src_compile -} - -src_install() { - cmake_src_install - - # Stop llvm-strip from removing .strtab section from *.hsaco files, - # otherwise rocclr/elf/elf.cpp complains with "failed: null sections(STRTAB)" and crashes - dostrip -x /usr/$(get_libdir)/hipblaslt/library/ -} - -src_test() { - check_amdgpu - - # Expected time for 7900 XTX: 340s (full) or 5s with GTEST_FILTER='*quick*' - cmake_src_test -} diff --git a/sci-libs/hipBLASLt/metadata.xml b/sci-libs/hipBLASLt/metadata.xml deleted file mode 100644 index 2be6f3b..0000000 --- a/sci-libs/hipBLASLt/metadata.xml +++ /dev/null @@ -1,17 +0,0 @@ - - - - - sci@gentoo.org - - - lockalsash@gmail.com - Sv. Lockal - - - ROCm/hipBLASLt - - - Build and install rocblas-bench. - - diff --git a/sci-libs/miopen/Manifest b/sci-libs/miopen/Manifest deleted file mode 100644 index 94c9d57..0000000 --- a/sci-libs/miopen/Manifest +++ /dev/null @@ -1,5 +0,0 @@ -DIST MIOpen-5.7.1.tar.gz 100751593 BLAKE2B c5f847fe4374ab22737c281a65401125012328412d584fc09244b431ea6265d6d5028429115ee15fa8b04cbe0edd020e4e7ac8deb22561183ed76cb8c3d4d9d4 SHA512 3354b3b154f29a6337403abc5a71ec47c0b2558320c5a1b0cbfbbdb370c4fada2db12d4a19a312b5e30ca2e2302ee50ece3390603e84d132b2212a168e9523fa -DIST MIOpen-6.1.1.tar.gz 101935496 BLAKE2B 5aadaa5eefa1b22dedfe87deb36f8acdbe57962cac8b7b6b20bc76f136ef29f0441e48112010280c2e674a1ae9fd202ca3e07be47cf4a4bc797234d6dc618be5 SHA512 b8860583919bf2f3e0da7ace30fdb0595ab45b85a367be3737e0b15a22a5565b8d6660c652ee070f21c36ac7d17ef3ba8e2eda7ed89bd6a0c65a4df799626d1a -DIST MIOpen-6.3.2.tar.gz 104156821 BLAKE2B e7611ea2d37d3c72cde2e6be153271dacd7150083ec63ec2357e1c808dc9e79c1928f06fd4e70712989c5ab13a604a91d3fba1819723da12b49f6a447a561f3c SHA512 bf219459244c8f0962c54a8e94273aeeafe4b9b093c72ac962fa9d373526c9dc406c46d0464ec6b20d52b1e6c01e2cf2544267b573a0e774c7afd4ba9adc9fb9 -DIST MIOpen-6.3.3.tar.gz 104157223 BLAKE2B 10b793594ed47397dd695ada4da1ba93935c78512c27291449df20fc7760aad2b224eaa50d3526453e7b4451828769937c66069a11f6f6fb6a636a16c6f90957 SHA512 9749d04d9a6b92ba19b3534966feb4ed21eaca3fd4a20aaec050bcf725091a8706044136f836ed20e08e7ec3b4074e1f99a08b51b4cbe449aedb7f86eb5cc87f -DIST gtest-1.11.0_p20210611.tar.gz 887296 BLAKE2B 8f29b7028a6dd8190a113cd93398705b23b61d88bee38beaf9dcc0dfc8a463aed7fcd3719f6f1b131d4363aa57231629aaeffa108f6558efb58416cfface6d6e SHA512 cf9e7f3fd3e31ce6677eac355fb8bfe19c5b56a8ec3af8b9417d0904cdf5da92f99f7411a08131cc9fa4fc7d38e6a71fcfac993648e47b269a74a27de7607f7a diff --git a/sci-libs/miopen/files/miopen-4.2.0-disable-no-inline-boost.patch b/sci-libs/miopen/files/miopen-4.2.0-disable-no-inline-boost.patch deleted file mode 100644 index 769217a..0000000 --- a/sci-libs/miopen/files/miopen-4.2.0-disable-no-inline-boost.patch +++ /dev/null @@ -1,14 +0,0 @@ -This let MIOpen compatible with >boost-1.72, for example 1.76 - -Suggested by: Michael Boone - ---- a/CMakeLists.txt 2021-07-23 01:26:15.377754243 -0700 -+++ b/CMakeLists.txt 2021-07-23 01:29:23.925685190 -0700 -@@ -216,6 +216,7 @@ - message(STATUS "Hip compiler flags: ${HIP_COMPILER_FLAGS}") - - add_definitions("-DHIP_COMPILER_FLAGS=${HIP_COMPILER_FLAGS}") -+add_definitions("-DBOOST_CONTAINER_DISABLE_NOINLINE") - - - # HIP diff --git a/sci-libs/miopen/files/miopen-4.2.0-gcc11-numeric_limits.patch b/sci-libs/miopen/files/miopen-4.2.0-gcc11-numeric_limits.patch deleted file mode 100644 index 73997ce..0000000 --- a/sci-libs/miopen/files/miopen-4.2.0-gcc11-numeric_limits.patch +++ /dev/null @@ -1,14 +0,0 @@ -See: https://stackoverflow.com/questions/4798936/numeric-limits-was-not-declared-in-this-scope-no-matching-function-for-call-t - -https://www.gnu.org/software/gcc/gcc-11/porting_to.html#header-dep-changes - ---- MIOpen-rocm-4.2.0/src/include/miopen/float_equal.hpp -+++ MIOpen-rocm-4.2.0/src/include/miopen/float_equal.hpp -@@ -29,6 +29,7 @@ - #include - #include - #include -+#include - #ifdef _MSC_VER - #include - #endif diff --git a/sci-libs/miopen/files/miopen-4.3.0-enable-test.patch b/sci-libs/miopen/files/miopen-4.3.0-enable-test.patch deleted file mode 100644 index 68d2f14..0000000 --- a/sci-libs/miopen/files/miopen-4.3.0-enable-test.patch +++ /dev/null @@ -1,31 +0,0 @@ -This create option BUILD_TESTS for miopen, like other rocm math libs, and - -testing executables are always built if test enabled. The original behaviour, is - -always add test/CMakeLists.txt without adding test exes as targets, and compile them - -during test. ---- orig/CMakeLists.txt -+++ MIOpen-rocm-4.3.0/CMakeLists.txt -@@ -590,6 +590,9 @@ add_subdirectory(src) - if(MIOPEN_BUILD_DRIVER) - add_subdirectory(driver) - endif() --add_subdirectory(test) -+option(BUILD_TESTS "Build binaries for tests" OFF) -+if(BUILD_TESTS) -+ add_subdirectory(test) -+endif() - add_subdirectory(speedtests) - add_subdirectory(utils) ---- orig/test/CMakeLists.txt -+++ MIOpen-rocm-4.3.0/test/CMakeLists.txt -@@ -142,7 +142,7 @@ function(add_test_command NAME EXE) - endfunction() - - function(add_test_executable TEST_NAME) -- add_executable (${TEST_NAME} EXCLUDE_FROM_ALL ${ARGN}) -+ add_executable (${TEST_NAME} ${ARGN}) - clang_tidy_check(${TEST_NAME}) - target_link_libraries(${TEST_NAME} ${CMAKE_THREAD_LIBS_INIT}) - # Cmake does not add flags correctly for gcc diff --git a/sci-libs/miopen/files/miopen-4.3.0-fix-interface-include-in-HIP_COMPILER_FLAGS.patch b/sci-libs/miopen/files/miopen-4.3.0-fix-interface-include-in-HIP_COMPILER_FLAGS.patch deleted file mode 100644 index 5c2762a..0000000 --- a/sci-libs/miopen/files/miopen-4.3.0-fix-interface-include-in-HIP_COMPILER_FLAGS.patch +++ /dev/null @@ -1,17 +0,0 @@ -The interface inlude directories of hip::device should be included using -I, not -isystem; - -otherwise compilation at MIOpen runtime will fail due to cstdlib cannot find or similar errors. - -Suggested-by: Yuyi Wang -Signed-off-by: Yiyang Wu ---- orig/cmake/TargetFlags.cmake -+++ MIOpen-rocm-4.3.0/cmake/TargetFlags.cmake -@@ -41,7 +41,7 @@ function(target_flags FLAGS TARGET) - set(_flags) - append_flags(_flags ${TARGET} "INTERFACE_COMPILE_OPTIONS" "") - append_flags(_flags ${TARGET} "INTERFACE_COMPILE_DEFINITIONS" "-D") -- append_flags(_flags ${TARGET} "INTERFACE_INCLUDE_DIRECTORIES" "-isystem ") -+ append_flags(_flags ${TARGET} "INTERFACE_INCLUDE_DIRECTORIES" "-I ") - append_flags(_flags ${TARGET} "INTERFACE_LINK_DIRECTORIES" "-L ") - append_flags(_flags ${TARGET} "INTERFACE_LINK_OPTIONS" "") - append_link_flags(_flags ${TARGET} "INTERFACE_LINK_LIBRARIES" "") diff --git a/sci-libs/miopen/files/miopen-5.1.3-include-array.patch b/sci-libs/miopen/files/miopen-5.1.3-include-array.patch deleted file mode 100644 index fc6a36d..0000000 --- a/sci-libs/miopen/files/miopen-5.1.3-include-array.patch +++ /dev/null @@ -1,12 +0,0 @@ -This fixes compile error upon gcc-12 libstdc++ -index 1cfb2a72c..0f4feb406 100644 ---- a/test/sequences.cpp -+++ b/test/sequences.cpp -@@ -25,6 +25,7 @@ - *******************************************************************************/ - #include "test.hpp" - #include -+#include - - namespace miopen { - namespace seq { diff --git a/sci-libs/miopen/files/miopen-5.1.3-no-strip.patch b/sci-libs/miopen/files/miopen-5.1.3-no-strip.patch deleted file mode 100644 index 0d1d429..0000000 --- a/sci-libs/miopen/files/miopen-5.1.3-no-strip.patch +++ /dev/null @@ -1,17 +0,0 @@ -Don't strip for release. Let portage handle stripping. -Index: MIOpen-rocm-5.1.3/CMakeLists.txt -=================================================================== ---- MIOpen-rocm-5.1.3.orig/CMakeLists.txt -+++ MIOpen-rocm-5.1.3/CMakeLists.txt -@@ -78,11 +78,6 @@ option( BUILD_DEV "Build for development - option(MIOPEN_ENABLE_FIN "Enable the fin driver for MIOpen" OFF) - - --# Strip symbols for release --if(NOT WIN32 AND NOT APPLE) -- set(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} -s") -- set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -s") --endif() - - rocm_setup_version(VERSION 2.16.0) - diff --git a/sci-libs/miopen/files/miopen-5.7.1-fix-miopendriver-gemm.patch b/sci-libs/miopen/files/miopen-5.7.1-fix-miopendriver-gemm.patch deleted file mode 100644 index 859667f..0000000 --- a/sci-libs/miopen/files/miopen-5.7.1-fix-miopendriver-gemm.patch +++ /dev/null @@ -1,74 +0,0 @@ -Fix uninitialized variable in MIOpenDriver gemm and restore gemmfp16 for testing -Upstream bug: https://github.com/ROCmSoftwarePlatform/MIOpen/issues/2505 ---- a/driver/driver.hpp -+++ b/driver/driver.hpp -@@ -141,7 +141,7 @@ inline void PadBufferSize(size_t& sz, int datatype_sz) - printf("Usage: ./driver *base_arg* *other_args*\n"); - printf("Supported Base Arguments: conv[fp16|int8|bfp16], CBAInfer[fp16], " - "pool[fp16], lrn[fp16], " -- "activ[fp16], softmax[fp16], bnorm[fp16], rnn[fp16], gemm, ctc, dropout[fp16], " -+ "activ[fp16], softmax[fp16], bnorm[fp16], rnn[fp16], gemm[fp16], ctc, dropout[fp16], " - "tensorop[fp16], reduce[fp16,fp64]\n"); - exit(0); // NOLINT (concurrency-mt-unsafe) - } -@@ -160,7 +160,7 @@ inline std::string ParseBaseArg(int argc, char* argv[]) - arg != "CBAInfer" && arg != "CBAInferfp16" && arg != "pool" && arg != "poolfp16" && - arg != "lrn" && arg != "lrnfp16" && arg != "activ" && arg != "activfp16" && - arg != "softmax" && arg != "softmaxfp16" && arg != "bnorm" && arg != "bnormfp16" && -- arg != "rnn" && arg != "rnnfp16" && arg != "gemm" /*&& arg != "gemmfp16"*/ && arg != "ctc" && -+ arg != "rnn" && arg != "rnnfp16" && arg != "gemm" && arg != "gemmfp16" && arg != "ctc" && - arg != "dropout" && arg != "dropoutfp16" && arg != "tensorop" && arg != "tensoropfp16" && - arg != "reduce" && arg != "reducefp16" && arg != "reducefp64" && arg != "--version") - { ---- a/driver/gemm_driver.hpp -+++ b/driver/gemm_driver.hpp -@@ -207,6 +207,19 @@ int GemmDriver::GetandSetData() - gemm_desc.strideB = gemm_desc.k * gemm_desc.n; - gemm_desc.strideC = gemm_desc.m * gemm_desc.n; - -+ if constexpr (std::is_same_v) -+ { -+ gemm_desc.dataType = miopenFloat; -+ } -+ else if constexpr (std::is_same_v) -+ { -+ gemm_desc.dataType = miopenHalf; -+ } -+ else -+ { -+ static_assert(!"unsupported type"); -+ } -+ - return (0); - } - -@@ -230,9 +243,9 @@ int GemmDriver::AllocateBuffersAndCopy() - a = std::vector(a_sz); - b = std::vector(b_sz); - #if GEMM_DRIVER_DEBUG -- c = std::vector(c_sz, 1.); -+ c = std::vector(c_sz, static_cast(1.)); - #else -- c = std::vector(c_sz, 0.); -+ c = std::vector(c_sz, static_cast(0.)); - #endif - chost = c; - ---- a/driver/main.cpp -+++ b/driver/main.cpp -@@ -125,11 +125,10 @@ int main(int argc, char* argv[]) - { - drv = new GemmDriver(); - } --// TODO half is not supported in gemm --// else if(base_arg == "gemmfp16") --// { --// drv = new GemmDriver(); --// } -+ else if(base_arg == "gemmfp16") -+ { -+ drv = new GemmDriver(); -+ } - #endif - else if(base_arg == "bnorm") - { diff --git a/sci-libs/miopen/files/miopen-6.1.1-build-all-tests.patch b/sci-libs/miopen/files/miopen-6.1.1-build-all-tests.patch deleted file mode 100644 index 49ec1cc..0000000 --- a/sci-libs/miopen/files/miopen-6.1.1-build-all-tests.patch +++ /dev/null @@ -1,13 +0,0 @@ -Normally, MIOpen compiles tests during test phase instead of "compile". -This patch allows to build testing executables during compile phase. ---- a/test/CMakeLists.txt -+++ b/test/CMakeLists.txt -@@ -330,7 +330,7 @@ endfunction() - separate_arguments(MIOPEN_TEST_FLAGS_ARGS NATIVE_COMMAND ${MIOPEN_TEST_FLAGS}) - - function(add_test_executable TEST_NAME) -- add_executable (${TEST_NAME} EXCLUDE_FROM_ALL ${ARGN}) -+ add_executable (${TEST_NAME} ${ARGN}) - if(WIN32) - target_compile_definitions(${TEST_NAME} PRIVATE NOMINMAX) - endif() diff --git a/sci-libs/miopen/files/miopen-6.1.1-fix-libcxx.patch b/sci-libs/miopen/files/miopen-6.1.1-fix-libcxx.patch deleted file mode 100644 index 0ce842d..0000000 --- a/sci-libs/miopen/files/miopen-6.1.1-fix-libcxx.patch +++ /dev/null @@ -1,246 +0,0 @@ ---- a/cmake/EnableCompilerWarnings.cmake -+++ b/cmake/EnableCompilerWarnings.cmake -@@ -70,6 +70,7 @@ set(__clang_cxx_compile_options - -Wno-unused-command-line-argument - -Wno-weak-vtables - -Wno-covered-switch-default -+ -Wno-switch-default - -Wno-unused-result - -Wno-unsafe-buffer-usage - -Wno-deprecated-declarations ---- a/src/include/miopen/bfloat16.hpp -+++ b/src/include/miopen/bfloat16.hpp -@@ -28,6 +28,7 @@ - #include - #include - #include -+#include - - class bfloat16 : boost::totally_ordered> - { -@@ -152,7 +153,7 @@ private: - std::uint16_t data_; - }; - --namespace std { -+NAMESPACE_STD_BEGIN - template <> - class numeric_limits - { -@@ -173,5 +174,5 @@ public: - return bfloat16::generate(0x0001); // 0x0.02p-126 - } - }; --} // namespace std -+NAMESPACE_STD_END - #endif ---- /dev/null -+++ b/src/include/miopen/libcxx_compat.hpp -@@ -0,0 +1,44 @@ -+/******************************************************************************* -+ * -+ * MIT License -+ * -+ * Copyright (c) 2024 Advanced Micro Devices, Inc. -+ * -+ * Permission is hereby granted, free of charge, to any person obtaining a copy -+ * of this software and associated documentation files (the "Software"), to deal -+ * in the Software without restriction, including without limitation the rights -+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -+ * copies of the Software, and to permit persons to whom the Software is -+ * furnished to do so, subject to the following conditions: -+ * -+ * The above copyright notice and this permission notice shall be included in all -+ * copies or substantial portions of the Software. -+ * -+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -+ * SOFTWARE. -+ * -+ *******************************************************************************/ -+#ifndef LIBCXX_COMPAT_HPP_ -+#define LIBCXX_COMPAT_HPP_ -+ -+// Definitions for libc++ compatibility -+#ifdef __has_include -+#if __has_include (<__config>) -+#include <__config> -+#endif -+#endif -+ -+#ifdef _LIBCPP_VERSION -+#define NAMESPACE_STD_BEGIN _LIBCPP_BEGIN_NAMESPACE_STD -+#define NAMESPACE_STD_END _LIBCPP_END_NAMESPACE_STD -+#else -+#define NAMESPACE_STD_BEGIN namespace std { -+#define NAMESPACE_STD_END } -+#endif -+ -+#endif ---- a/src/kernels/hip_float8.hpp -+++ b/src/kernels/hip_float8.hpp -@@ -26,6 +26,7 @@ - #pragma once - - #include "miopen_cstdint.hpp" -+#include "libcxx_compat.hpp" - - #ifndef MIOPEN_ENABLE_F8_DEVICE_CODE - #define MIOPEN_ENABLE_F8_DEVICE_CODE 0 -@@ -590,7 +591,7 @@ public: - // from the precompiled header. - #else - // NOLINTBEGIN(cert-dcl58-cpp) --namespace std { -+NAMESPACE_STD_BEGIN - inline bool isfinite(miopen_f8::hip_f8 x) // NOLINT - { - return !(x.is_inf() || x.is_nan()); -@@ -611,12 +612,12 @@ inline bool isnan(miopen_f8::hip_f8 x) // NOLINT - return x.is_nan(); - } - --} // namespace std -+NAMESPACE_STD_END - // NOLINTEND(cert-dcl58-cpp) - #endif - - // NOLINTBEGIN(cert-dcl58-cpp) --namespace std { -+NAMESPACE_STD_BEGIN - - template - class numeric_limits; -@@ -633,7 +634,7 @@ class numeric_limits> - { - }; - --} // namespace std -+NAMESPACE_STD_END - // NOLINTEND(cert-dcl58-cpp) - - template ---- /dev/null -+++ b/src/kernels/libcxx_compat.hpp -@@ -0,0 +1,41 @@ -+/******************************************************************************* -+ * -+ * MIT License -+ * -+ * Copyright (c) 2024 Advanced Micro Devices, Inc. -+ * -+ * Permission is hereby granted, free of charge, to any person obtaining a copy -+ * of this software and associated documentation files (the "Software"), to deal -+ * in the Software without restriction, including without limitation the rights -+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -+ * copies of the Software, and to permit persons to whom the Software is -+ * furnished to do so, subject to the following conditions: -+ * -+ * The above copyright notice and this permission notice shall be included in all -+ * copies or substantial portions of the Software. -+ * -+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -+ * SOFTWARE. -+ * -+ *******************************************************************************/ -+#pragma once -+ -+// Definitions for libc++ compatibility -+#ifdef __has_include -+#if __has_include (<__config>) -+#include <__config> -+#endif -+#endif -+ -+#ifdef _LIBCPP_VERSION -+#define NAMESPACE_STD_BEGIN _LIBCPP_BEGIN_NAMESPACE_STD -+#define NAMESPACE_STD_END _LIBCPP_END_NAMESPACE_STD -+#else -+#define NAMESPACE_STD_BEGIN namespace std { -+#define NAMESPACE_STD_END } -+#endif ---- a/src/kernels/miopen_limits.hpp -+++ b/src/kernels/miopen_limits.hpp -@@ -33,8 +33,9 @@ - - #define MIOPEN_ENABLE_F8_DEVICE_CODE 1 - #include "hip_float8.hpp" -+#include "libcxx_compat.hpp" - --namespace std { -+NAMESPACE_STD_BEGIN - - template - class numeric_limits; -@@ -91,7 +92,7 @@ public: - }; - #endif - --} // namespace std -+NAMESPACE_STD_END - - #else - ---- a/src/kernels/miopen_type_traits.hpp -+++ b/src/kernels/miopen_type_traits.hpp -@@ -26,8 +26,9 @@ - #pragma once - - #ifdef MIOPEN_DONT_USE_HIP_RUNTIME_HEADERS -+#include "libcxx_compat.hpp" - --namespace std { -+NAMESPACE_STD_BEGIN - - template - struct remove_reference -@@ -140,7 +141,7 @@ struct conditional - template - using conditional_t = typename conditional::type; - --} // namespace std -+NAMESPACE_STD_END - #else - - #include // std::remove_reference, std::remove_cv, is_pointer ---- a/src/kernels/miopen_utility.hpp -+++ b/src/kernels/miopen_utility.hpp -@@ -28,8 +28,9 @@ - #ifdef MIOPEN_DONT_USE_HIP_RUNTIME_HEADERS - - #include "miopen_type_traits.hpp" // std::remove_reference -+#include "libcxx_compat.hpp" - --namespace std { -+NAMESPACE_STD_BEGIN - - template - constexpr T&& forward(typename remove_reference::type& t_) noexcept -@@ -43,7 +44,7 @@ constexpr T&& forward(typename remove_reference::type&& t_) noexcept - return static_cast(t_); - } - --} // namespace std -+NAMESPACE_STD_END - - #else - ---- a/src/CMakeLists.txt -+++ b/src/CMakeLists.txt -@@ -481,6 +481,7 @@ if( MIOPEN_BACKEND MATCHES "OpenCL" OR MIOPEN_BACKEND STREQUAL "HIPOC" OR MIOPEN - kernels/gpr_alloc.inc - kernels/hip_atomic.hpp - kernels/hip_f8_impl.hpp -+ kernels/libcxx_compat.hpp - kernels/hip_float8.hpp - kernels/inst_wrappers.inc - kernels/miopen_cstdint.hpp diff --git a/sci-libs/miopen/files/miopen-6.3.0-conditional-ck-components.patch b/sci-libs/miopen/files/miopen-6.3.0-conditional-ck-components.patch deleted file mode 100644 index b4332d5..0000000 --- a/sci-libs/miopen/files/miopen-6.3.0-conditional-ck-components.patch +++ /dev/null @@ -1,46 +0,0 @@ -composable_kernel does not build some functions/targets depending on GPU. -Upstream bug: https://github.com/ROCm/composable_kernel/issues/1646 ---- a/src/CMakeLists.txt -+++ b/src/CMakeLists.txt -@@ -847,10 +847,6 @@ target_include_directories(MIOpen PUBLIC - $ - ) - --if(MIOPEN_USE_COMPOSABLEKERNEL) --set(MIOPEN_CK_LINK_FLAGS composable_kernel::device_other_operations composable_kernel::device_gemm_operations composable_kernel::device_conv_operations composable_kernel::device_reduction_operations composable_kernel::device_mha_operations hip::host) --endif() -- - if(WIN32) - # Refer to https://en.cppreference.com/w/cpp/language/types for details. - target_compile_options(MIOpen PRIVATE $:-U__LP64__>>) ---- a/CMakeLists.txt -+++ b/CMakeLists.txt -@@ -327,7 +327,27 @@ add_compile_definitions($<$:HIP_COMPILER_FLAGS=${HIP_COMPI - # HIP - if( MIOPEN_BACKEND STREQUAL "HIP" OR MIOPEN_BACKEND STREQUAL "HIPOC" OR MIOPEN_BACKEND STREQUAL "HIPNOGPU") - if(MIOPEN_USE_COMPOSABLEKERNEL) -- find_package(composable_kernel 1.0.0 COMPONENTS device_other_operations device_gemm_operations device_conv_operations device_reduction_operations device_mha_operations) -+ set(MIOPEN_CK_LINK_FLAGS hip::host) -+ set(COMPONENTS_LIST device_other_operations device_gemm_operations device_conv_operations device_reduction_operations device_mha_operations) -+ foreach(component IN LISTS COMPONENTS_LIST) -+ find_package(composable_kernel 1.0.0 COMPONENTS ${component} QUIET) -+ if(TARGET composable_kernel::${component}) -+ list(APPEND MIOPEN_CK_LINK_FLAGS "composable_kernel::${component}") -+ else() -+ message(WARNING "CK component '${component}' not found.") -+ endif() -+ endforeach() -+ if(AMDGPU_TARGETS MATCHES "gfx94" OR AMDGPU_TARGETS MATCHES "gfx90a") -+ add_definitions(-DMIOPEN_USE_CK_MHA_OPS=1) -+ else() -+ add_definitions(-DMIOPEN_USE_CK_MHA_OPS=0) -+ endif() -+ if(AMDGPU_TARGETS MATCHES "gfx9") -+ add_definitions(-DMIOPEN_USE_CK_XDL_OPS=1) -+ else() -+ add_definitions(-DMIOPEN_USE_CK_XDL_OPS=0) -+ endif() -+ - endif() - if( MIOPEN_BACKEND STREQUAL "HIPNOGPU") - set(MIOPEN_MODE_NOGPU 1) diff --git a/sci-libs/miopen/files/miopen-6.3.0-isnan-include.patch b/sci-libs/miopen/files/miopen-6.3.0-isnan-include.patch deleted file mode 100644 index c7672e9..0000000 --- a/sci-libs/miopen/files/miopen-6.3.0-isnan-include.patch +++ /dev/null @@ -1,19 +0,0 @@ ---- a/driver/reducecalculation_driver.hpp -+++ b/driver/reducecalculation_driver.hpp -@@ -34,6 +34,7 @@ - #include - #include - #include -+#include - #include - #include - #include -@@ -77,7 +78,7 @@ int32_t mloReduceCalculationForwardRunHost(miopenTensorDescriptor_t inputDesc, - for(size_t i = 0; i < reduce_size; ++i) - { - Tcheck val = static_cast(input[input_idx]); -- if(nanPropagation && isnan(val)) -+ if(nanPropagation && std::isnan(val)) - { - val = 0.0f; - } diff --git a/sci-libs/miopen/metadata.xml b/sci-libs/miopen/metadata.xml deleted file mode 100644 index 07d78dd..0000000 --- a/sci-libs/miopen/metadata.xml +++ /dev/null @@ -1,28 +0,0 @@ - - - - - sci@gentoo.org - - - gentoo@holzke.net - Wilfried Holzke - - - xgreenlandforwyy@gmail.com - Yiyang Wu - - - lockalsash@gmail.com - Sv. Lockal - - - ROCm/MIOpen - - - Use composable-kernel for GEMM-like and reduction-like operators. - Use hipBLASLt for some non-batched and strided batched problems. - Build with rocBLAS support - Build with roctracer support - - diff --git a/sci-libs/miopen/miopen-5.7.1-r1.ebuild b/sci-libs/miopen/miopen-5.7.1-r1.ebuild deleted file mode 100644 index b13e635..0000000 --- a/sci-libs/miopen/miopen-5.7.1-r1.ebuild +++ /dev/null @@ -1,123 +0,0 @@ -# Copyright 1999-2024 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -ROCM_VERSION=${PV} - -inherit cmake flag-o-matic llvm rocm - -GTEST_COMMIT="e2239ee6043f73722e7aa812a459f54a28552929" -GTEST_FILE="gtest-1.11.0_p20210611.tar.gz" - -LLVM_MAX_SLOT=17 - -DESCRIPTION="AMD's Machine Intelligence Library" -HOMEPAGE="https://github.com/ROCmSoftwarePlatform/MIOpen" - -SRC_URI="https://github.com/ROCmSoftwarePlatform/MIOpen/archive/rocm-${PV}.tar.gz -> MIOpen-${PV}.tar.gz - test? ( https://github.com/google/googletest/archive/${GTEST_COMMIT}.tar.gz -> ${GTEST_FILE} )" - -LICENSE="MIT" -KEYWORDS="~amd64" -SLOT="0/$(ver_cut 1-2)" - -IUSE="debug test" -RESTRICT="!test? ( test )" - -RDEPEND=" - dev-util/hip - >=dev-db/sqlite-3.17 - sci-libs/rocBLAS:${SLOT}[${ROCM_USEDEP}] - sci-libs/composable-kernel:${SLOT}[${ROCM_USEDEP}] - >=dev-libs/boost-1.72 - dev-cpp/nlohmann_json - dev-cpp/frugally-deep -" - -DEPEND="${RDEPEND}" - -BDEPEND="dev-libs/half:0/1 - dev-build/rocm-cmake -" - -S="${WORKDIR}/MIOpen-rocm-${PV}" - -PATCHES=( - "${FILESDIR}/${PN}-4.2.0-disable-no-inline-boost.patch" - "${FILESDIR}/${PN}-4.2.0-gcc11-numeric_limits.patch" - "${FILESDIR}/${PN}-4.3.0-fix-interface-include-in-HIP_COMPILER_FLAGS.patch" - "${FILESDIR}/${PN}-4.3.0-enable-test.patch" - "${FILESDIR}/${PN}-5.1.3-no-strip.patch" - "${FILESDIR}/${PN}-5.1.3-include-array.patch" - "${FILESDIR}/${PN}-5.7.1-fix-miopendriver-gemm.patch" -) - -src_prepare() { - cmake_src_prepare - - sed -e "s:/opt/rocm/llvm:$(get_llvm_prefix ${LLVM_MAX_SLOT}) NO_DEFAULT_PATH:" \ - -e "s:/opt/rocm/hip:$(hipconfig -p) NO_DEFAULT_PATH:" \ - -e '/set( MIOPEN_INSTALL_DIR/s:miopen:${CMAKE_INSTALL_PREFIX}:' \ - -e '/MIOPEN_TIDY_ERRORS ALL/d' \ - -e 's:find_program(UNZIPPER lbunzip2 bunzip2):find_program(UNZIPPER NAMES lbunzip2 bunzip2):' \ - -i CMakeLists.txt || die - - sed -e "/add_test/s:--build \${CMAKE_CURRENT_BINARY_DIR}:--build ${BUILD_DIR}:" \ - -i test/CMakeLists.txt || die - - sed -e "s:\${PROJECT_BINARY_DIR}/miopen/include:\${PROJECT_BINARY_DIR}/include:" \ - -i src/CMakeLists.txt || die - - sed -e "s:\${AMD_DEVICE_LIBS_PREFIX}/lib:${EPREFIX}/usr/lib/amdgcn/bitcode:" -i cmake/hip-config.cmake || die -} - -src_configure() { - if ! use debug; then - append-cflags "-DNDEBUG" - append-cxxflags "-DNDEBUG" - CMAKE_BUILD_TYPE="Release" - else - CMAKE_BUILD_TYPE="Debug" - fi - - local mycmakeargs=( - -DCMAKE_SKIP_RPATH=ON - -DAMDGPU_TARGETS="$(get_amdgpu_flags)" - -DCMAKE_INSTALL_PREFIX="${EPREFIX}/usr" - -DMIOPEN_BACKEND=HIP - -DBoost_USE_STATIC_LIBS=OFF - -DMIOPEN_USE_MLIR=OFF - -DBUILD_TESTS=$(usex test ON OFF) - -DBUILD_FILE_REORG_BACKWARD_COMPATIBILITY=OFF - -DROCM_SYMLINK_LIBS=OFF - -DHALF_INCLUDE_DIR="${EPREFIX}/usr/include/half" - ) - - if use test; then - mycmakeargs+=( - -DMIOPEN_TEST_ALL=ON - -DBUILD_TESTING=ON - -DMIOPEN_TEST_GDB=OFF - -DGOOGLETEST_DIR="${WORKDIR}/googletest-${GTEST_COMMIT}" - ) - for gpu_target in ${AMDGPU_TARGETS}; do - mycmakeargs+=(-DMIOPEN_TEST_${gpu_target^^}=ON ) - done - fi - - addpredict /dev/kfd - addpredict /dev/dri/ - append-cxxflags "--rocm-path=$(hipconfig -R)" - append-cxxflags "--hip-device-lib-path=${EPREFIX}/usr/lib/amdgcn/bitcode" - CXX="$(get_llvm_prefix ${LLVM_MAX_SLOT})/bin/clang++" cmake_src_configure -} - -src_test() { - check_amdgpu - LD_LIBRARY_PATH="${BUILD_DIR}"/lib cmake_src_test -j1 -} - -src_install() { - cmake_src_install -} diff --git a/sci-libs/miopen/miopen-6.1.1.ebuild b/sci-libs/miopen/miopen-6.1.1.ebuild deleted file mode 100644 index de3e654..0000000 --- a/sci-libs/miopen/miopen-6.1.1.ebuild +++ /dev/null @@ -1,106 +0,0 @@ -# Copyright 1999-2024 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -ROCM_VERSION=${PV} -LLVM_COMPAT=( 20 ) - -inherit cmake flag-o-matic llvm-r1 rocm - -DESCRIPTION="AMD's Machine Intelligence Library" -HOMEPAGE="https://github.com/ROCm/MIOpen" -SRC_URI="https://github.com/ROCm/MIOpen/archive/rocm-${PV}.tar.gz -> MIOpen-${PV}.tar.gz" -S="${WORKDIR}/MIOpen-rocm-${PV}" - -LICENSE="MIT" -SLOT="0/$(ver_cut 1-2)" -KEYWORDS="~amd64" - -IUSE="debug test" -RESTRICT="!test? ( test )" - -RDEPEND=" - dev-util/hip:${SLOT} - >=dev-db/sqlite-3.17 - sci-libs/rocBLAS:${SLOT}[${ROCM_USEDEP}] - sci-libs/composable-kernel:${SLOT}[${ROCM_USEDEP}] - dev-util/roctracer:${SLOT}[${ROCM_USEDEP}] - >=dev-libs/boost-1.72 - dev-cpp/nlohmann_json - dev-cpp/frugally-deep -" - -DEPEND="${RDEPEND}" - -BDEPEND=" - >=dev-libs/half-1.12.0-r1 - dev-build/rocm-cmake - test? ( dev-cpp/gtest ) -" - -PATCHES=( - "${FILESDIR}"/${PN}-6.1.1-build-all-tests.patch -) - -src_prepare() { - cmake_src_prepare - - sed -e '/MIOPEN_TIDY_ERRORS ALL/d' \ - -e 's/FLAGS_RELEASE} -s/FLAGS_RELEASE}/g' \ - -i CMakeLists.txt || die - - sed -e "/add_test/s:--build \${CMAKE_CURRENT_BINARY_DIR}:--build ${BUILD_DIR}:" \ - -i test/CMakeLists.txt || die - - sed -e "s:\${PROJECT_BINARY_DIR}/miopen/include:\${PROJECT_BINARY_DIR}/include:" \ - -i src/CMakeLists.txt || die -} - -src_configure() { - rocm_use_hipcc - - if ! use debug; then - append-cflags "-DNDEBUG" - append-cxxflags "-DNDEBUG" - CMAKE_BUILD_TYPE="Release" - else - CMAKE_BUILD_TYPE="Debug" - fi - - local mycmakeargs=( - -DCMAKE_SKIP_RPATH=ON - -DAMDGPU_TARGETS="$(get_amdgpu_flags)" - -DCMAKE_INSTALL_PREFIX="${EPREFIX}/usr" - -DMIOPEN_BACKEND=HIP - -DBoost_USE_STATIC_LIBS=OFF - -DMIOPEN_USE_MLIR=OFF - -DBUILD_TESTING=$(usex test ON OFF) - -DBUILD_FILE_REORG_BACKWARD_COMPATIBILITY=OFF - -DROCM_SYMLINK_LIBS=OFF - -DMIOPEN_HIP_COMPILER="${ESYSROOT}/usr/bin/hipcc" - -DMIOPEN_AMDGCN_ASSEMBLER="$(get_llvm_prefix)/bin/clang" - -DHIP_OC_COMPILER="$(get_llvm_prefix)/bin/clang" - ) - - if use test; then - mycmakeargs+=( - -DMIOPEN_TEST_ALL=ON - -DMIOPEN_TEST_GDB=OFF - ) - # needed by rocminfo - addpredict /dev/random - check_amdgpu - fi - - cmake_src_configure -} - -src_test() { - check_amdgpu - LD_LIBRARY_PATH="${BUILD_DIR}"/lib MIOPEN_SYSTEM_DB_PATH="${BUILD_DIR}"/share/miopen/db/ cmake_src_test -j1 -} - -src_install() { - cmake_src_install -} diff --git a/sci-libs/miopen/miopen-6.3.2.ebuild b/sci-libs/miopen/miopen-6.3.2.ebuild deleted file mode 100644 index 470366f..0000000 --- a/sci-libs/miopen/miopen-6.3.2.ebuild +++ /dev/null @@ -1,134 +0,0 @@ -# Copyright 1999-2025 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -ROCM_VERSION=${PV} -LLVM_COMPAT=( 20 ) - -inherit cmake flag-o-matic llvm-r1 rocm - -DESCRIPTION="AMD's Machine Intelligence Library" -HOMEPAGE="https://github.com/ROCm/MIOpen" -SRC_URI="https://github.com/ROCm/MIOpen/archive/rocm-${PV}.tar.gz -> MIOpen-${PV}.tar.gz" -S="${WORKDIR}/MIOpen-rocm-${PV}" - -LICENSE="MIT" -SLOT="0/$(ver_cut 1-2)" -KEYWORDS="~amd64" - -IUSE="composable-kernel debug hipblaslt rocblas roctracer test" - -# tests can freeze machine depending on gpu/kernel -RESTRICT="test" - -RDEPEND=" - dev-util/hip:${SLOT} - >=dev-db/sqlite-3.17 - sci-libs/rocRAND:${SLOT}[${ROCM_USEDEP}] - >=dev-libs/boost-1.72 - dev-cpp/nlohmann_json - dev-cpp/frugally-deep - - composable-kernel? ( sci-libs/composable-kernel:${SLOT}[${ROCM_USEDEP}] ) - hipblaslt? ( - sci-libs/hipBLAS:${SLOT}[${ROCM_USEDEP}] - sci-libs/hipBLASLt:${SLOT} - ) - rocblas? ( sci-libs/rocBLAS:${SLOT}[${ROCM_USEDEP}] ) - roctracer? ( dev-util/roctracer:${SLOT}[${ROCM_USEDEP}] ) -" - -DEPEND="${RDEPEND}" - -BDEPEND=" - >=dev-libs/half-1.12.0-r1 - dev-build/rocm-cmake - test? ( dev-cpp/gtest ) -" - -PATCHES=( - "${FILESDIR}"/${PN}-6.1.1-build-all-tests.patch - "${FILESDIR}"/${PN}-6.1.1-fix-libcxx.patch - "${FILESDIR}"/${PN}-6.3.0-conditional-ck-components.patch - "${FILESDIR}"/${PN}-6.3.0-isnan-include.patch -) - -src_prepare() { - cmake_src_prepare - - # complementary replacements for conditional-ck-components patch - find src -name '*mha*.cpp' -type f | while IFS= read -r file; do - sed -i "s/MIOPEN_USE_COMPOSABLEKERNEL/MIOPEN_USE_CK_MHA_OPS/g" "$file" || die - done - - sed -i "s/MIOPEN_USE_COMPOSABLEKERNEL/MIOPEN_USE_CK_XDL_OPS/g" \ - src/mlo_dir_conv.cpp \ - src/solver/conv_ck_igemm_fwd_bias_res_add_activ_fused.cpp \ - src/solver/conv_ck_igemm_fwd_bias_activ_fused.cpp || die - find src -name '*xdl*.cpp' -type f | while IFS= read -r file; do - sed -i "s/MIOPEN_USE_COMPOSABLEKERNEL/MIOPEN_USE_CK_XDL_OPS/g" "$file" || die - done - - sed -e '/MIOPEN_TIDY_ERRORS ALL/d' \ - -e 's/FLAGS_RELEASE} -s/FLAGS_RELEASE}/g' \ - -i CMakeLists.txt || die - - sed -e "/add_test/s:--build \${CMAKE_CURRENT_BINARY_DIR}:--build ${BUILD_DIR}:" \ - -i test/CMakeLists.txt || die - - sed -e "s:\${PROJECT_BINARY_DIR}/miopen/include:\${PROJECT_BINARY_DIR}/include:" \ - -i src/CMakeLists.txt || die -} - -src_configure() { - rocm_use_hipcc - - if ! use debug; then - append-cflags "-DNDEBUG" - append-cxxflags "-DNDEBUG" - CMAKE_BUILD_TYPE="Release" - else - CMAKE_BUILD_TYPE="Debug" - fi - - local mycmakeargs=( - -DCMAKE_SKIP_RPATH=ON - -DAMDGPU_TARGETS="$(get_amdgpu_flags)" - -DCMAKE_INSTALL_PREFIX="${EPREFIX}/usr" - -DMIOPEN_BACKEND=HIP - -DBoost_USE_STATIC_LIBS=OFF - -DMIOPEN_USE_MLIR=OFF - -DMIOPEN_USE_ROCTRACER=$(usex roctracer ON OFF) - -DMIOPEN_USE_ROCBLAS=$(usex rocblas ON OFF) - -DMIOPEN_USE_HIPBLASLT=$(usex hipblaslt ON OFF) - -DMIOPEN_USE_COMPOSABLEKERNEL=$(usex composable-kernel ON OFF) - -DBUILD_TESTING=$(usex test ON OFF) - -DBUILD_FILE_REORG_BACKWARD_COMPATIBILITY=OFF - -DROCM_SYMLINK_LIBS=OFF - -DMIOPEN_HIP_COMPILER="${ESYSROOT}/usr/bin/hipcc" - -DMIOPEN_AMDGCN_ASSEMBLER="$(get_llvm_prefix)/bin/clang" - -DHIP_OC_COMPILER="$(get_llvm_prefix)/bin/clang" - ) - - if use test; then - mycmakeargs+=( - -DMIOPEN_TEST_ALL=ON - -DMIOPEN_TEST_GDB=OFF - ) - # needed by rocminfo - addpredict /dev/random - check_amdgpu - fi - - cmake_src_configure -} - -src_test() { - check_amdgpu - LD_LIBRARY_PATH="${BUILD_DIR}"/lib MIOPEN_SYSTEM_DB_PATH="${BUILD_DIR}"/share/miopen/db/ cmake_src_test -j1 -} - -src_install() { - cmake_src_install -} diff --git a/sci-libs/miopen/miopen-6.3.3.ebuild b/sci-libs/miopen/miopen-6.3.3.ebuild deleted file mode 100644 index 470366f..0000000 --- a/sci-libs/miopen/miopen-6.3.3.ebuild +++ /dev/null @@ -1,134 +0,0 @@ -# Copyright 1999-2025 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -ROCM_VERSION=${PV} -LLVM_COMPAT=( 20 ) - -inherit cmake flag-o-matic llvm-r1 rocm - -DESCRIPTION="AMD's Machine Intelligence Library" -HOMEPAGE="https://github.com/ROCm/MIOpen" -SRC_URI="https://github.com/ROCm/MIOpen/archive/rocm-${PV}.tar.gz -> MIOpen-${PV}.tar.gz" -S="${WORKDIR}/MIOpen-rocm-${PV}" - -LICENSE="MIT" -SLOT="0/$(ver_cut 1-2)" -KEYWORDS="~amd64" - -IUSE="composable-kernel debug hipblaslt rocblas roctracer test" - -# tests can freeze machine depending on gpu/kernel -RESTRICT="test" - -RDEPEND=" - dev-util/hip:${SLOT} - >=dev-db/sqlite-3.17 - sci-libs/rocRAND:${SLOT}[${ROCM_USEDEP}] - >=dev-libs/boost-1.72 - dev-cpp/nlohmann_json - dev-cpp/frugally-deep - - composable-kernel? ( sci-libs/composable-kernel:${SLOT}[${ROCM_USEDEP}] ) - hipblaslt? ( - sci-libs/hipBLAS:${SLOT}[${ROCM_USEDEP}] - sci-libs/hipBLASLt:${SLOT} - ) - rocblas? ( sci-libs/rocBLAS:${SLOT}[${ROCM_USEDEP}] ) - roctracer? ( dev-util/roctracer:${SLOT}[${ROCM_USEDEP}] ) -" - -DEPEND="${RDEPEND}" - -BDEPEND=" - >=dev-libs/half-1.12.0-r1 - dev-build/rocm-cmake - test? ( dev-cpp/gtest ) -" - -PATCHES=( - "${FILESDIR}"/${PN}-6.1.1-build-all-tests.patch - "${FILESDIR}"/${PN}-6.1.1-fix-libcxx.patch - "${FILESDIR}"/${PN}-6.3.0-conditional-ck-components.patch - "${FILESDIR}"/${PN}-6.3.0-isnan-include.patch -) - -src_prepare() { - cmake_src_prepare - - # complementary replacements for conditional-ck-components patch - find src -name '*mha*.cpp' -type f | while IFS= read -r file; do - sed -i "s/MIOPEN_USE_COMPOSABLEKERNEL/MIOPEN_USE_CK_MHA_OPS/g" "$file" || die - done - - sed -i "s/MIOPEN_USE_COMPOSABLEKERNEL/MIOPEN_USE_CK_XDL_OPS/g" \ - src/mlo_dir_conv.cpp \ - src/solver/conv_ck_igemm_fwd_bias_res_add_activ_fused.cpp \ - src/solver/conv_ck_igemm_fwd_bias_activ_fused.cpp || die - find src -name '*xdl*.cpp' -type f | while IFS= read -r file; do - sed -i "s/MIOPEN_USE_COMPOSABLEKERNEL/MIOPEN_USE_CK_XDL_OPS/g" "$file" || die - done - - sed -e '/MIOPEN_TIDY_ERRORS ALL/d' \ - -e 's/FLAGS_RELEASE} -s/FLAGS_RELEASE}/g' \ - -i CMakeLists.txt || die - - sed -e "/add_test/s:--build \${CMAKE_CURRENT_BINARY_DIR}:--build ${BUILD_DIR}:" \ - -i test/CMakeLists.txt || die - - sed -e "s:\${PROJECT_BINARY_DIR}/miopen/include:\${PROJECT_BINARY_DIR}/include:" \ - -i src/CMakeLists.txt || die -} - -src_configure() { - rocm_use_hipcc - - if ! use debug; then - append-cflags "-DNDEBUG" - append-cxxflags "-DNDEBUG" - CMAKE_BUILD_TYPE="Release" - else - CMAKE_BUILD_TYPE="Debug" - fi - - local mycmakeargs=( - -DCMAKE_SKIP_RPATH=ON - -DAMDGPU_TARGETS="$(get_amdgpu_flags)" - -DCMAKE_INSTALL_PREFIX="${EPREFIX}/usr" - -DMIOPEN_BACKEND=HIP - -DBoost_USE_STATIC_LIBS=OFF - -DMIOPEN_USE_MLIR=OFF - -DMIOPEN_USE_ROCTRACER=$(usex roctracer ON OFF) - -DMIOPEN_USE_ROCBLAS=$(usex rocblas ON OFF) - -DMIOPEN_USE_HIPBLASLT=$(usex hipblaslt ON OFF) - -DMIOPEN_USE_COMPOSABLEKERNEL=$(usex composable-kernel ON OFF) - -DBUILD_TESTING=$(usex test ON OFF) - -DBUILD_FILE_REORG_BACKWARD_COMPATIBILITY=OFF - -DROCM_SYMLINK_LIBS=OFF - -DMIOPEN_HIP_COMPILER="${ESYSROOT}/usr/bin/hipcc" - -DMIOPEN_AMDGCN_ASSEMBLER="$(get_llvm_prefix)/bin/clang" - -DHIP_OC_COMPILER="$(get_llvm_prefix)/bin/clang" - ) - - if use test; then - mycmakeargs+=( - -DMIOPEN_TEST_ALL=ON - -DMIOPEN_TEST_GDB=OFF - ) - # needed by rocminfo - addpredict /dev/random - check_amdgpu - fi - - cmake_src_configure -} - -src_test() { - check_amdgpu - LD_LIBRARY_PATH="${BUILD_DIR}"/lib MIOPEN_SYSTEM_DB_PATH="${BUILD_DIR}"/share/miopen/db/ cmake_src_test -j1 -} - -src_install() { - cmake_src_install -} diff --git a/sci-libs/pytorch-directml/Manifest b/sci-libs/pytorch-directml/Manifest deleted file mode 100644 index d8f12f3..0000000 --- a/sci-libs/pytorch-directml/Manifest +++ /dev/null @@ -1,17 +0,0 @@ -AUX 0002-Don-t-build-libtorch-again-for-PyTorch-1.7.1.patch 599 BLAKE2B 4ad99f05d69f53336e6c874b7783c5fb9e800808c6adf588263af215eda865ddf215df8fa803e48220b879fd2f90d71139a6e38bbdc947abc7854cab88a756ad SHA512 fd0e3db9cb68e14d3d90a613d91511acc752c1d764bada85e6dace59b45fe2cf42bca6b77c281084bd04de88d5fefbb5d81be165d288ed3da251e7b0d4c6e86e -AUX pytorch-1.13.0-setup.patch 357 BLAKE2B 9741c5285353ac09581f54a823e77b069afbe5d9165a6545bd50a2b020298a358783d61fc5923188ddf7fec0929ec92eabeefc8c3be329793f12326aef5f89c5 SHA512 4632b0ea06704122e86dd27836d96ee59fc1ea236e69031fc65a21b2c9eafae21fc9344e55f17ee0c6374e3368f7ad1e3cec3b2be1af5e21bd10902684c72161 -AUX pytorch-1.13.1-emptyso.patch 490 BLAKE2B 97de7ab941aaf1d21714654a26ddd52247b7ab57f18364ef85a7086628c0cb7f36f681bc4f54a832462c24ac0b96c33773d3843203c64fde93cde63e7784f8a2 SHA512 e4795fcc870f5968370ec00dcee7b474059d8f1a0de468daf01edcc417bbdbc6af7d1c945e70d6a00f3c709e62f474b80792fe30baed66e49b198b893ad92998 -AUX pytorch-1.13.1-global-dlopen.patch 961 BLAKE2B 215e85440efef71df0e96c1014c8922237016e433c639ae3b002266a43e01da8686bd89d1e50ed0164ac29bbde902ff3df9abdfff304cfede856ebd125bb1c58 SHA512 b924ec573f8225bd2655f7c6c5e344909754a5330ce0a78d5cf00620884e15b23698ca99125fd74bcb12f300161aa3dd881a921fd51b2caa974709a81e8a2ee9 -AUX pytorch-1.7.1-torch_shm_manager.patch 441 BLAKE2B 28b87353a0afa0ef25c8ab00e204998b4fb3472fbbb5bb2b300a3fb22d864846d51ccef652ce331484c7a522f7d74e6674c1ceaf26d0a4956d1c8b57b29a7428 SHA512 08f2e5f35768e70713a1432797d9fbe0b133a80ae7dff2898e4b9b51ab398f88bce90a0698b3c9f77bf8a4c5c054911c22931d0684276a0b6d4f2afb69633088 -AUX pytorch-1.9.0-Change-library-directory-according-to-CMake-build.patch 1063 BLAKE2B c93cb4c1ff40ef332cd518474a397e9b61d310f4cbdb8701c18749f103533a69e4a3e892f1e3613113cc97ae320951dacb956025ba6be694c5275448d2af3a78 SHA512 7931a220068a36b15ee0f282161f23422acdbef32990bd1eafeab55e06131748f5b4ad93e6a0dc7a4f92e7ebd0595a97835c768b46dd7139f626df666642ce18 -AUX pytorch-2.0.0-emptyso.patch 522 BLAKE2B 8c0dd836c19bf64846bc2fc401b917494f01080b1a8ab8f6c284658f35d6d647070f536e33adae8bc77de1c36ebc4d54aa90ca6b6992decd3b68dd95c273b931 SHA512 5432165bc5cd5e428a086a05581bedace5487b48b093ece843c8d4756580b0b0387f213b0ca92ceeca700fa6605b432e0442ecb4ef9f9248ee3d7ae1a576ac22 -AUX pytorch-2.0.0-global-dlopen.patch 834 BLAKE2B da3ddd29124ab345e50acd4b42cb310d75d7c9b13005ee41051a1a2b702958b81677fe4f7e76dcd678dd439c89114de2e568f4330380e6e621d2975957293921 SHA512 fa0156229d7cd20e0f3949913750ecf3d8c2f0e872c8dc272cb0144427e079938588c7d4d3fec087b6cfd7846ed6844fbaa3c5510e9be8890be926ba854f7833 -AUX pytorch-2.1.1-dontbuildagain.patch 443 BLAKE2B 67cc940ae5be4d3a0a5ef6670a72de4f3419582b59bb7e905d4ee704c928c353f1ef03a446ac97f0718d24e5a88fc656c8e58e26f869c6eeef5d21b918308f36 SHA512 4acf9dfca8e998a5ec1f6eebb7ffd5833f065dd995ef735c50ce34fb2553bbacc974c13eeaf07962d00de0f795fd4366a1866d1bb834ed93098217400db9dc6c -AUX pytorch-2.1.1-emptyso.patch 527 BLAKE2B 104352b254b1f6a2e7b842265f9796d93c7fb23d4681961aad53ebcea8a7068a2ea9799d466555fa00db52db0136cb74d87853835e25f678c5ba641f8a76b8a0 SHA512 35aae74a0c95e9967909756af5c486e4c3555536016c2d4a37b9048e503c70f490cbf75c1d7814adcbbfeb3ba08a1e8ffac5507d8c964b28c0452f6eab03ca5b -DIST pytorch-1.13.1.tar.gz 108279745 BLAKE2B 75de03b74dfdaf8d8fb5ea743fcc0c1b0e408a714ad4160c487921220a7b1755e5fa6e587e6bbc8c9f34dd75e096d2e6dd69c80d24821835fff6c833314434d3 SHA512 f16f89d027efade11d057245cad5b69a390e88b458398310ae30de2dbff7c8fd7f1165be7b8da7ea989c81ac3f5a66c5cb9050610e441a97c83fb8aa28c0bd62 -DIST pytorch-2.0.1.tar.gz 111335778 BLAKE2B 7a10cc2b2d5e2422aef7e060a0c3a62ca5c7460c6e0b9becade9b98939501975c74ed5a175a653731f43ca824d2c9bd31f41d1f633c2b139779ab23d5331e9ce SHA512 2309a22b3be3ccdb36d8d9781a59a7bdcc2fdb8d95ada205702ec77862480f0cbb12cd5d6b8cd3114d01a6e33b7743d0fe9de93debf37138ca5c14403cdb0c43 -DIST pytorch-2.1.2.tar.gz 116316469 BLAKE2B c5a55ee264bc3477d3556ba6376b5591117e992e56e0dd0c9ba93d12526e2727f7840f6f1e0730a38223b6492c9556840c4ebf22ffd220e97225c2abff303747 SHA512 a8961d78ad785b13c959a0612563a60e0de17a7c8bb9822ddea9a24072796354d07e81c47b6cc8761b21a6448845b088cf80e1661d9e889b0ed5474d3dc76756 -EBUILD pytorch-1.13.1-r2.ebuild 1512 BLAKE2B a83a2846755b3ad3dc62329f77b04e73be1f5a79a3c3e2311a61c0965c50a17a83deac89c22ce26470be415c0c48a760f1b74c207e6864a16aead25e42896867 SHA512 55a6ed013855c4d20fad0bb213e51b2881d0b7c3e456055800b16658f92460d998294148d041dba642a11be1a60d5d830edf8613cc09cdf9ce6eef7ecc809976 -EBUILD pytorch-2.0.1-r1.ebuild 1640 BLAKE2B f29660c3bf423ba697862d9ccc3bf3ac0f958d4fbc5c4dbeac0860ad5cf8e0c0675def1cd9eb4c0d26a7485baa33481f36a2e2da73d89c00a98cad595fabf8e0 SHA512 21325abae79b7c816822b5605c050d4c05be5b0303ffbbf6497907c5ff6f0c9321d30e9857d008e08697169823e31c297273d5ea31c759fa3f144242d37300ca -EBUILD pytorch-2.1.2-r1.ebuild 1615 BLAKE2B 15740f38461bee2678b5b1420dcbe4974aca39e0c0aaa86a6a1c51f98969fc3ee5b26c3cb73361c8e3ac1e9b08dbcec1d3e3f56b08dac1e4bab5085cea505d67 SHA512 a3c0aaa047c3710967aa53c42db58f5377fa918234f161886cef5c2681a9e2b57d41f50c70498961960d7f522f2292d8fe6b04e65f5d8cd8b93d6c273c4fa7a9 -MISC metadata.xml 328 BLAKE2B f49c6d62ac88dfffe497ed05b1f727941a94acb87a809611dda8aedbd87508fdfdf94ec0e025cac2a649b0881b600236289943b4be0f6ca44fc105b6d8fbe97c SHA512 16c29d2c1177a89026235191ea3e33870c2e6b63f029b7febd4dbd2e99f598fab4b4fd2fa7a801ffd88393663a00752300e6e2cc847a83690b715bcc481d9dc2 diff --git a/sci-libs/pytorch-directml/files/0002-Don-t-build-libtorch-again-for-PyTorch-1.7.1.patch b/sci-libs/pytorch-directml/files/0002-Don-t-build-libtorch-again-for-PyTorch-1.7.1.patch deleted file mode 100644 index 640d061..0000000 --- a/sci-libs/pytorch-directml/files/0002-Don-t-build-libtorch-again-for-PyTorch-1.7.1.patch +++ /dev/null @@ -1,18 +0,0 @@ -diff --git a/setup.py b/setup.py -index 2db381644c..2241a33015 100644 ---- a/setup.py -+++ b/setup.py -@@ -363,13 +363,6 @@ def build_deps(): - check_submodules() - check_pydep('yaml', 'pyyaml') - -- build_caffe2(version=version, -- cmake_python_library=cmake_python_library, -- build_python=True, -- rerun_cmake=RERUN_CMAKE, -- cmake_only=CMAKE_ONLY, -- cmake=cmake) -- - if CMAKE_ONLY: - report('Finished running cmake. Run "ccmake build" or ' - '"cmake-gui build" to adjust build options and ' diff --git a/sci-libs/pytorch-directml/files/pytorch-1.13.0-setup.patch b/sci-libs/pytorch-directml/files/pytorch-1.13.0-setup.patch deleted file mode 100644 index bc5721e..0000000 --- a/sci-libs/pytorch-directml/files/pytorch-1.13.0-setup.patch +++ /dev/null @@ -1,11 +0,0 @@ ---- a/setup.py 2023-02-14 19:34:56.327571750 +0100 -+++ b/setup.py 2023-02-14 19:35:31.073020464 +0100 -@@ -234,6 +234,8 @@ - import time - import sysconfig - -+sys.path[:0] = os.getcwd() -+ - from tools.build_pytorch_libs import build_caffe2 - from tools.setup_helpers.env import (IS_WINDOWS, IS_DARWIN, IS_LINUX, - build_type) diff --git a/sci-libs/pytorch-directml/files/pytorch-1.13.1-emptyso.patch b/sci-libs/pytorch-directml/files/pytorch-1.13.1-emptyso.patch deleted file mode 100644 index 1479354..0000000 --- a/sci-libs/pytorch-directml/files/pytorch-1.13.1-emptyso.patch +++ /dev/null @@ -1,15 +0,0 @@ ---- a/setup.py 2023-03-24 22:36:50.361860100 +0100 -+++ b/setup.py 2023-03-24 22:36:57.384752383 +0100 -@@ -922,12 +922,6 @@ - name=str('caffe2.python.caffe2_pybind11_state_hip'), - sources=[]), - ) -- if cmake_cache_vars['BUILD_FUNCTORCH']: -- extensions.append( -- Extension( -- name=str('functorch._C'), -- sources=[]), -- ) - - cmdclass = { - 'bdist_wheel': wheel_concatenate, diff --git a/sci-libs/pytorch-directml/files/pytorch-1.13.1-global-dlopen.patch b/sci-libs/pytorch-directml/files/pytorch-1.13.1-global-dlopen.patch deleted file mode 100644 index 4f414be..0000000 --- a/sci-libs/pytorch-directml/files/pytorch-1.13.1-global-dlopen.patch +++ /dev/null @@ -1,23 +0,0 @@ -Don't hardcode the library path. Leave it to the dynamic loader. - -Index: pytorch-1.13.1/torch/__init__.py -=================================================================== ---- a/torch/__init__.py 2023-02-15 20:27:51.747853677 +0100 -+++ b/torch/__init__.py 2023-02-15 20:28:23.506341918 +0100 -@@ -169,14 +169,14 @@ - lib_path = os.path.join(os.path.dirname(here), 'lib', lib_name) - - try: -- ctypes.CDLL(lib_path, mode=ctypes.RTLD_GLOBAL) -+ ctypes.CDLL(lib_name, mode=ctypes.RTLD_GLOBAL) - except OSError as err: - # Can only happen of wheel with cublas as PYPI deps - # As PyTorch is not purelib, but nvidia-cublas-cu11 is - if 'libcublas.so.11' not in err.args[0]: - raise err - _preload_cuda_deps() -- ctypes.CDLL(lib_path, mode=ctypes.RTLD_GLOBAL) -+ ctypes.CDLL(lib_name, mode=ctypes.RTLD_GLOBAL) - - - if (USE_RTLD_GLOBAL_WITH_LIBTORCH or os.getenv('TORCH_USE_RTLD_GLOBAL')) and \ diff --git a/sci-libs/pytorch-directml/files/pytorch-1.7.1-torch_shm_manager.patch b/sci-libs/pytorch-directml/files/pytorch-1.7.1-torch_shm_manager.patch deleted file mode 100644 index 69c2ddc..0000000 --- a/sci-libs/pytorch-directml/files/pytorch-1.7.1-torch_shm_manager.patch +++ /dev/null @@ -1,13 +0,0 @@ -diff --git a/torch/__init__.py b/torch/__init__.py -index 03f6eca622..297fb169a4 100644 ---- a/torch/__init__.py -+++ b/torch/__init__.py -@@ -412,7 +412,7 @@ def manager_path(): - - - # Shared memory manager needs to know the exact location of manager executable --_C._initExtension(manager_path()) -+_C._initExtension(b"/usr/bin/torch_shm_manager") - del manager_path - - # Appease the type checker: it can't deal with direct setting of globals(). diff --git a/sci-libs/pytorch-directml/files/pytorch-1.9.0-Change-library-directory-according-to-CMake-build.patch b/sci-libs/pytorch-directml/files/pytorch-1.9.0-Change-library-directory-according-to-CMake-build.patch deleted file mode 100644 index 2142674..0000000 --- a/sci-libs/pytorch-directml/files/pytorch-1.9.0-Change-library-directory-according-to-CMake-build.patch +++ /dev/null @@ -1,32 +0,0 @@ -From 52019a3f395e5fa97b26d424152d91f73b400f8e Mon Sep 17 00:00:00 2001 -From: Alexey Chernov <4ernov@gmail.com> -Date: Wed, 13 Nov 2019 23:44:12 +0300 -Subject: [PATCH 5/5] Change library directory according to CMake build -Modified: Tue, 03 Aug 2021, fit for pytorch-1.9.0 - -Change `lib_path` in favour of out-of-tree CMake build -directory, so that all the C++ libraries be found. ---- - setup.py | 5 +++-- - 1 file changed, 3 insertions(+), 2 deletions(-) - -diff --git a/setup.py b/setup.py -index 60502b6add..cbced52192 100644 ---- a/setup.py -+++ b/setup.py -@@ -268,9 +268,10 @@ else: - - # Constant known variables used throughout this file - cwd = os.path.dirname(os.path.abspath(__file__)) --lib_path = os.path.join(cwd, "torch", "lib") -+cmake_build_dir = os.environ.get("CMAKE_BUILD_DIR", os.path.join(cwd, "build")) -+lib_path = os.path.join(cmake_build_dir, "lib") - third_party_path = os.path.join(cwd, "third_party") --caffe2_build_dir = os.path.join(cwd, "build") -+caffe2_build_dir = cmake_build_dir - - # CMAKE: full path to python library - if IS_WINDOWS: --- -2.23.0 - diff --git a/sci-libs/pytorch-directml/files/pytorch-2.0.0-emptyso.patch b/sci-libs/pytorch-directml/files/pytorch-2.0.0-emptyso.patch deleted file mode 100644 index e470389..0000000 --- a/sci-libs/pytorch-directml/files/pytorch-2.0.0-emptyso.patch +++ /dev/null @@ -1,15 +0,0 @@ ---- a/setup.py 2023-04-05 11:23:00.713405789 +0200 -+++ b/setup.py 2023-04-05 11:23:36.900876249 +0200 -@@ -960,12 +960,6 @@ - name=str('caffe2.python.caffe2_pybind11_state_hip'), - sources=[]), - ) -- if cmake_cache_vars['BUILD_FUNCTORCH']: -- extensions.append( -- Extension( -- name=str('functorch._C'), -- sources=[]), -- ) - if cmake_cache_vars['BUILD_NVFUSER']: - extensions.append( - Extension( diff --git a/sci-libs/pytorch-directml/files/pytorch-2.0.0-global-dlopen.patch b/sci-libs/pytorch-directml/files/pytorch-2.0.0-global-dlopen.patch deleted file mode 100644 index 0f1b400..0000000 --- a/sci-libs/pytorch-directml/files/pytorch-2.0.0-global-dlopen.patch +++ /dev/null @@ -1,20 +0,0 @@ ---- a/torch/__init__.py 2023-04-05 11:12:25.682681130 +0200 -+++ b/torch/__init__.py 2023-04-05 11:13:00.640170307 +0200 -@@ -165,7 +165,7 @@ - lib_path = os.path.join(os.path.dirname(here), 'lib', lib_name) - - try: -- ctypes.CDLL(lib_path, mode=ctypes.RTLD_GLOBAL) -+ ctypes.CDLL(lib_name, mode=ctypes.RTLD_GLOBAL) - except OSError as err: - # Can only happen for wheel with cuda libs as PYPI deps - # As PyTorch is not purelib, but nvidia-*-cu11 is -@@ -187,7 +187,7 @@ - raise err - for lib_folder, lib_name in cuda_libs.items(): - _preload_cuda_deps(lib_folder, lib_name) -- ctypes.CDLL(lib_path, mode=ctypes.RTLD_GLOBAL) -+ ctypes.CDLL(lib_name, mode=ctypes.RTLD_GLOBAL) - - - if (USE_RTLD_GLOBAL_WITH_LIBTORCH or os.getenv('TORCH_USE_RTLD_GLOBAL')) and \ diff --git a/sci-libs/pytorch-directml/files/pytorch-2.1.1-dontbuildagain.patch b/sci-libs/pytorch-directml/files/pytorch-2.1.1-dontbuildagain.patch deleted file mode 100644 index f031a73..0000000 --- a/sci-libs/pytorch-directml/files/pytorch-2.1.1-dontbuildagain.patch +++ /dev/null @@ -1,17 +0,0 @@ ---- a/setup.py 2023-12-07 20:38:21.247250326 +0100 -+++ b/setup.py 2023-12-07 20:38:30.707272148 +0100 -@@ -455,14 +455,6 @@ - check_submodules() - check_pydep("yaml", "pyyaml") - -- build_caffe2( -- version=version, -- cmake_python_library=cmake_python_library, -- build_python=True, -- rerun_cmake=RERUN_CMAKE, -- cmake_only=CMAKE_ONLY, -- cmake=cmake, -- ) - - if CMAKE_ONLY: - report( diff --git a/sci-libs/pytorch-directml/files/pytorch-2.1.1-emptyso.patch b/sci-libs/pytorch-directml/files/pytorch-2.1.1-emptyso.patch deleted file mode 100644 index b298360..0000000 --- a/sci-libs/pytorch-directml/files/pytorch-2.1.1-emptyso.patch +++ /dev/null @@ -1,13 +0,0 @@ ---- a/setup.py 2023-04-05 11:23:00.713405789 +0200 -+++ b/setup.py 2023-04-05 11:23:36.900876249 +0200 -@@ -1037,10 +1037,6 @@ - extensions.append( - Extension(name="caffe2.python.caffe2_pybind11_state_hip", sources=[]), - ) -- if cmake_cache_vars["BUILD_FUNCTORCH"]: -- extensions.append( -- Extension(name="functorch._C", sources=[]), -- ) - if cmake_cache_vars["BUILD_NVFUSER"]: - extensions.append( - Extension(name="nvfuser._C", sources=[]), diff --git a/sci-libs/pytorch-directml/metadata.xml b/sci-libs/pytorch-directml/metadata.xml deleted file mode 100644 index d12749a..0000000 --- a/sci-libs/pytorch-directml/metadata.xml +++ /dev/null @@ -1,11 +0,0 @@ - - - - - tupone@gentoo.org - Tupone Alfredo - - - pytorch/pytorch - - diff --git a/sci-libs/pytorch-directml/pytorch-1.13.1-r2.ebuild b/sci-libs/pytorch-directml/pytorch-1.13.1-r2.ebuild deleted file mode 100644 index f93b9a1..0000000 --- a/sci-libs/pytorch-directml/pytorch-1.13.1-r2.ebuild +++ /dev/null @@ -1,63 +0,0 @@ -# Copyright 2022-2023 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -DISTUTILS_USE_PEP517=setuptools -PYTHON_COMPAT=( python3_{9..11} ) -DISTUTILS_SINGLE_IMPL=1 -inherit distutils-r1 - -DESCRIPTION="Tensors and Dynamic neural networks in Python" -HOMEPAGE="https://pytorch.org/" -SRC_URI="https://github.com/pytorch/${PN}/archive/refs/tags/v${PV}.tar.gz - -> ${P}.tar.gz" - -LICENSE="BSD" -SLOT="0" -KEYWORDS="~amd64" -RESTRICT="test" - -REQUIRED_USE=${PYTHON_REQUIRED_USE} -RDEPEND=" - ${PYTHON_DEPS} - ~sci-libs/caffe2-${PV}[${PYTHON_SINGLE_USEDEP}] - $(python_gen_cond_dep ' - dev-python/typing-extensions[${PYTHON_USEDEP}] - ') -" -DEPEND="${RDEPEND} - $(python_gen_cond_dep ' - dev-python/pyyaml[${PYTHON_USEDEP}] - ') -" - -src_prepare() { - eapply \ - "${FILESDIR}"/0002-Don-t-build-libtorch-again-for-PyTorch-1.7.1.patch \ - "${FILESDIR}"/pytorch-1.9.0-Change-library-directory-according-to-CMake-build.patch \ - "${FILESDIR}"/${P}-global-dlopen.patch \ - "${FILESDIR}"/pytorch-1.7.1-torch_shm_manager.patch \ - "${FILESDIR}"/${PN}-1.13.0-setup.patch \ - "${FILESDIR}"/${P}-emptyso.patch \ - - # Set build dir for pytorch's setup - sed -i \ - -e "/BUILD_DIR/s|build|/var/lib/caffe2/|" \ - tools/setup_helpers/env.py \ - || die - distutils-r1_src_prepare -} - -src_compile() { - PYTORCH_BUILD_VERSION=${PV} \ - PYTORCH_BUILD_NUMBER=0 \ - USE_SYSTEM_LIBS=ON \ - CMAKE_BUILD_DIR="${BUILD_DIR}" \ - BUILD_DIR= \ - distutils-r1_src_compile -} - -src_install() { - USE_SYSTEM_LIBS=ON distutils-r1_src_install -} diff --git a/sci-libs/pytorch-directml/pytorch-2.0.1-r1.ebuild b/sci-libs/pytorch-directml/pytorch-2.0.1-r1.ebuild deleted file mode 100644 index 11f7d44..0000000 --- a/sci-libs/pytorch-directml/pytorch-2.0.1-r1.ebuild +++ /dev/null @@ -1,67 +0,0 @@ -# Copyright 2022-2023 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -DISTUTILS_USE_PEP517=setuptools -PYTHON_COMPAT=( python3_{9..11} ) -DISTUTILS_SINGLE_IMPL=1 -DISTUTILS_EXT=1 -inherit distutils-r1 prefix - -DESCRIPTION="Tensors and Dynamic neural networks in Python" -HOMEPAGE="https://pytorch.org/" -SRC_URI="https://github.com/pytorch/${PN}/archive/refs/tags/v${PV}.tar.gz - -> ${P}.tar.gz" - -LICENSE="BSD" -SLOT="0" -KEYWORDS="~amd64" -RESTRICT="test" - -REQUIRED_USE=${PYTHON_REQUIRED_USE} -RDEPEND=" - ${PYTHON_DEPS} - ~sci-libs/caffe2-${PV}[${PYTHON_SINGLE_USEDEP}] - $(python_gen_cond_dep ' - dev-python/typing-extensions[${PYTHON_USEDEP}] - dev-python/sympy[${PYTHON_USEDEP}] - ') -" -DEPEND="${RDEPEND} - $(python_gen_cond_dep ' - dev-python/pyyaml[${PYTHON_USEDEP}] - ') -" - -src_prepare() { - eapply \ - "${FILESDIR}"/0002-Don-t-build-libtorch-again-for-PyTorch-1.7.1.patch \ - "${FILESDIR}"/pytorch-1.9.0-Change-library-directory-according-to-CMake-build.patch \ - "${FILESDIR}"/${PN}-2.0.0-global-dlopen.patch \ - "${FILESDIR}"/pytorch-1.7.1-torch_shm_manager.patch \ - "${FILESDIR}"/${PN}-1.13.0-setup.patch \ - "${FILESDIR}"/${PN}-2.0.0-emptyso.patch \ - - # Set build dir for pytorch's setup - sed -i \ - -e "/BUILD_DIR/s|build|/var/lib/caffe2/|" \ - tools/setup_helpers/env.py \ - || die - distutils-r1_src_prepare - - hprefixify tools/setup_helpers/env.py -} - -src_compile() { - PYTORCH_BUILD_VERSION=${PV} \ - PYTORCH_BUILD_NUMBER=0 \ - USE_SYSTEM_LIBS=ON \ - CMAKE_BUILD_DIR="${BUILD_DIR}" \ - BUILD_DIR= \ - distutils-r1_src_compile develop sdist -} - -src_install() { - USE_SYSTEM_LIBS=ON distutils-r1_src_install -} diff --git a/sci-libs/pytorch-directml/pytorch-2.1.2-r1.ebuild b/sci-libs/pytorch-directml/pytorch-2.1.2-r1.ebuild deleted file mode 100644 index eeedad6..0000000 --- a/sci-libs/pytorch-directml/pytorch-2.1.2-r1.ebuild +++ /dev/null @@ -1,66 +0,0 @@ -# Copyright 2022-2024 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -DISTUTILS_USE_PEP517=setuptools -PYTHON_COMPAT=( python3_{9..12} ) -DISTUTILS_SINGLE_IMPL=1 -DISTUTILS_EXT=1 -inherit distutils-r1 prefix - -DESCRIPTION="Tensors and Dynamic neural networks in Python" -HOMEPAGE="https://pytorch.org/" -SRC_URI="https://github.com/pytorch/${PN}/archive/refs/tags/v${PV}.tar.gz - -> ${P}.tar.gz" - -LICENSE="BSD" -SLOT="0" -KEYWORDS="~amd64" -RESTRICT="test" - -REQUIRED_USE=${PYTHON_REQUIRED_USE} -RDEPEND=" - ${PYTHON_DEPS} - ~sci-libs/caffe2-${PV}[${PYTHON_SINGLE_USEDEP}] - $(python_gen_cond_dep ' - dev-python/typing-extensions[${PYTHON_USEDEP}] - dev-python/sympy[${PYTHON_USEDEP}] - ') -" -DEPEND="${RDEPEND} - $(python_gen_cond_dep ' - dev-python/pyyaml[${PYTHON_USEDEP}] - ') -" - -src_prepare() { - eapply \ - "${FILESDIR}"/${PN}-2.1.1-dontbuildagain.patch \ - "${FILESDIR}"/pytorch-1.9.0-Change-library-directory-according-to-CMake-build.patch \ - "${FILESDIR}"/${PN}-2.0.0-global-dlopen.patch \ - "${FILESDIR}"/pytorch-1.7.1-torch_shm_manager.patch \ - "${FILESDIR}"/${PN}-1.13.0-setup.patch \ - "${FILESDIR}"/${PN}-2.1.1-emptyso.patch \ - - # Set build dir for pytorch's setup - sed -i \ - -e "/BUILD_DIR/s|build|/var/lib/caffe2/|" \ - tools/setup_helpers/env.py \ - || die - distutils-r1_src_prepare - - hprefixify tools/setup_helpers/env.py -} - -python_compile() { - PYTORCH_BUILD_VERSION=${PV} \ - PYTORCH_BUILD_NUMBER=0 \ - USE_SYSTEM_LIBS=ON \ - CMAKE_BUILD_DIR="${BUILD_DIR}" \ - distutils-r1_python_compile develop sdist -} - -python_install() { - USE_SYSTEM_LIBS=ON distutils-r1_python_install -} diff --git a/sci-libs/rocBLAS/Manifest b/sci-libs/rocBLAS/Manifest deleted file mode 100644 index fc92723..0000000 --- a/sci-libs/rocBLAS/Manifest +++ /dev/null @@ -1,4 +0,0 @@ -DIST rocm-rocBLAS-5.7.1.tar.gz 55389700 BLAKE2B 9e58b1d29c8a04aa58ce17fdd9b0c2504934261851619dc5b696a04e8c6a79e7c44d86a6db7a9c76a434d76593de8c191cba6f163cf398d01cfc001e5fa32b5a SHA512 cfc73f6c490595a3c153c2ac2a3cb5926c48c2c19baa07ff3dcdf3a7ccaed82cfdff64ed5a3be64c349cb43d654d4b104d9090e2ec9f2061049d6a4921c07722 -DIST rocm-rocBLAS-6.1.1.tar.gz 100103895 BLAKE2B df89a21e47730714b80c62717a86d65ac0d819c2d33b2a3c6252b60b8d7cc9eb5f8f1db27159b0a8dfc87aba7ccad97e2f832bc0044e92d0b69c526d382c745a SHA512 74e847c4ddee16cae7f41e268a815ea03875519c365abe7dfce313a9545df245baa73301b432f64a36cc988281fec7530629a0d72583e9ea287c98ec8a0b3907 -DIST rocm-rocBLAS-6.3.2.tar.gz 57909504 BLAKE2B 0ed000a10c9e71465f83fb9abdb9a745c82bf32552e3d86c61bf0c802f3728f7fd4c47fbf677d01aa35c457dc5281c916ca80fdc033b2752afd6733aefa4653f SHA512 ecfb6c68b0a44ddae0e4e6cf5c41c0c33a9685c590004ffe48fdb163bd059d534181d3faed2a23142078c5f621b1955c91725357c3e8e0f9307b139b19af46fd -DIST rocm-rocBLAS-6.3.3.tar.gz 57909385 BLAKE2B a51274e2895419cc517ac24a0235c90f3b2551945b6936789abc78a08c8dde151de6d853d6378a702138227604af4cc185bde3acb5bf8999e09699d293bb2b85 SHA512 fcc8718e0c3dde8715f758e83f3a1ca45dde88ac56680e7723e2041dd3c1d7b9f575b1686552d04e7ef12b57188164c8abb5a6e4c568ade03d534edc30846c9e diff --git a/sci-libs/rocBLAS/files/rocBLAS-5.4.2-add-missing-header.patch b/sci-libs/rocBLAS/files/rocBLAS-5.4.2-add-missing-header.patch deleted file mode 100644 index cefad2b..0000000 --- a/sci-libs/rocBLAS/files/rocBLAS-5.4.2-add-missing-header.patch +++ /dev/null @@ -1,14 +0,0 @@ -Mitigate compilation issue. - -std::bad_alloc is defined in ---- a/clients/include/host_alloc.hpp -+++ b/clients/include/host_alloc.hpp -@@ -22,6 +22,8 @@ - - #pragma once - -+#include -+ - //! - //! @brief Host free memory w/o swap. Returns kB or -1 if unknown. - //! diff --git a/sci-libs/rocBLAS/files/rocBLAS-5.4.2-cpp_lib_filesystem.patch b/sci-libs/rocBLAS/files/rocBLAS-5.4.2-cpp_lib_filesystem.patch deleted file mode 100644 index 688fe7e..0000000 --- a/sci-libs/rocBLAS/files/rocBLAS-5.4.2-cpp_lib_filesystem.patch +++ /dev/null @@ -1,24 +0,0 @@ -Index: rocBLAS-rocm-5.4.2/clients/common/utility.cpp -=================================================================== ---- rocBLAS-rocm-5.4.2.orig/clients/common/utility.cpp -+++ rocBLAS-rocm-5.4.2/clients/common/utility.cpp -@@ -38,6 +38,7 @@ - #ifdef WIN32 - #define strcasecmp(A, B) _stricmp(A, B) - -+#include - #ifdef __cpp_lib_filesystem - #include - namespace fs = std::filesystem; -Index: rocBLAS-rocm-5.4.2/clients/include/singletons.hpp -=================================================================== ---- rocBLAS-rocm-5.4.2.orig/clients/include/singletons.hpp -+++ rocBLAS-rocm-5.4.2/clients/include/singletons.hpp -@@ -21,6 +21,6 @@ - * ************************************************************************ */ - - // global for device memory padding see d_vector.hpp -- -+#include - extern size_t g_DVEC_PAD; - void d_vector_set_pad_length(size_t pad); diff --git a/sci-libs/rocBLAS/files/rocBLAS-5.4.2-link-cblas.patch b/sci-libs/rocBLAS/files/rocBLAS-5.4.2-link-cblas.patch deleted file mode 100644 index a0a599a..0000000 --- a/sci-libs/rocBLAS/files/rocBLAS-5.4.2-link-cblas.patch +++ /dev/null @@ -1,12 +0,0 @@ -Fix CPU blas function not found linking issue ---- a/clients/CMakeLists.txt -+++ b/clients/CMakeLists.txt -@@ -119,7 +119,7 @@ if( BUILD_CLIENTS_BENCHMARKS OR BUILD_CLIENTS_TESTS) - set( BLIS_CPP ../common/blis_interface.cpp ) - set( BLAS_LIBRARY ${BUILD_DIR}/deps/blis/lib/libblis.a ) - else() -- set( BLAS_LIBRARY "blas" ) -+ set( BLAS_LIBRARY "blas -lcblas" ) - endif() - else() # WIN32 - set( BLAS_INCLUDE_DIR ${OPENBLAS_DIR}/include CACHE PATH "OpenBLAS library include path" ) diff --git a/sci-libs/rocBLAS/files/rocBLAS-5.7.1-expand-isa-compatibility.patch b/sci-libs/rocBLAS/files/rocBLAS-5.7.1-expand-isa-compatibility.patch deleted file mode 100644 index c5c5d47..0000000 --- a/sci-libs/rocBLAS/files/rocBLAS-5.7.1-expand-isa-compatibility.patch +++ /dev/null @@ -1,132 +0,0 @@ -Allow rocBLAS to load the compatible kernels when running on -architectures compatible with those ISAs. - -Based on patch from Cordell Bloor -https://salsa.debian.org/rocm-team/rocblas/-/blob/master/debian/patches/0012-expand-isa-compatibility.patch - ---- a/library/src/handle.cpp -+++ b/library/src/handle.cpp -@@ -21,6 +21,7 @@ - * ************************************************************************ */ - #include "handle.hpp" - #include -+#include - #include - #ifdef WIN32 - #include -@@ -77,6 +78,31 @@ static inline int getActiveArch(int deviceId) - { - hipDeviceProp_t deviceProperties; - hipGetDeviceProperties(&deviceProperties, deviceId); -+ // coerce to compatible arch -+ switch(deviceProperties.gcnArch) -+ { -+ case 902: -+ case 909: -+ case 912: -+ deviceProperties.gcnArch = 900; -+ std::strcpy(deviceProperties.gcnArchName, "gfx900"); -+ break; -+ case 1011: -+ case 1012: -+ case 1013: -+ deviceProperties.gcnArch = 1010; -+ std::strcpy(deviceProperties.gcnArchName, "gfx1010"); -+ break; -+ case 1031: -+ case 1032: -+ case 1033: -+ case 1034: -+ case 1035: -+ case 1036: -+ deviceProperties.gcnArch = 1030; -+ std::strcpy(deviceProperties.gcnArchName, "gfx1030"); -+ break; -+ } - return deviceProperties.gcnArch; - } - ---- a/library/src/rocblas_auxiliary.cpp -+++ b/library/src/rocblas_auxiliary.cpp -@@ -24,6 +24,7 @@ - #include "logging.hpp" - #include "rocblas-auxiliary.h" - #include -+#include - #include - #include - #include -@@ -1285,6 +1286,31 @@ std::string rocblas_internal_get_arch_name() - hipGetDevice(&deviceId); - hipDeviceProp_t deviceProperties; - hipGetDeviceProperties(&deviceProperties, deviceId); -+ // coerce to compatible arch -+ switch(deviceProperties.gcnArch) -+ { -+ case 902: -+ case 909: -+ case 912: -+ deviceProperties.gcnArch = 900; -+ std::strcpy(deviceProperties.gcnArchName, "gfx900"); -+ break; -+ case 1011: -+ case 1012: -+ case 1013: -+ deviceProperties.gcnArch = 1010; -+ std::strcpy(deviceProperties.gcnArchName, "gfx1010"); -+ break; -+ case 1031: -+ case 1032: -+ case 1033: -+ case 1034: -+ case 1035: -+ case 1036: -+ deviceProperties.gcnArch = 1030; -+ std::strcpy(deviceProperties.gcnArchName, "gfx1030"); -+ break; -+ } - return ArchName{}(deviceProperties); - } - ---- a/library/src/tensile_host.cpp -+++ b/library/src/tensile_host.cpp -@@ -45,6 +45,7 @@ extern "C" void rocblas_shutdown(); - #include - #include - #include -+#include - #include - #include - #include -@@ -837,6 +838,31 @@ namespace - - hipDeviceProp_t prop; - HIP_CHECK_EXC(hipGetDeviceProperties(&prop, deviceId)); -+ // coerce to compatible arch -+ switch(prop.gcnArch) -+ { -+ case 902: -+ case 909: -+ case 912: -+ prop.gcnArch = 900; -+ std::strcpy(prop.gcnArchName, "gfx900"); -+ break; -+ case 1011: -+ case 1012: -+ case 1013: -+ prop.gcnArch = 1010; -+ std::strcpy(prop.gcnArchName, "gfx1010"); -+ break; -+ case 1031: -+ case 1032: -+ case 1033: -+ case 1034: -+ case 1035: -+ case 1036: -+ prop.gcnArch = 1030; -+ std::strcpy(prop.gcnArchName, "gfx1030"); -+ break; -+ } - - m_deviceProp = std::make_shared(prop); - diff --git a/sci-libs/rocBLAS/files/rocBLAS-6.0.2-expand-isa-compatibility.patch b/sci-libs/rocBLAS/files/rocBLAS-6.0.2-expand-isa-compatibility.patch deleted file mode 100644 index ca895c4..0000000 --- a/sci-libs/rocBLAS/files/rocBLAS-6.0.2-expand-isa-compatibility.patch +++ /dev/null @@ -1,96 +0,0 @@ ---- a/library/src/handle.cpp -+++ b/library/src/handle.cpp -@@ -21,6 +21,7 @@ - * ************************************************************************ */ - #include "handle.hpp" - #include -+#include - #include - #ifdef WIN32 - #include -@@ -80,6 +81,20 @@ static Processor getActiveArch(int deviceId) - // strip out xnack/ecc from name - std::string deviceFullString(deviceProperties.gcnArchName); - std::string deviceString = deviceFullString.substr(0, deviceFullString.find(":")); -+ // coerce to compatible arch -+ int gcnArch = deviceString.substr(0, 3) == "gfx" ? std::stoi(deviceString.substr(3)) : 0; -+ switch(gcnArch) -+ { -+ case 902: case 909: case 912: -+ std::strcpy(deviceProperties.gcnArchName, "gfx900"); -+ break; -+ case 1013: -+ std::strcpy(deviceProperties.gcnArchName, "gfx1010"); -+ break; -+ case 1031: case 1032: case 1033: case 1034: case 1035: case 1036: -+ std::strcpy(deviceProperties.gcnArchName, "gfx1030"); -+ break; -+ } - - if(deviceString.find("gfx803") != std::string::npos) - { ---- a/library/src/rocblas_auxiliary.cpp -+++ b/library/src/rocblas_auxiliary.cpp -@@ -24,6 +24,7 @@ - #include "logging.hpp" - #include "rocblas-auxiliary.h" - #include -+#include - #include - #include - #include -@@ -1242,6 +1243,20 @@ std::string rocblas_internal_get_arch_name() - hipGetDevice(&deviceId); - hipDeviceProp_t deviceProperties; - hipGetDeviceProperties(&deviceProperties, deviceId); -+ // coerce to compatible arch -+ int gcnArch = strncmp(deviceProperties.gcnArchName, "gfx", 3) == 0 ? std::stoi(deviceProperties.gcnArchName + 3) : 0; -+ switch(gcnArch) -+ { -+ case 902: case 909: case 912: -+ std::strcpy(deviceProperties.gcnArchName, "gfx900"); -+ break; -+ case 1013: -+ std::strcpy(deviceProperties.gcnArchName, "gfx1010"); -+ break; -+ case 1031: case 1032: case 1033: case 1034: case 1035: case 1036: -+ std::strcpy(deviceProperties.gcnArchName, "gfx1030"); -+ break; -+ } - return ArchName{}(deviceProperties); - } - ---- a/library/src/tensile_host.cpp -+++ b/library/src/tensile_host.cpp -@@ -45,6 +45,7 @@ extern "C" void rocblas_shutdown(); - #include - #include - #include -+#include - #include - #include - #include -@@ -802,6 +803,23 @@ namespace - std::string deviceFullString(prop.gcnArchName); - std::string deviceString - = deviceFullString.substr(0, deviceFullString.find(":")); -+ // coerce to compatible arch -+ int gcnArch = deviceString.substr(0, 3) == "gfx" ? std::stoi(deviceString.substr(3)) : 0; -+ switch(gcnArch) -+ { -+ case 902: case 909: case 912: -+ std::strcpy(prop.gcnArchName, "gfx900"); -+ deviceString = prop.gcnArchName; -+ break; -+ case 1013: -+ std::strcpy(prop.gcnArchName, "gfx1010"); -+ deviceString = prop.gcnArchName; -+ break; -+ case 1031: case 1032: case 1033: case 1034: case 1035: case 1036: -+ std::strcpy(prop.gcnArchName, "gfx1030"); -+ deviceString = prop.gcnArchName; -+ break; -+ } - m_devicePropMap[deviceString] = std::make_shared(prop); - } - } diff --git a/sci-libs/rocBLAS/files/rocBLAS-6.3.0-find-cblas.patch b/sci-libs/rocBLAS/files/rocBLAS-6.3.0-find-cblas.patch deleted file mode 100644 index 4afb077..0000000 --- a/sci-libs/rocBLAS/files/rocBLAS-6.3.0-find-cblas.patch +++ /dev/null @@ -1,19 +0,0 @@ -diff --git a/clients/CMakeLists.txt b/clients/CMakeLists.txt -index 4485fee..51eedc9 100644 ---- a/clients/CMakeLists.txt -+++ b/clients/CMakeLists.txt -@@ -140,10 +140,12 @@ if( BUILD_CLIENTS_BENCHMARKS OR BUILD_CLIENTS_TESTS) - set( BLAS_LIBRARY /usr/local/lib/libblis.a ) - set( BLIS_INCLUDE_DIR /usr/local/include/blis ) - else() -- message( WARNING "Could not find libblis" ) -+ message( FATAL_ERROR "Could not find libblis" ) - endif() - else() -- set( BLAS_LIBRARY "blas -lcblas" ) -+ find_package( CBLAS CONFIG REQUIRED ) -+ set( BLAS_LIBRARY ${CBLAS_LIBRARIES} ) -+ set( BLAS_INCLUDE_DIR ${CBLAS_INCLUDE_DIRS} ) - endif() - else() # WIN32 - file(TO_CMAKE_PATH "C:/Program\ Files/AMD/AOCL-Windows/amd-blis/lib/ILP64/AOCL-LibBlis-Win-MT.lib" AOCL_BLAS_LIBRARY) diff --git a/sci-libs/rocBLAS/files/rocBLAS-6.3.0-no-git.patch b/sci-libs/rocBLAS/files/rocBLAS-6.3.0-no-git.patch deleted file mode 100644 index 39ce71a..0000000 --- a/sci-libs/rocBLAS/files/rocBLAS-6.3.0-no-git.patch +++ /dev/null @@ -1,22 +0,0 @@ -Git should not be a required dependency, as hash is not available for releases. ---- a/library/CMakeLists.txt -+++ b/library/CMakeLists.txt -@@ -144,17 +144,8 @@ if( BUILD_VERBOSE ) - message( STATUS "\t==>CMAKE_SHARED_LINKER_FLAGS_RELEASE: ${CMAKE_SHARED_LINKER_FLAGS_RELEASE}" ) - endif( ) - --find_package(Git REQUIRED) -- --# Get the git hash of the rocBLAS branch --execute_process( -- COMMAND "${GIT_EXECUTABLE}" rev-parse HEAD -- WORKING_DIRECTORY ${CMAKE_CURRENT_LIST_DIR} -- OUTPUT_VARIABLE GIT_HASH_ROCBLAS -- OUTPUT_STRIP_TRAILING_WHITESPACE) -- - #set the rocBLAS commit hash --set(rocblas_VERSION_COMMIT_ID "${GIT_HASH_ROCBLAS}") -+set(rocblas_VERSION_COMMIT_ID "") - - #set the Tensile commit hash - set(tensile_VERSION_COMMIT_ID "${tensile_tag}") diff --git a/sci-libs/rocBLAS/metadata.xml b/sci-libs/rocBLAS/metadata.xml deleted file mode 100644 index bd93447..0000000 --- a/sci-libs/rocBLAS/metadata.xml +++ /dev/null @@ -1,27 +0,0 @@ - - - - - sci@gentoo.org - - - gentoo@holzke.net - Wilfried Holzke - - - xgreenlandforwyy@gmail.com - Yiyang Wu - - - lockalsash@gmail.com - Sv. Lockal - - - Perform rocblas-test to compare the result between rocBLAS and system BLAS. - Build and install rocblas-bench. - Build with hipBLASLt for some non-batched and strided batched problems on gfx12. - - - ROCm/rocBLAS - - diff --git a/sci-libs/rocBLAS/rocBLAS-5.7.1-r2.ebuild b/sci-libs/rocBLAS/rocBLAS-5.7.1-r2.ebuild deleted file mode 100644 index 80644ab..0000000 --- a/sci-libs/rocBLAS/rocBLAS-5.7.1-r2.ebuild +++ /dev/null @@ -1,111 +0,0 @@ -# Copyright 1999-2024 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -DOCS_BUILDER="doxygen" -DOCS_DIR="docs/.doxygen" -DOCS_DEPEND="media-gfx/graphviz" -ROCM_VERSION=${PV} -inherit cmake docs edo multiprocessing rocm - -DESCRIPTION="AMD's library for BLAS on ROCm" -HOMEPAGE="https://github.com/ROCmSoftwarePlatform/rocBLAS" -SRC_URI="https://github.com/ROCmSoftwarePlatform/rocBLAS/archive/rocm-${PV}.tar.gz -> rocm-${P}.tar.gz" -S="${WORKDIR}/${PN}-rocm-${PV}" - -LICENSE="BSD" -KEYWORDS="~amd64" -SLOT="0/$(ver_cut 1-2)" -RESTRICT="!test? ( test )" -IUSE="benchmark test" -REQUIRED_USE="${ROCM_REQUIRED_USE}" - -BDEPEND=" - >=dev-build/rocm-cmake-5.3 - dev-util/Tensile:${SLOT} - dev-python/joblib - test? ( dev-cpp/gtest ) -" - -DEPEND=" - >=dev-cpp/msgpack-cxx-6.0.0 - =dev-util/hip-5* - test? ( - virtual/blas - dev-cpp/gtest - llvm-runtimes/openmp - ) - benchmark? ( - virtual/blas - llvm-runtimes/openmp - ) -" - -QA_FLAGS_IGNORED="/usr/lib64/rocblas/library/.*" - -PATCHES=( - "${FILESDIR}"/${PN}-5.4.2-cpp_lib_filesystem.patch - "${FILESDIR}"/${PN}-5.4.2-add-missing-header.patch - "${FILESDIR}"/${PN}-5.4.2-link-cblas.patch - "${FILESDIR}"/${PN}-5.7.1-expand-isa-compatibility.patch - ) - -src_prepare() { - cmake_src_prepare - sed -e "s:,-rpath=.*\":\":" -i clients/CMakeLists.txt || die -} - -src_configure() { - addpredict /dev/random - addpredict /dev/kfd - addpredict /dev/dri/ - - local mycmakeargs=( - -DCMAKE_SKIP_RPATH=On - -DBUILD_FILE_REORG_BACKWARD_COMPATIBILITY=OFF - -DROCM_SYMLINK_LIBS=OFF - -DAMDGPU_TARGETS="$(get_amdgpu_flags)" - -DTensile_LOGIC="asm_full" - -DTensile_COMPILER="hipcc" - -DTensile_LIBRARY_FORMAT="msgpack" - -DTensile_CODE_OBJECT_VERSION="default" - -DTensile_ROOT="${EPREFIX}/usr/share/Tensile" - -DBUILD_WITH_TENSILE=ON - -DCMAKE_INSTALL_INCLUDEDIR="include/rocblas" - -DBUILD_CLIENTS_SAMPLES=OFF - -DBUILD_CLIENTS_TESTS=$(usex test ON OFF) - -DBUILD_CLIENTS_BENCHMARKS=$(usex benchmark ON OFF) - -DTensile_CPU_THREADS=$(makeopts_jobs) - -DBUILD_WITH_PIP=OFF - ) - - CXX=hipcc cmake_src_configure -} - -src_compile() { - docs_compile - cmake_src_compile -} - -src_test() { - check_amdgpu - cd "${BUILD_DIR}"/clients/staging || die - export ROCBLAS_TEST_TIMEOUT=3600 ROCBLAS_TENSILE_LIBPATH="${BUILD_DIR}/Tensile/library" - export LD_LIBRARY_PATH="${BUILD_DIR}/clients:${BUILD_DIR}/library/src" - edob ./${PN,,}-test -} - -src_install() { - cmake_src_install - - if use benchmark; then - cd "${BUILD_DIR}" || die - dolib.a clients/librocblas_fortran_client.a - dobin clients/staging/rocblas-bench - fi - - # Stop llvm-strip from removing .strtab section from *.hsaco files, - # otherwise rocclr/elf/elf.cpp complains with "failed: null sections(STRTAB)" and crashes - dostrip -x /usr/$(get_libdir)/rocblas/library/ -} diff --git a/sci-libs/rocBLAS/rocBLAS-6.1.1-r1.ebuild b/sci-libs/rocBLAS/rocBLAS-6.1.1-r1.ebuild deleted file mode 100644 index e9646e4..0000000 --- a/sci-libs/rocBLAS/rocBLAS-6.1.1-r1.ebuild +++ /dev/null @@ -1,121 +0,0 @@ -# Copyright 1999-2025 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -DOCS_BUILDER="doxygen" -DOCS_DIR="docs/.doxygen" -DOCS_DEPEND="media-gfx/graphviz" -LLVM_COMPAT=( 20 ) -ROCM_VERSION=${PV} - -inherit cmake docs edo multiprocessing rocm llvm-r1 - -DESCRIPTION="AMD's library for BLAS on ROCm" -HOMEPAGE="https://github.com/ROCmSoftwarePlatform/rocBLAS" -SRC_URI="https://github.com/ROCmSoftwarePlatform/rocBLAS/archive/rocm-${PV}.tar.gz -> rocm-${P}.tar.gz" -S="${WORKDIR}/${PN}-rocm-${PV}" - -LICENSE="BSD" -SLOT="0/$(ver_cut 1-2)" -KEYWORDS="~amd64" -IUSE="benchmark test video_cards_amdgpu" -RESTRICT="!test? ( test )" -REQUIRED_USE="${ROCM_REQUIRED_USE}" - -BDEPEND=" - >=dev-build/rocm-cmake-5.3 - video_cards_amdgpu? ( - dev-util/Tensile:${SLOT} - ) - test? ( dev-cpp/gtest ) -" - -DEPEND=" - >=dev-cpp/msgpack-cxx-6.0.0 - dev-util/hip:${SLOT} - test? ( - virtual/blas - dev-cpp/gtest - llvm-runtimes/openmp - ) - benchmark? ( - virtual/blas - llvm-runtimes/openmp - ) -" - -QA_FLAGS_IGNORED="/usr/lib64/rocblas/library/.*" - -PATCHES=( - "${FILESDIR}"/${PN}-5.4.2-cpp_lib_filesystem.patch - "${FILESDIR}"/${PN}-5.4.2-add-missing-header.patch - "${FILESDIR}"/${PN}-5.4.2-link-cblas.patch - "${FILESDIR}"/${PN}-6.0.2-expand-isa-compatibility.patch - ) - -src_prepare() { - cmake_src_prepare - sed -e "s:,-rpath=.*\":\":" -i clients/CMakeLists.txt || die - - # bug 944820: f16c instuctions cause SIGILL on pre-AVX512 CPUs - sed -i -e "s/-mf16c //" clients/benchmarks/CMakeLists.txt \ - clients/gtest/CMakeLists.txt clients/samples/CMakeLists.txt library/CMakeLists.txt || die -} - -src_configure() { - rocm_use_hipcc - - local mycmakeargs=( - -DCMAKE_SKIP_RPATH=ON - -DBUILD_FILE_REORG_BACKWARD_COMPATIBILITY=OFF - -DROCM_SYMLINK_LIBS=OFF - -DAMDGPU_TARGETS="$(get_amdgpu_flags)" - -DBUILD_WITH_TENSILE="$(usex video_cards_amdgpu)" - -DCMAKE_INSTALL_INCLUDEDIR="include/rocblas" - -DBUILD_CLIENTS_SAMPLES=OFF - -DBUILD_CLIENTS_TESTS="$(usex test)" - -DBUILD_CLIENTS_BENCHMARKS="$(usex benchmark)" - -DBUILD_WITH_PIP=OFF - ) - - if usex video_cards_amdgpu; then - mycmakeargs+=( - -DTensile_LOGIC="asm_full" - -DTensile_COMPILER="hipcc" - -DTensile_LIBRARY_FORMAT="msgpack" - -DTensile_CODE_OBJECT_VERSION="default" - -DTensile_ROOT="${EPREFIX}/usr/share/Tensile" - -DTensile_CPU_THREADS="$(makeopts_jobs)" - ) - fi - - cmake_src_configure -} - -src_compile() { - docs_compile - cmake_src_compile -} - -src_test() { - check_amdgpu - cd "${BUILD_DIR}"/clients/staging || die - export ROCBLAS_TEST_TIMEOUT=3600 ROCBLAS_TENSILE_LIBPATH="${BUILD_DIR}/Tensile/library" - export LD_LIBRARY_PATH="${BUILD_DIR}/clients:${BUILD_DIR}/library/src" - edob "./${PN,,}-test" -} - -src_install() { - cmake_src_install - - if use benchmark; then - cd "${BUILD_DIR}" || die - dolib.a clients/librocblas_fortran_client.a - dobin clients/staging/rocblas-bench - fi - - # Stop llvm-strip from removing .strtab section from *.hsaco files, - # otherwise rocclr/elf/elf.cpp complains with "failed: null sections(STRTAB)" and crashes - dostrip -x "/usr/$(get_libdir)/rocblas/library/" -} diff --git a/sci-libs/rocBLAS/rocBLAS-6.3.2.ebuild b/sci-libs/rocBLAS/rocBLAS-6.3.2.ebuild deleted file mode 100644 index 57d33d7..0000000 --- a/sci-libs/rocBLAS/rocBLAS-6.3.2.ebuild +++ /dev/null @@ -1,127 +0,0 @@ -# Copyright 1999-2025 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -DOCS_BUILDER="doxygen" -DOCS_DIR="docs/.doxygen" -DOCS_DEPEND="media-gfx/graphviz" -LLVM_COMPAT=( 20 ) -ROCM_VERSION=${PV} - -inherit cmake docs edo flag-o-matic multiprocessing rocm llvm-r1 - -DESCRIPTION="AMD's library for BLAS on ROCm" -HOMEPAGE="https://github.com/ROCm/rocBLAS" -SRC_URI="https://github.com/ROCm/rocBLAS/archive/rocm-${PV}.tar.gz -> rocm-${P}.tar.gz" -S="${WORKDIR}/${PN}-rocm-${PV}" - -LICENSE="BSD" -SLOT="0/$(ver_cut 1-2)" -KEYWORDS="~amd64" -IUSE="benchmark hipblaslt test video_cards_amdgpu" -RESTRICT="!test? ( test )" -REQUIRED_USE="${ROCM_REQUIRED_USE}" - -BDEPEND=" - >=dev-build/rocm-cmake-5.3 - video_cards_amdgpu? ( - dev-util/Tensile:${SLOT} - ) - hipblaslt? ( sci-libs/hipBLASLt:${SLOT} ) - test? ( dev-cpp/gtest ) -" - -DEPEND=" - >=dev-cpp/msgpack-cxx-6.0.0 - dev-util/hip:${SLOT} - test? ( - virtual/blas - dev-cpp/gtest - llvm-runtimes/openmp - ) - benchmark? ( - virtual/blas - llvm-runtimes/openmp - ) -" - -QA_FLAGS_IGNORED="/usr/lib64/rocblas/library/.*" - -PATCHES=( - "${FILESDIR}"/${PN}-5.4.2-add-missing-header.patch - "${FILESDIR}"/${PN}-5.4.2-link-cblas.patch - "${FILESDIR}"/${PN}-6.0.2-expand-isa-compatibility.patch - "${FILESDIR}"/${PN}-6.3.0-no-git.patch - "${FILESDIR}"/${PN}-6.3.0-find-cblas.patch -) - -src_prepare() { - cmake_src_prepare - sed -e "s:,-rpath=.*\":\":" -i clients/CMakeLists.txt || die -} - -src_configure() { - rocm_use_hipcc - - # too many warnings - append-cxxflags -Wno-explicit-specialization-storage-class - - local mycmakeargs=( - -DCMAKE_SKIP_RPATH=ON - -DBUILD_FILE_REORG_BACKWARD_COMPATIBILITY=OFF - -DROCM_SYMLINK_LIBS=OFF - -DAMDGPU_TARGETS="$(get_amdgpu_flags)" - -DBUILD_WITH_TENSILE="$(usex video_cards_amdgpu)" - -DCMAKE_INSTALL_INCLUDEDIR="include/rocblas" - -DBUILD_CLIENTS_SAMPLES=OFF - -DBUILD_CLIENTS_TESTS="$(usex test ON OFF)" - -DBUILD_CLIENTS_BENCHMARKS="$(usex benchmark ON OFF)" - -DBUILD_WITH_PIP=OFF - -DBUILD_WITH_HIPBLASLT="$(usex hipblaslt ON OFF)" - -DLINK_BLIS=OFF - -Wno-dev - ) - - if usex video_cards_amdgpu; then - mycmakeargs+=( - -DTensile_LOGIC="asm_full" - -DTensile_COMPILER="hipcc" - -DTensile_LIBRARY_FORMAT="msgpack" - -DTensile_CODE_OBJECT_VERSION="default" - -DTensile_ROOT="${EPREFIX}/usr/share/Tensile" - -DTensile_CPU_THREADS="$(makeopts_jobs)" - ) - fi - - cmake_src_configure -} - -src_compile() { - docs_compile - cmake_src_compile -} - -src_test() { - check_amdgpu - cd "${BUILD_DIR}"/clients/staging || die - export ROCBLAS_TEST_TIMEOUT=3600 ROCBLAS_TENSILE_LIBPATH="${BUILD_DIR}/Tensile/library" - export LD_LIBRARY_PATH="${BUILD_DIR}/clients:${BUILD_DIR}/library/src" - - # `--gtest_filter=*quick*:*pre_checkin*-*known_bug*` is >1h on 7900XTX - edob ./rocblas-test --yaml rocblas_smoke.yaml -} - -src_install() { - cmake_src_install - - if use benchmark; then - cd "${BUILD_DIR}" || die - dolib.a clients/librocblas_fortran_client.a - dobin clients/staging/rocblas-bench - fi - - # Stop llvm-strip from removing .strtab section from *.hsaco files, - # otherwise rocclr/elf/elf.cpp complains with "failed: null sections(STRTAB)" and crashes - dostrip -x "/usr/$(get_libdir)/rocblas/library/" -} diff --git a/sci-libs/rocBLAS/rocBLAS-6.3.3.ebuild b/sci-libs/rocBLAS/rocBLAS-6.3.3.ebuild deleted file mode 100644 index 57d33d7..0000000 --- a/sci-libs/rocBLAS/rocBLAS-6.3.3.ebuild +++ /dev/null @@ -1,127 +0,0 @@ -# Copyright 1999-2025 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -DOCS_BUILDER="doxygen" -DOCS_DIR="docs/.doxygen" -DOCS_DEPEND="media-gfx/graphviz" -LLVM_COMPAT=( 20 ) -ROCM_VERSION=${PV} - -inherit cmake docs edo flag-o-matic multiprocessing rocm llvm-r1 - -DESCRIPTION="AMD's library for BLAS on ROCm" -HOMEPAGE="https://github.com/ROCm/rocBLAS" -SRC_URI="https://github.com/ROCm/rocBLAS/archive/rocm-${PV}.tar.gz -> rocm-${P}.tar.gz" -S="${WORKDIR}/${PN}-rocm-${PV}" - -LICENSE="BSD" -SLOT="0/$(ver_cut 1-2)" -KEYWORDS="~amd64" -IUSE="benchmark hipblaslt test video_cards_amdgpu" -RESTRICT="!test? ( test )" -REQUIRED_USE="${ROCM_REQUIRED_USE}" - -BDEPEND=" - >=dev-build/rocm-cmake-5.3 - video_cards_amdgpu? ( - dev-util/Tensile:${SLOT} - ) - hipblaslt? ( sci-libs/hipBLASLt:${SLOT} ) - test? ( dev-cpp/gtest ) -" - -DEPEND=" - >=dev-cpp/msgpack-cxx-6.0.0 - dev-util/hip:${SLOT} - test? ( - virtual/blas - dev-cpp/gtest - llvm-runtimes/openmp - ) - benchmark? ( - virtual/blas - llvm-runtimes/openmp - ) -" - -QA_FLAGS_IGNORED="/usr/lib64/rocblas/library/.*" - -PATCHES=( - "${FILESDIR}"/${PN}-5.4.2-add-missing-header.patch - "${FILESDIR}"/${PN}-5.4.2-link-cblas.patch - "${FILESDIR}"/${PN}-6.0.2-expand-isa-compatibility.patch - "${FILESDIR}"/${PN}-6.3.0-no-git.patch - "${FILESDIR}"/${PN}-6.3.0-find-cblas.patch -) - -src_prepare() { - cmake_src_prepare - sed -e "s:,-rpath=.*\":\":" -i clients/CMakeLists.txt || die -} - -src_configure() { - rocm_use_hipcc - - # too many warnings - append-cxxflags -Wno-explicit-specialization-storage-class - - local mycmakeargs=( - -DCMAKE_SKIP_RPATH=ON - -DBUILD_FILE_REORG_BACKWARD_COMPATIBILITY=OFF - -DROCM_SYMLINK_LIBS=OFF - -DAMDGPU_TARGETS="$(get_amdgpu_flags)" - -DBUILD_WITH_TENSILE="$(usex video_cards_amdgpu)" - -DCMAKE_INSTALL_INCLUDEDIR="include/rocblas" - -DBUILD_CLIENTS_SAMPLES=OFF - -DBUILD_CLIENTS_TESTS="$(usex test ON OFF)" - -DBUILD_CLIENTS_BENCHMARKS="$(usex benchmark ON OFF)" - -DBUILD_WITH_PIP=OFF - -DBUILD_WITH_HIPBLASLT="$(usex hipblaslt ON OFF)" - -DLINK_BLIS=OFF - -Wno-dev - ) - - if usex video_cards_amdgpu; then - mycmakeargs+=( - -DTensile_LOGIC="asm_full" - -DTensile_COMPILER="hipcc" - -DTensile_LIBRARY_FORMAT="msgpack" - -DTensile_CODE_OBJECT_VERSION="default" - -DTensile_ROOT="${EPREFIX}/usr/share/Tensile" - -DTensile_CPU_THREADS="$(makeopts_jobs)" - ) - fi - - cmake_src_configure -} - -src_compile() { - docs_compile - cmake_src_compile -} - -src_test() { - check_amdgpu - cd "${BUILD_DIR}"/clients/staging || die - export ROCBLAS_TEST_TIMEOUT=3600 ROCBLAS_TENSILE_LIBPATH="${BUILD_DIR}/Tensile/library" - export LD_LIBRARY_PATH="${BUILD_DIR}/clients:${BUILD_DIR}/library/src" - - # `--gtest_filter=*quick*:*pre_checkin*-*known_bug*` is >1h on 7900XTX - edob ./rocblas-test --yaml rocblas_smoke.yaml -} - -src_install() { - cmake_src_install - - if use benchmark; then - cd "${BUILD_DIR}" || die - dolib.a clients/librocblas_fortran_client.a - dobin clients/staging/rocblas-bench - fi - - # Stop llvm-strip from removing .strtab section from *.hsaco files, - # otherwise rocclr/elf/elf.cpp complains with "failed: null sections(STRTAB)" and crashes - dostrip -x "/usr/$(get_libdir)/rocblas/library/" -}