diff options
author | acxz | 2020-03-14 18:38:39 -0400 |
---|---|---|
committer | acxz | 2020-03-14 18:38:39 -0400 |
commit | a0b52cde220502f6f6f8e0f311535202e026cbfa (patch) | |
tree | f7c3891c3da5897fc0f56b3821d49f252d1705ca | |
download | aur-a0b52cde220502f6f6f8e0f311535202e026cbfa.tar.gz |
create hipsycl-cpu package
-rw-r--r-- | .SRCINFO | 21 | ||||
-rw-r--r-- | PKGBUILD | 37 |
2 files changed, 58 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..79b10f2188fc --- /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 000000000000..32f0b6ce6ef6 --- /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 +} |