1 # Maintainer: Torsten Keßler <tpkessler at archlinux dot org>
2 # Contributor: Markus Näther <naetherm@informatik.uni-freiburg.de>
6 pkgdesc='Header-only library providing HIP parallel primitives'
8 url='https://codedocs.xyz/ROCmSoftwarePlatform/rocPRIM'
9 _git='https://github.com/ROCmSoftwarePlatform/rocPRIM'
12 makedepends=('rocm-cmake')
13 source=("$pkgname-$pkgver.tar.gz::$_git/archive/rocm-$pkgver.tar.gz")
14 sha256sums=('968d9059f93d3f0f8a602f7b989e54e36cff2f9136486b6869e4534a5bf8c7d9')
15 _dirname="$(basename "$_git")-$(basename "${source[0]}" ".tar.gz")"
18 # -fcf-protection is not supported by HIP, see
19 # https://docs.amd.com/bundle/ROCm-Compiler-Reference-Guide-v5.5/page/Appendix_A.html
21 CXXFLAGS="${CXXFLAGS} -fcf-protection=none" \
26 -DCMAKE_BUILD_TYPE=None \
27 -DCMAKE_CXX_COMPILER=/opt/rocm/bin/hipcc \
28 -DCMAKE_INSTALL_PREFIX=/opt/rocm \
29 -Damd_comgr_DIR=/opt/rocm/lib/cmake/amd_comgr
34 DESTDIR="$pkgdir" cmake --install build
36 install -Dm644 "$_dirname/LICENSE.txt" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"