blob: b203cd65295caf8d6ff80f15039025afebbe5540 (
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
41
42
43
44
|
# Maintainer: Aksel Alpay <aksel.alpay at uni-heidelberg dot de>
# Maintainer: acxz <akashpatel2008 at yahoo dot com>
pkgname=hipsycl-rocm-git
pkgver=r2006.d9b45cd4
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-rocm hipsycl sycl)
makedepends=(cmake git)
depends=(llvm clang python boost hipcpu openmp hip-runtime-amd rocm-hip-sdk)
_pkgname=opensycl
source=("${_pkgname}::git+https://github.com/OpenSYCL/OpenSYCL.git")
sha256sums=('SKIP')
pkgver() {
cd "${_pkgname}"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
prepare() {
# Delete the install lines for contrib hip and hipcpu
sed -i '/contrib/d' ${srcdir}/${_pkgname}/CMakeLists.txt
}
build() {
mkdir -p ${srcdir}/${_pkgname}/build
cd ${srcdir}/${_pkgname}/build
cmake .. -DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/opt/hipSYCL/ROCm \
-DWITH_CUDA_BACKEND=OFF \
-DWITH_ROCM_BACKEND=ON \
-DWITH_CPU_BACKEND=ON
make
}
package() {
cd "${srcdir}/${_pkgname}/build"
make DESTDIR=${pkgdir} install
}
|