blob: dcd223d9a833c3f4e8d76864bd01f05616f7c890 (
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
|
# Maintainer: Andrew Anderson <aanderso@tcd.ie>
pkgname=mkl-dnn
pkgver=0.13
pkgrel=0
epoch=
pkgdesc="IntelĀ® Math Kernel Library for Deep Neural Networks"
arch=( 'x86_64' )
url="https://github.com/01org/mkl-dnn"
license=('APACHE')
groups=()
depends=()
makedepends=( 'wget' 'git' 'cmake>=2.8' 'doxygen>=1.8.5' )
checkdepends=()
optdepends=()
provides=()
conflicts=()
replaces=()
backup=()
options=()
install=
changelog=
source=("git+https://github.com/01org/mkl-dnn.git")
sha1sums=('SKIP')
build() {
cd "${srcdir}/mkl-dnn"
git checkout "v$pkgver"
([[ ! -d external ]] && (cd scripts && ./prepare_mkl.sh && cd -)) || true
mkdir -p build && cd build && cmake -DCMAKE_INSTALL_PREFIX="${pkgdir}"/usr .. && make doc && make -j2 mkldnn
}
#check() {}
package() {
cd "${srcdir}/mkl-dnn/build"
make install
mkdir -p ${pkgdir}/usr/include/mkldnn/include/
cp -r ../external/mkl*/include/* ${pkgdir}/usr/include/mkldnn/include/
mkdir -p ${pkgdir}/usr/lib/mkldnn/lib/
cp -r ../external/mkl*/lib/* ${pkgdir}/usr/lib/mkldnn/lib/
}
|