diff options
author | neeshy | 2020-03-07 14:26:49 -0500 |
---|---|---|
committer | neeshy | 2020-03-07 14:26:49 -0500 |
commit | efd111bb5f38841ffeb3a06cb64c39d1c7f5daec (patch) | |
tree | 241224472fed1251c72422318a51f7e5e31f401c /rocblas | |
parent | 4291e5c452cc814b009fe41d7e5bc4ec6a87807b (diff) | |
parent | 7c9965639ddb3c7c578bffac3e3b58317f0022ab (diff) |
Add 'rocblas/' from commit '7c9965639ddb3c7c578bffac3e3b58317f0022ab'
git-subtree-dir: rocblas
git-subtree-mainline: 4291e5c452cc814b009fe41d7e5bc4ec6a87807b
git-subtree-split: 7c9965639ddb3c7c578bffac3e3b58317f0022ab
Diffstat (limited to 'rocblas')
-rw-r--r-- | rocblas/.SRCINFO | 22 | ||||
-rw-r--r-- | rocblas/PKGBUILD | 50 |
2 files changed, 72 insertions, 0 deletions
diff --git a/rocblas/.SRCINFO b/rocblas/.SRCINFO new file mode 100644 index 0000000..15f8d6a --- /dev/null +++ b/rocblas/.SRCINFO @@ -0,0 +1,22 @@ +pkgbase = rocblas + pkgdesc = Next generation BLAS implementation for ROCm platform + pkgver = 3.0.0 + pkgrel = 1 + url = https://github.com/ROCmSoftwarePlatform/rocBLAS + arch = x86_64 + license = NCSAOSL + makedepends = git + makedepends = cmake + makedepends = gcc + makedepends = ninja + makedepends = hcc>=3.0.0 + makedepends = python2 + makedepends = rocm-comgr>=3.0.0 + makedepends = rocminfo + depends = hcc + depends = hip + source = https://github.com/ROCmSoftwarePlatform/rocBLAS/archive/rocm-3.0.tar.gz + sha256sums = c475bdfb78e90254eb5a1905c4fab4e382ae6a73cc93718b8bec563bce7b8edb + +pkgname = rocblas + diff --git a/rocblas/PKGBUILD b/rocblas/PKGBUILD new file mode 100644 index 0000000..b52db0e --- /dev/null +++ b/rocblas/PKGBUILD @@ -0,0 +1,50 @@ +# Maintainer: Markus Näther <naether.markus@gmail.com> +pkgname=rocblas +pkgver=3.0.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") + +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//') + + # compile with 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" \ + -DBUILD_WITH_TENSILE=OFF \ + -G "Ninja" \ + "$srcdir/rocBLAS-rocm-$srcver" + ninja +} + +package() { + ninja -C "$srcdir/build" install + + mkdir -p $pkgdir/etc/ld.so.conf.d + cat <<-EOF > $pkgdir/etc/ld.so.conf.d/rocblas.conf + /opt/rocm/rocblas/lib/ + EOF +} |