summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO18
-rw-r--r--PKGBUILD35
2 files changed, 53 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..9eedc607b9a
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,18 @@
+pkgbase = hip-nvcc
+ pkgdesc = Heterogeneous Interface for Portability ROCm
+ pkgver = 3.1.0
+ pkgrel = 1
+ url = https://github.com/ROCm-Developer-Tools/HIP
+ arch = x86_64
+ license = custom
+ makedepends = libelf
+ makedepends = git
+ makedepends = cmake
+ makedepends = cuda
+ provides = hip
+ conflicts = hip
+ source = hip-nvcc-3.1.0.tar.gz::https://github.com/ROCm-Developer-Tools/HIP/archive/roc-3.1.0.tar.gz
+ sha256sums = 3e7b7ef508f4c0d34756104936bc25eaffe419415013c93da72244aac199ae91
+
+pkgname = hip-nvcc
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..dc70ab19dac
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,35 @@
+# Maintainer: acxz <akashpatel2008 at yahoo dot com>
+pkgname=hip-nvcc
+pkgver=3.1.0
+pkgrel=1
+pkgdesc="Heterogeneous Interface for Portability ROCm"
+arch=('x86_64')
+url="https://github.com/ROCm-Developer-Tools/HIP"
+license=('custom')
+makedepends=('libelf' 'git' 'cmake' 'cuda')
+provides=('hip')
+conflicts=('hip')
+_dir="HIP-roc-${pkgver}"
+source=("${pkgname}-${pkgver}.tar.gz::https://github.com/ROCm-Developer-Tools/HIP/archive/roc-${pkgver}.tar.gz")
+sha256sums=('3e7b7ef508f4c0d34756104936bc25eaffe419415013c93da72244aac199ae91')
+
+build() {
+ mkdir -p "${_dir}/build"
+ cd "${_dir}/build"
+
+ cmake -DCMAKE_BUILD_TYPE=Release \
+ -DCMAKE_INSTALL_PREFIX=/opt/rocm/hip \
+ ..
+ make
+}
+
+package() {
+ cd "${_dir}/build"
+
+ make DESTDIR="$pkgdir" install
+
+ install -d "$pkgdir/etc/ld.so.conf.d"
+ cat << EOF > "$pkgdir/etc/ld.so.conf.d/hip.conf"
+/opt/rocm/hip/lib
+EOF
+}