diff options
author | neeshy | 2020-03-03 23:55:45 -0500 |
---|---|---|
committer | neeshy | 2020-03-07 14:29:30 -0500 |
commit | 1c4187a0b5ab4d227bbd4a9de9b7e9b0287756f1 (patch) | |
tree | 9597c246525f41ab410426eac9c70e46798db77f /PKGBUILD | |
parent | 7c9965639ddb3c7c578bffac3e3b58317f0022ab (diff) | |
download | aur-1c4187a0b5ab4d227bbd4a9de9b7e9b0287756f1.tar.gz |
Cleanup
Consistent style across project
Remove extraneous dependencies
Update packages
Update checksums and .SRCINFO
Specify proper license
Fix prefixes
Prefer make to ninja
Much more
TODO: miopen, rocm-cmake{,-git}, rock-dkms{,-git},
Remove duplicates in makedepends and depends
git submodules
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 51 |
1 files changed, 24 insertions, 27 deletions
@@ -1,50 +1,47 @@ # Maintainer: Markus Näther <naether.markus@gmail.com> pkgname=rocblas -pkgver=3.0.0 +_pkgver=3.1 +pkgver="$_pkgver.0" pkgrel=1 pkgdesc="Next generation BLAS implementation for ROCm platform" arch=('x86_64') url="https://github.com/ROCmSoftwarePlatform/rocBLAS" -license=('NCSAOSL') -depends=(hcc hip) -makedepends=(git cmake gcc ninja "hcc>=${pkgver}" python2 "rocm-comgr>=${pkgver}" rocminfo) -srcver="3.0" -source=("https://github.com/ROCmSoftwarePlatform/rocBLAS/archive/rocm-$srcver.tar.gz") -sha256sums=("c475bdfb78e90254eb5a1905c4fab4e382ae6a73cc93718b8bec563bce7b8edb") +license=('custom:NCSAOSL') +depends=('hcc' 'hip') +makedepends=('cmake' "hcc>=$pkgver" 'python2' "rocm-comgr>=$pkgver" 'rocminfo') +source=("https://github.com/ROCmSoftwarePlatform/rocBLAS/archive/rocm-$_pkgver.tar.gz") +sha256sums=('b2240a4a413cd7887d8e0110953c92c67fa941d29c7ccf910e9e7faa44770c80') build() { mkdir -p "$srcdir/build" cd "$srcdir/build" - # Tensile library needs python to be python2 - #export PATH="$srcdir:$PATH" - #[[ -e "$srcdir/python" ]] || ln -s /usr/bin/python2 "$srcdir/python" - # 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//') + export CFLAGS="$(sed -e 's/-fstack-protector-strong//' <<< "$CFLAGS")" + export CXXFLAGS="$(sed -e 's/-fstack-protector-strong//' <<< "$CXXFLAGS")" + export CPPFLAGS="$(sed -e 's/-fstack-protector-strong//' <<< "$CPPFLAGS")" # compile with HCC - export CXX=/opt/rocm/hcc/bin/hcc + export CXX="/opt/rocm/hcc/bin/hcc" # TODO: fix librocblas.so, it contains references to $srcdir cmake -DCMAKE_BUILD_TYPE=Release \ - -DCMAKE_INSTALL_PREFIX="$pkgdir/opt/rocm/rocblas" \ - -HIP_DIR="/opt/rocm/hip/lib/cmake/hip" \ - -hcc_DIR="/opt/rocm/hcc/lib/cmake/hcc" \ - -Damd_comgr_DIR="/opt/rocm/lib/cmake/amd_comgr" \ + -DCMAKE_INSTALL_PREFIX=/opt/rocm/rocblas \ + -HIP_DIR=/opt/rocm/hip/lib/cmake/hip \ + -hcc_DIR=/opt/rocm/hcc/lib/cmake/hcc \ + -Damd_comgr_DIR=/opt/rocm/lib/cmake/amd_comgr \ -DBUILD_WITH_TENSILE=OFF \ - -G "Ninja" \ - "$srcdir/rocBLAS-rocm-$srcver" - ninja + "$srcdir/rocBLAS-rocm-$_pkgver" + make } package() { - ninja -C "$srcdir/build" install + cd "$srcdir/build" + + make DESTDIR="$pkgdir" install - mkdir -p $pkgdir/etc/ld.so.conf.d - cat <<-EOF > $pkgdir/etc/ld.so.conf.d/rocblas.conf - /opt/rocm/rocblas/lib/ - EOF + install -d "$pkgdir/etc/ld.so.conf.d" + cat << EOF > "$pkgdir/etc/ld.so.conf.d/rocblas.conf" +/opt/rocm/rocblas/lib +EOF } |