Date: Friday, January 27, 2023 @ 14:44:09 Author: tpkessler Revision: 1388546
upgpkg: rocblas 5.4.2-1: ROCm patch release, add patch for new msgpack release, parallel source compilation Added: rocblas/trunk/find-msgpack-5.patch Modified: rocblas/trunk/PKGBUILD ----------------------+ PKGBUILD | 20 +++++++++++++++----- find-msgpack-5.patch | 11 +++++++++++ 2 files changed, 26 insertions(+), 5 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2023-01-27 14:38:26 UTC (rev 1388545) +++ PKGBUILD 2023-01-27 14:44:09 UTC (rev 1388546) @@ -1,8 +1,8 @@ # Maintainer: Torsten Keßler <tpkessler at archlinux dot org> # Contributor: Markus Näther <[email protected]> pkgname=rocblas -pkgver=5.4.1 -pkgrel=2 +pkgver=5.4.2 +pkgrel=1 pkgdesc='Next generation BLAS implementation for ROCm platform' arch=('x86_64') url='https://rocblas.readthedocs.io/en/latest' @@ -13,14 +13,24 @@ _rocblas='https://github.com/ROCmSoftwarePlatform/rocBLAS' _tensile='https://github.com/ROCmSoftwarePlatform/Tensile' source=("$pkgname-$pkgver.tar.gz::$_rocblas/archive/rocm-$pkgver.tar.gz" - "$pkgname-tensile-$pkgver.tar.gz::$_tensile/archive/refs/tags/rocm-$pkgver.tar.gz") -sha256sums=('2f6d30b025306ba5f378154eb0494ac9260190120d085b67c3f499e7d2b6a70b' - '6bcc08426c14c203c799c93815293c2a17d5b656936536dcece1302d53816cef') + "$pkgname-tensile-$pkgver.tar.gz::$_tensile/archive/refs/tags/rocm-$pkgver.tar.gz" + "find-msgpack-5.patch") +sha256sums=('37d3fed075031c1707f9cc6eefe59db6c41aa7bbe13b18f35c3f0394bbad039e' + '435a5ed86b5bd6022654501f5e27556760f55940f8d23c3cecf924b6239d2712' + '3f91bf087e4ea72eaef5acd500e16b61aa69c029cfcca14666799a7c42a0c5aa') options=(!lto) _dirname="$(basename "$_rocblas")-$(basename "${source[0]}" ".tar.gz")" _tensile_dir="$(basename "$_tensile")-$(basename "${source[1]}" ".tar.gz")" +prepare() { + cd "$_tensile_dir" + patch -Np1 -i "$srcdir/find-msgpack-5.patch" +} + build() { + # Compile source code for supported GPU archs in parallel + export HIPCC_COMPILE_FLAGS_APPEND="-parallel-jobs=$(nproc)" + export HIPCC_LINK_FLAGS_APPEND="-parallel-jobs=$(nproc)" # -fcf-protection is not supported by HIP, see # https://docs.amd.com/bundle/ROCm-Compiler-Reference-Guide-v5.4/page/Appendix_A.html PATH="/opt/rocm/llvm/bin:/opt/rocm/bin:${PATH}" \ Added: find-msgpack-5.patch =================================================================== --- find-msgpack-5.patch (rev 0) +++ find-msgpack-5.patch 2023-01-27 14:44:09 UTC (rev 1388546) @@ -0,0 +1,11 @@ +--- Tensile-rocm-5.4.2/Tensile/Source/lib/CMakeLists.txt.bak 2023-01-27 08:30:16.374451318 +0100 ++++ Tensile-rocm-5.4.2/Tensile/Source/lib/CMakeLists.txt 2023-01-27 08:30:33.194515443 +0100 +@@ -103,7 +103,7 @@ + endif() + + if(TENSILE_USE_MSGPACK) +- find_package(msgpack REQUIRED) ++ find_package(msgpackc-cxx REQUIRED) + target_compile_definitions(TensileHost PUBLIC -DTENSILE_MSGPACK=1) + + if(TARGET msgpackc-cxx)
