blob: 69c44a8df1a0ab7f8cbefb96bdc5bc38ba1dcd55 (
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: Daniel Otero <otero (dot) o (dot) daniel (at) gmail (dot) com>
# Contributor: Evangelos Foutras <evangelos@foutrelis.com>
pkgname=openmp-nvptx
_pkgname=openmp
pkgver=14.0.6
pkgrel=1
pkgdesc="LLVM OpenMP Runtime Library with NVPTX offloading targets enaled"
arch=('x86_64')
url="https://openmp.llvm.org/"
license=('custom:Apache 2.0 with LLVM Exception')
depends=('glibc' 'libelf' 'libffi')
optdepends=('cuda')
makedepends=('cmake' 'clang' 'cuda' 'llvm')
provides=('openmp')
conflicts=('openmp')
_source_base=https://github.com/llvm/llvm-project/releases/download/llvmorg-$pkgver
source=($_source_base/$_pkgname-$pkgver.src.tar.xz{,.sig})
sha256sums=('4f731ff202add030d9d68d4c6daabd91d3aeed9812e6a5b4968815cfdff0eb1f'
'SKIP')
validpgpkeys+=('B6C8F98282B944E3B0D5C2530FC3042E345AD05D') # Hans Wennborg <hans@chromium.org>
validpgpkeys+=('474E22316ABF4785A88C6E8EA2C794A986419D8A') # Tom Stellard <tstellar@redhat.com>
build() {
cmake -B build -S "$_pkgname-$pkgver.src" \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_C_COMPILER=clang \
-DCMAKE_CXX_COMPILER=clang++ \
-DCUDA_TOOLKIT_ROOT_DIR=/opt/cuda \
-DLIBOMPTARGET_NVPTX_COMPUTE_CAPABILITIES=35,50,52,53,60,61,62,70,72,75 \
-DLIBOMPTARGET_NVPTX_ENABLE_BCLIB=ON \
-DLIBOMP_INSTALL_ALIASES=OFF
cmake --build build
}
package() {
DESTDIR="$pkgdir" cmake --install build
install -Dm644 "$_pkgname-$pkgver.src/LICENSE.TXT" "$pkgdir/usr/share/licenses/$_pkgname/LICENSE"
rm "$pkgdir/usr/lib/libarcher_static.a"
}
# vim:set ts=2 sw=2 et:
|