summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authoracxz2020-03-14 18:38:39 -0400
committeracxz2020-03-14 18:38:39 -0400
commita0b52cde220502f6f6f8e0f311535202e026cbfa (patch)
treef7c3891c3da5897fc0f56b3821d49f252d1705ca /PKGBUILD
downloadaur-hipsycl-cpu.tar.gz
create hipsycl-cpu package
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD37
1 files changed, 37 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..32f0b6ce6ef
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,37 @@
+# Maintainer: acxz <akashpatel2008 at yahoo dot com>
+
+pkgname=hipsycl-cpu
+pkgver=0.8.0
+pkgrel=1
+pkgdesc="Implementation of SYCL 1.2.1 over AMD HIP/NVIDIA CUDA"
+arch=("x86_64")
+url="https://github.com/illuhad/hipSYCL"
+license=("BSD")
+provides=(hipsycl sycl)
+makedepends=(cmake)
+depends=(llvm clang python boost hipcpu openmp)
+source=("$pkgname-$pkgver::https://github.com/illuhad/hipSYCL/archive/v$pkgver.tar.gz")
+sha256sums=('4ec5218103d1b38efae9a51ca752b9b44bbd02dada78c05e20e00c9c25e9ea19')
+
+_pkgname=hipSYCL
+
+prepare() {
+ # Delete the install lines for contrib hip and hipcpu
+ sed -i '/contrib/d' ${srcdir}/${_pkgname}-${pkgver}/CMakeLists.txt
+}
+
+build() {
+ mkdir -p ${srcdir}/${_pkgname}-${pkgver}/build
+ cd ${srcdir}/${_pkgname}-${pkgver}/build
+
+ cmake .. -DCMAKE_BUILD_TYPE=Release \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DWITH_CUDA_BACKEND=OFF \
+ -DWITH_ROCM_BACKEND=OFF \
+ -DWITH_CPU_BACKEND=ON
+}
+
+package() {
+ cd "${srcdir}/${_pkgname}-${pkgver}/build"
+ make DESTDIR=${pkgdir} install
+}