blob: a9253c557adf93d3fc5a52f3396df3bb916d41a9 (
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
38
39
40
|
# Maintainer: acxz <akashpatel2008 at yahoo dot com>
pkgname=hipsycl-cuda
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 hip-runtime-nvidia cuda)
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=/opt/hipSYCL/CUDA \
-DWITH_CUDA_BACKEND=ON \
-DWITH_ROCM_BACKEND=OFF \
-DWITH_CPU_BACKEND=ON \
-DCUDA_TOOLKIT_ROOT_DIR=/opt/cuda
make
}
package() {
cd "${srcdir}/${_pkgname}-${pkgver}/build"
make DESTDIR=${pkgdir} install
}
|