blob: 454d8f14d31c6094f2dac87498c3984f6db44971 (
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
|
# Maintainer: Jakub OkoĊski <jakub@okonski.org>
pkgname=rocfft
pkgver=0.9.2
pkgrel=1
pkgdesc="Next generation FFT implementation for ROCm"
url="https://github.com/ROCmSoftwarePlatform/rocfft"
arch=(x86_64)
depends=(boost fftw)
makedepends=("hcc>=2.4.0" git cmake ninja)
source=("https://github.com/ROCmSoftwarePlatform/rocfft/archive/v$pkgver.tar.gz")
sha256sums=("13a1a6b759b4747a8aa650e88ea3e6a56ab59e8b1a69e46e58ba0a8da61c4497")
build() {
mkdir -p "$srcdir/build"
cd "$srcdir/build"
# build broken with stack protection
export CXXFLAGS=$(echo $CXXFLAGS | sed -e 's/-fstack-protector-strong//')
export CFLAGS=$(echo $CFLAGS | sed -e 's/-fstack-protector-strong//')
export CPPFLAGS=$(echo $CPPFLAGS | sed -e 's/-fstack-protector-strong//')
# compile with HCC
export CXX=/opt/rocm/hcc/bin/hcc
cmake -DCMAKE_BUILD_TYPE=Release \
-G Ninja \
"$srcdir/rocFFT-$pkgver"
ninja
}
package() {
DESTDIR="$pkgdir" ninja -C "$srcdir/build" install
mkdir -p $pkgdir/etc/ld.so.conf.d
cat <<-EOF > $pkgdir/etc/ld.so.conf.d/rocfft.conf
/opt/rocm/rocfft/lib
EOF
}
|