blob: 9bac1bb93047ec3eff1808eeebbf534e3632a0ba (
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
|
# Maintainer: Marco Julian Solanki <aur@solanki.mozmail.com>
pkgname='adaptivecpp'
pkgver=24.06.0
pkgrel=1
pkgdesc='A modern, community-driven platform for C++-based heterogeneous programming models targeting CPUs and GPUs from all major vendors.'
arch=('x86_64')
url='https://github.com/AdaptiveCpp/AdaptiveCpp'
license=('BSD-2-Clause')
conflicts=('adaptivecpp-git')
source=("${pkgname}::git+${url}.git#tag=v${pkgver}")
sha512sums=('SKIP')
depends=(
'cuda'
'gcc-libs'
'glibc'
'hip-runtime-amd'
'level-zero-loader'
'llvm-libs'
'nvidia-utils'
'ocl-icd'
'python'
'spirv-tools'
)
makedepends=(
'boost'
'cmake'
'doxygen'
'git'
'level-zero-headers'
'llvm'
'openmp'
'rocm-llvm'
)
build() {
cmake -Wno-dev \
-B build \
-S "${pkgname}" \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX='/usr' \
-DCMAKE_SKIP_INSTALL_RPATH=YES \
-DWITH_SSCP_COMPILER=ON \
-DWITH_STDPAR_COMPILER=ON \
-DWITH_ACCELERATED_CPU=ON \
-DWITH_CUDA_BACKEND=ON \
-DWITH_ROCM_BACKEND=ON \
-DWITH_LEVEL_ZERO_BACKEND=ON \
-DWITH_OPENCL_BACKEND=ON \
cmake --build build --parallel $(nproc)
}
package() {
DESTDIR="${pkgdir}" cmake --install build
install -Dm644 "${pkgname}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
cd "${pkgdir}" && ln -svr usr/lib/hipSYCL/llvm-to-backend/*.so usr/lib
}
|