summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO21
-rw-r--r--PKGBUILD37
2 files changed, 58 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..79b10f2188f
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,21 @@
+pkgbase = hipsycl-cpu
+ pkgdesc = Implementation of SYCL 1.2.1 over AMD HIP/NVIDIA CUDA
+ pkgver = 0.8.0
+ pkgrel = 1
+ url = https://github.com/illuhad/hipSYCL
+ arch = x86_64
+ license = BSD
+ makedepends = cmake
+ depends = llvm
+ depends = clang
+ depends = python
+ depends = boost
+ depends = hipcpu
+ depends = openmp
+ provides = hipsycl
+ provides = sycl
+ source = hipsycl-cpu-0.8.0::https://github.com/illuhad/hipSYCL/archive/v0.8.0.tar.gz
+ sha256sums = 4ec5218103d1b38efae9a51ca752b9b44bbd02dada78c05e20e00c9c25e9ea19
+
+pkgname = hipsycl-cpu
+
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
+}