diff options
author | naetherm | 2019-05-21 18:23:50 +0200 |
---|---|---|
committer | naetherm | 2019-05-21 18:23:50 +0200 |
commit | 86eb108a6b26c4f37cd0d12aa83be5b708340c43 (patch) | |
tree | d72389396df876b48e6f836bf2b093e3718ed129 | |
download | aur-86eb108a6b26c4f37cd0d12aa83be5b708340c43.tar.gz |
Initial commit
-rw-r--r-- | .SRCINFO | 21 | ||||
-rw-r--r-- | PKGBUILD | 44 |
2 files changed, 65 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..0499207c1ef7 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,21 @@ +pkgbase = rocprim + pkgdesc = ROCm Parallel Primitives + pkgver = 2.3.0 + pkgrel = 1 + url = https://github.com/ROCmSoftwarePlatform/rocPRIM + arch = x86_64 + license = NCSAOSL + makedepends = git + makedepends = cmake + makedepends = gcc + makedepends = make + makedepends = hcc + makedepends = python2 + makedepends = rocminfo + depends = hcc + depends = hip + source = https://github.com/ROCmSoftwarePlatform/rocPRIM/archive/2.3.tar.gz + sha256sums = 9dbc0c7714df00479cf94181ae5f120040377b1057aa7de89304d557fc66c8ff + +pkgname = rocprim + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..75f0c5a1f7a2 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,44 @@ +# Maintainer: Markus Näther <naetherm@informatik.uni-freiburg.de> +pkgname=rocprim +pkgver=2.3.0 +pkgrel=1 +pkgdesc="ROCm Parallel Primitives" +arch=('x86_64') +url="https://github.com/ROCmSoftwarePlatform/rocPRIM" +license=('NCSAOSL') +depends=(hcc hip) +makedepends=(git cmake gcc make hcc python2 rocminfo) +srcver="2.3" +source=("https://github.com/ROCmSoftwarePlatform/rocPRIM/archive/$srcver.tar.gz") +sha256sums=("9dbc0c7714df00479cf94181ae5f120040377b1057aa7de89304d557fc66c8ff") + +build() { + mkdir -p "$srcdir/build" + cd "$srcdir/build" + + # fix broken build with stack protection + export CXXFLAGS=$(echo $CXXFLAGS | sed -e 's/-fstack-protector-strong//') + export CFLAGS=$(echo $CFLAGS | sed -e 's/-fstack-protector-strong//') + export CPPFLAGS=$(echo $CPPFLAGS | sed -e 's/-fstack-protector-strong//') + + # compile with HCC + export CXX=/opt/rocm/hcc/bin/hcc + + # TODO: fix librocprim.so, it contains references to $srcdir + cmake -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_INSTALL_PREFIX="$pkgdir/opt/rocm/rocprim" \ + -DBUILD_TEST=OFF \ + -G "Unix Makefiles" \ + "$srcdir/rocPRIM-$srcver" + make +} + +package() { + cd $srcdir/build + make install + + mkdir -p $pkgdir/etc/ld.so.conf.d + cat <<-EOF > $pkgdir/etc/ld.so.conf.d/rocprim.conf + /opt/rocm/rocprim/lib/ + EOF +} |