diff options
author | V3n3RiX <venerix@koprulu.sector> | 2022-07-09 15:43:36 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2022-07-09 15:43:36 +0100 |
commit | 2719f73b6813d11d13a9650cdd2ab8ec6e69385d (patch) | |
tree | 8c816148bcbd22757d892089c989ae614eae4f5a /dev-util/Tensile | |
parent | 0f558761aa2dee1017b4751e4017205e015a9560 (diff) |
gentoo resync : 09.07.2022
Diffstat (limited to 'dev-util/Tensile')
-rw-r--r-- | dev-util/Tensile/Manifest | 3 | ||||
-rw-r--r-- | dev-util/Tensile/Tensile-5.0.2-r1.ebuild (renamed from dev-util/Tensile/Tensile-5.0.2.ebuild) | 1 | ||||
-rw-r--r-- | dev-util/Tensile/files/Tensile-5.0.2-adjust-parallel.patch | 65 |
3 files changed, 68 insertions, 1 deletions
diff --git a/dev-util/Tensile/Manifest b/dev-util/Tensile/Manifest index 5148fecda258..26f0aac4a517 100644 --- a/dev-util/Tensile/Manifest +++ b/dev-util/Tensile/Manifest @@ -4,6 +4,7 @@ AUX Tensile-4.3.0-gfx1031.patch 7037 BLAKE2B ea2e5dec9d5f6749a78cae4d1659a08b712 AUX Tensile-4.3.0-hsaco-compile-specified-arch.patch 3859 BLAKE2B 4590978cff0fdb0501ba2405615775cb3f8900ce164c3d57cc59dfe82e1adc25376b6463855a045f5e0652cc985b0015566b95ff28327c59f2db875a84cb49b3 SHA512 57520f1d46f46c7cfd5b8c3ae307da07695c19479b687ce994ad9fba2e755ed7c776c3d8bee8e0642c7613a5d53d8469f329b1eb07563c13d2f7bda8b3d36687 AUX Tensile-4.3.0-output-commands.patch 1629 BLAKE2B c43395d8e8aeb956d5eb84c8a34ad4b995ed32499ceababeb22d5ca3ac5ee6e8ef353a1467a77943a441f0840b9a6ad1f53202ec8673ef3753aa2bec1395fec4 SHA512 45bdae1d87f6e31d337b22f146b9dee25f4f87357c6ac52bd843556dd742431db10efb55fb8ef815cc9941b5b9f05970d43a6fec0f2d9195c30c633e33d138bf AUX Tensile-4.3.0-use-ninja.patch 957 BLAKE2B cb919b224aaeb3b9d65a755ff0688aa823b70361d2ee940d62f33828c118a60c88cd0f108b6e34b22097d9c4c5122a4db2808332a97cd6e7685a4447570b7552 SHA512 3d206a093e870fc95f0ed42e08691144589112d4581f73ba1c4c74ed9bdad0812ec4f67a6076a8a3ac9ab89c61c70f1baaedb774e0908177473be2d206858bf4 +AUX Tensile-5.0.2-adjust-parallel.patch 2936 BLAKE2B faca0234d615e4451b83b53a23147eb441e7929a3ef7542bef3ac5d0a383a6d1aa966373a012cc40bcbd1137a16a80a9c88b4d5459552b6b04c4819cb325e8d9 SHA512 d32f358133e0727b9ea66300f680451222190c0b7c9d91a9e0364fb2589b0ae12d69facb5872a81bd36a770ad649a22120649e6d3550b02bc6365706392caf57 AUX Tensile-5.0.2-fix-arch-parse.patch 424 BLAKE2B 43e716ccc9256c2f98cc1d2807e776599b384875161233d4a010a53f11a5764fd7a5b4c50ded1762737e9fbe7923b64e9353ee4590fd1b6b9b03ac621af35c9b SHA512 5913e7fc42bc5b43e1dcca531e4ef88b524325b497601171a9844013906c2ffc87469a4c55037c721ace5757c6aaf4d8bf8ca683f659f9d8988555c90425802a AUX Tensile-5.0.2-gentoopath.patch 3410 BLAKE2B bbf2c406bbcf2c34efd04667788719f6f10aebda3f9d9096e6798c1a8924768df4fed30223e2f4675af88c41841d148e43e3cd63edc7523dab4618ae245b0339 SHA512 c7b99eab1f0c979f54fcac3b2dcb4a2094b9a536bb392fcf4fb62050b1dc6e61f5280d3d1c7e3ed21617ebe693a17eb2bb7535a93f700123fe6aa6f28f256514 AUX Tensile-5.0.2-gfx1031.patch 5561 BLAKE2B 244bb644a90ba34f500f4d0cc634acf041cce42f9a5a9f10ee7bd1feff3b78b626b56f3b8cfa4005cc422ef643cd60a7da954618ff9f8f460568ff4b011136bc SHA512 1cd1dd95e481a76fde21dd09aac1ac02f1372e552eeb45eb100dc970639e28f52a709735aca6480d2286b8c747a75435aa7f2e2a288ffe2a596d6f75e4bd17ec @@ -12,5 +13,5 @@ DIST Tensile-5.0.2-PR1419.patch.gz 43754 BLAKE2B 3b1d7333ed0115f77816806e7735e25 DIST rocm-Tensile-4.3.0.tar.gz 14250149 BLAKE2B 030138eaca2a0aadd96801e6dbd72e510716dd90553ef3795c5e04e00a34a05ecae82b24f755e4033a4acfcdb1cf26291da1e7902bb090f89a010d403e832beb SHA512 126db0b413c716fba8d5be9bff7a44fd1badacbf32f3db8d0db649819177db37ebd56fd22dd3c809655f5d29675be115e698cd10bc3d0b4b23878ae3726fce47 DIST rocm-Tensile-5.0.2.tar.gz 14362090 BLAKE2B d44c3135496db41c4eb2545f6054c84493e89ef6357da881dae6859763338417e7a9e142cdce7e2de0536684bb641049ad0440964adbe68d03ca329f01efabc9 SHA512 f5ab7d7cbc5ba25498a02a6b7c07d5a9a548edcd44b439b92c8718072382adc18ae78274db1a7174e06436ac1396f3b4edafc7f491a2c87086c368e7270e64e3 EBUILD Tensile-4.3.0-r1.ebuild 2764 BLAKE2B e24ddb516d8dfd9e5e691f567f5b97b279e518b38be49a2cc69e8eae100d4d2ce7dc1432247c0bd5c94656ff1a7faf88a8e8f2e8df3dbbbc491eb4323cc20706 SHA512 79859e7dd5647bc4c1eb766faa9b3116994ed74aeb900caaf1b524a1216dcadd8d0c608d097a0c4c1d51b3117b75ccf7a061b7624cad6390fd5ce37494d67987 -EBUILD Tensile-5.0.2.ebuild 2588 BLAKE2B 6c96777b8e08bf2cc70ec1d4bc77a97ea311dd3612d21ae3c8ea364d14287e982f0d2efe0c41b14e1108f64842c56f7ea202cddbb89cceaa57a8990d866ca6cb SHA512 606b503214c13747877380b6b91f80e780d83e9ade7ae983a4e350bf485b7bb5f90deaf9bc2844b4f94afb8c5d155103c2147ac402a0503edbafa0cbbf4ac11d +EBUILD Tensile-5.0.2-r1.ebuild 2640 BLAKE2B a09e82c0d91aebdc308c58a5e1b09a6cbc998a6cb67dde419949532a39c915396d46c4e87d824ed8c8bc735c31c6cad9b9bc7a3aee96063203f8364f50d1c686 SHA512 0218b8b1276ab0f9038a02d0d0f94c169dd8da9a2f694ac097bb894298b04bf7e5fc87b66d7761cacc0415980dbca4f5c3a3f38fb044db4433ee071e4a49c64d MISC metadata.xml 350 BLAKE2B f621bb03aafc000672f022db9cad9a1fed65b912129d26ed7e717ba8e5cfb11f0d6b309905b6e12b07993a7aa0cbebf18aeaf92d643eff5419d765e31b3c52a7 SHA512 99b497edddaaf6d84159df959fb8b0a5d18ea0ecc879d600a2a1fc004554612e1422b258a2f7c5f73148caca93f9283481b53669f7247d62782401fdb112f69e diff --git a/dev-util/Tensile/Tensile-5.0.2.ebuild b/dev-util/Tensile/Tensile-5.0.2-r1.ebuild index c9240e233281..5bb9a3f21927 100644 --- a/dev-util/Tensile/Tensile-5.0.2.ebuild +++ b/dev-util/Tensile/Tensile-5.0.2-r1.ebuild @@ -33,6 +33,7 @@ PATCHES=( "${FILESDIR}"/${PN}-4.3.0-output-commands.patch "${FILESDIR}"/${PN}-5.0.2-gfx1031.patch "${FILESDIR}"/${PN}-5.0.2-fix-arch-parse.patch "${FILESDIR}"/${PN}-5.0.2-use-ninja.patch + "${FILESDIR}"/${PN}-5.0.2-adjust-parallel.patch "${WORKDIR}"/${PN}-5.0.2-PR1419.patch ) diff --git a/dev-util/Tensile/files/Tensile-5.0.2-adjust-parallel.patch b/dev-util/Tensile/files/Tensile-5.0.2-adjust-parallel.patch new file mode 100644 index 000000000000..b96429232c78 --- /dev/null +++ b/dev-util/Tensile/files/Tensile-5.0.2-adjust-parallel.patch @@ -0,0 +1,65 @@ +From 25b1621549f9b120462988913e657684645be79d Mon Sep 17 00:00:00 2001 +From: Lee Ringham <lringham@amd.com> +Date: Tue, 2 Nov 2021 14:43:07 -0600 +Subject: [PATCH] Added better control of parallelism to control memory usage + +--- + Tensile/Source/TensileCreateLibrary.cmake | 7 +++++-- + Tensile/cmake/TensileConfig.cmake | 5 +++++ + 2 files changed, 10 insertions(+), 2 deletions(-) + +diff --git a/Tensile/Source/TensileCreateLibrary.cmake b/Tensile/Source/TensileCreateLibrary.cmake +index 1dbacf41df..996f365bcf 100644 +--- a/Tensile/Source/TensileCreateLibrary.cmake ++++ b/Tensile/Source/TensileCreateLibrary.cmake +@@ -33,7 +33,8 @@ function(TensileCreateLibraryCmake + Tensile_LIBRARY_FORMAT + Tensile_MERGE_FILES + Tensile_SHORT_FILE_NAMES +- Tensile_LIBRARY_PRINT_DEBUG ) ++ Tensile_LIBRARY_PRINT_DEBUG ++ Tensile_CPU_THREADS ) + + # make Tensile_PACKAGE_LIBRARY and optional parameter + # to avoid breaking applications which us this +@@ -51,6 +52,7 @@ function(TensileCreateLibraryCmake + message(STATUS "Tensile_COMPILER from TensileCreateLibraryCmake : ${Tensile_COMPILER}") + message(STATUS "Tensile_ARCHITECTURE from TensileCreateLibraryCmake : ${Tensile_ARCHITECTURE}") + message(STATUS "Tensile_LIBRARY_FORMAT from TensileCreateLibraryCmake : ${Tensile_LIBRARY_FORMAT}") ++ message(STATUS "Tensile_CPU_THREADS from TensileCreateLibraryCmake : ${Tensile_CPU_THREADS}") + + #execute_process(COMMAND chmod 755 ${Tensile_ROOT}/bin/TensileCreateLibrary) + #execute_process(COMMAND chmod 755 ${Tensile_ROOT}/bin/Tensile) +@@ -89,7 +91,8 @@ function(TensileCreateLibraryCmake + set(Tensile_CREATE_COMMAND ${Tensile_CREATE_COMMAND} "--code-object-version=${Tensile_CODE_OBJECT_VERSION}") + set(Tensile_CREATE_COMMAND ${Tensile_CREATE_COMMAND} "--cxx-compiler=${Tensile_COMPILER}") + set(Tensile_CREATE_COMMAND ${Tensile_CREATE_COMMAND} "--library-format=${Tensile_LIBRARY_FORMAT}") +- ++ set(Tensile_CREATE_COMMAND ${Tensile_CREATE_COMMAND} "--jobs=${Tensile_CPU_THREADS}") ++ + # TensileLibraryWriter positional arguments + set(Tensile_CREATE_COMMAND ${Tensile_CREATE_COMMAND} + ${Tensile_LOGIC_PATH} +diff --git a/Tensile/cmake/TensileConfig.cmake b/Tensile/cmake/TensileConfig.cmake +index 0ac8517c2c..fa8cb96305 100644 +--- a/Tensile/cmake/TensileConfig.cmake ++++ b/Tensile/cmake/TensileConfig.cmake +@@ -112,6 +112,7 @@ function(TensileCreateLibraryFiles + LIBRARY_FORMAT + TENSILE_ROOT + VAR_PREFIX ++ CPU_THREADS + ) + + # Multi value settings +@@ -184,6 +185,10 @@ function(TensileCreateLibraryFiles + set(Options ${Options} "--cmake-cxx-compiler=${Tensile_COMPILER_PATH}") + endif() + ++ if(Tensile_CPU_THREADS) ++ set(Options ${Options} "--jobs=${Tensile_CPU_THREADS}") ++ endif() ++ + if(Tensile_LIBRARY_FORMAT) + set(Options ${Options} "--library-format=${Tensile_LIBRARY_FORMAT}") + if(Tensile_LIBRARY_FORMAT MATCHES "yaml") |