aboutsummaryrefslogtreecommitdiff
path: root/hipsparse
diff options
context:
space:
mode:
authoracxz2020-06-26 09:12:01 -0400
committeracxz2020-06-26 09:12:01 -0400
commita4927b29380672cadea6f85e4d39013c3d5f4f34 (patch)
treeebe799283a18c73fc03da2285afe2a66e119d1e6 /hipsparse
parente685a89417b3f460825ab3ff5e3c7dd21ae664f7 (diff)
[hipsparse] use c++20 and fix build
Diffstat (limited to 'hipsparse')
-rw-r--r--hipsparse/.SRCINFO6
-rw-r--r--hipsparse/PKGBUILD21
2 files changed, 22 insertions, 5 deletions
diff --git a/hipsparse/.SRCINFO b/hipsparse/.SRCINFO
index 7d733dd..e396202 100644
--- a/hipsparse/.SRCINFO
+++ b/hipsparse/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = hipsparse
pkgdesc = rocSPARSE marshalling library.
pkgver = 3.5.0
- pkgrel = 1
+ pkgrel = 2
url = https://rocmdocs.amd.com/en/latest/ROCm_Libraries/ROCm_Libraries.html#hipsparse
arch = x86_64
license = MIT
@@ -11,7 +11,11 @@ pkgbase = hipsparse
depends = hip-rocclr
depends = rocsparse
source = hipsparse-3.5.0.tar.gz::https://github.com/ROCmSoftwarePlatform/hipSPARSE/archive/rocm-3.5.0.tar.gz
+ source = fix_hcc_compress.patch::https://github.com/ROCmSoftwarePlatform/hipSPARSE/commit/e79985dccde22d826aceb3badfc643a3227979d2.patch
+ source = fix_nvcc_compress.patch::https://github.com/ROCmSoftwarePlatform/hipSPARSE/commit/530047af4a0f437dafc02f76b3a17e3b1536c7ec.patch
sha256sums = fa16b2a307a5d9716066c2876febcbc1cef855bf0c96d235d2d8f2206a0fb69d
+ sha256sums = 6b7493f0caa1b8042ef43c1a4cee6584abeeb9319c53a79e8b2e558cd1076992
+ sha256sums = db755df3ae712d33d4954b7d302d656b1bdc8f226c063ee701d3b4d835297686
pkgname = hipsparse
diff --git a/hipsparse/PKGBUILD b/hipsparse/PKGBUILD
index 5da425d..6371594 100644
--- a/hipsparse/PKGBUILD
+++ b/hipsparse/PKGBUILD
@@ -1,7 +1,9 @@
# Maintainer: Markus Näther <naetherm@informatik.uni-freiburg.de>
+# Maintainer: acxz <akashpatel2008 at yahoo dot com>
+
pkgname=hipsparse
pkgver=3.5.0
-pkgrel=1
+pkgrel=2
pkgdesc='rocSPARSE marshalling library.'
arch=('x86_64')
url='https://rocmdocs.amd.com/en/latest/ROCm_Libraries/ROCm_Libraries.html#hipsparse'
@@ -9,12 +11,23 @@ license=('MIT')
depends=('hip-rocclr' 'rocsparse')
makedepends=('cmake' 'git' 'rocminfo')
_git='https://github.com/ROCmSoftwarePlatform/hipSPARSE'
-source=("$pkgname-$pkgver.tar.gz::$_git/archive/rocm-$pkgver.tar.gz")
-sha256sums=('fa16b2a307a5d9716066c2876febcbc1cef855bf0c96d235d2d8f2206a0fb69d')
+source=("$pkgname-$pkgver.tar.gz::$_git/archive/rocm-$pkgver.tar.gz"
+ "fix_hcc_compress.patch::$_git/commit/e79985dccde22d826aceb3badfc643a3227979d2.patch"
+ "fix_nvcc_compress.patch::$_git/commit/530047af4a0f437dafc02f76b3a17e3b1536c7ec.patch")
+sha256sums=('fa16b2a307a5d9716066c2876febcbc1cef855bf0c96d235d2d8f2206a0fb69d'
+ '6b7493f0caa1b8042ef43c1a4cee6584abeeb9319c53a79e8b2e558cd1076992'
+ 'db755df3ae712d33d4954b7d302d656b1bdc8f226c063ee701d3b4d835297686')
+
+prepare() {
+ cd ${srcdir}/hipSPARSE-rocm-$pkgver
+ patch --forward --strip=1 --input="${srcdir}/fix_hcc_compress.patch"
+ patch --forward --strip=1 --input="${srcdir}/fix_nvcc_compress.patch"
+}
build() {
CXX=/opt/rocm/hip/bin/hipcc \
cmake -B build -Wno-dev \
+ -DCMAKE_CXX_STANDARD=20 \
-DCMAKE_INSTALL_PREFIX=opt/rocm \
-Damd_comgr_DIR=/opt/rocm/lib/cmake/amd_comgr \
-DAMDDeviceLibs_DIR=/opt/rocm/lib/cmake/AMDDeviceLibs \
@@ -29,7 +42,7 @@ build() {
package() {
DESTDIR="$pkgdir" make -C build install
- install -Dm644 /dev/stdin "$pkgdir/etc/ld.so.conf.d/hipsparse.conf" << EOF
+ install -Dm644 /dev/stdin "$pkgdir/etc/ld.so.conf.d/hipsparse.conf" << EOF
/opt/rocm/hipsparse/lib
EOF
install -Dm644 "$srcdir/hipSPARSE-rocm-$pkgver/LICENSE.md" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"