blob: 6d964463018efdde029c99fc442e61869011ad51 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
# Maintainer: acxz <akashpatel2008 at yahoo dot com>
pkgname=hipsycl-cpu
pkgver=0.9.4
pkgrel=1
pkgdesc="Multi-backend implementation of SYCL for CPUs and GPUs"
arch=("x86_64")
url="https://github.com/OpenSYCL/OpenSYCL"
license=("BSD")
provides=(hipsycl sycl)
makedepends=(cmake)
depends=(llvm clang python boost hipcpu openmp)
source=("$pkgname-$pkgver::https://github.com/OpenSYCL/OpenSYCL/archive/v$pkgver.tar.gz")
sha256sums=('6262533191c812966e2f8b67e6ae510ae5ad2cf7e0caecc9957e8a69423e51c4')
_pkgname=OpenSYCL
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
}
|