summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: d4ab15ce5b6cf44a50dcc9856398d83ea9b4d641 (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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
# Maintainer: Antoine Viallon <antoine@lesviallon.fr>

pkgname=starpu
pkgdesc="Task programming library for hybrid architectures"
url="https://starpu.gitlabpages.inria.fr/"
pkgver=1.3.9
pkgrel=3
arch=(x86_64 x86_64_v3)
source=(
	https://files.inria.fr/starpu/${pkgname}-${pkgver}/${pkgname}-${pkgver}.tar.gz{,.asc}
)
md5sums=('f4ac75be44033220a0d38e843a2c1fed'
         'SKIP')
validpgpkeys=(
	CA89802221770FC90C8D1A4538A9570385E6E772 # Nathalie Furmento <nathalie.furmento@labri.fr>
)
license=(LGPL3)
makedepends=(
	valgrind
	openmpi
	binutils
	openblas-lapack
	intel-mkl
	numactl
)

depends=(
	cuda
	magma
	hdf5
	glpk
	ocl-icd
	simgrid
)

prepare() {
	cd "${pkgname}-${pkgver}"

	./configure \
		--prefix=/usr \
		--enable-simgrid \
		--enable-mpi \
		--enable-shared \
		--disable-static \
		--disable-nmad \
		--enable-valgrind \
		--enable-hdf5 \
		--enable-cuda \
		--with-cuda-dir=${CUDA_PATH:-/opt/cuda} \
		--enable-cpu \
		--enable-opencl \
		--disable-poti \
		--enable-perf-debug \
		--enable-glpk \
		--enable-openmp \
		--disable-build-examples \
		--enable-build-tests \
		--with-pic \
		--enable-blas-lib=mkl \
		LDFLAGS="${LDFLAGS}" \
		CFLAGS="${CFLAGS}"
}

build() {
	cd "${pkgname}-${pkgver}"

	make
}

package() {
	cd "${pkgname}-${pkgver}"

	make DESTDIR="${pkgdir}" install
}

#check() {
#	cd "${pkgname}-${pkgver}"
#
#	make check
#}