blob: 07d539777d908619ae554a50f7a5b84f1ce2551f (
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
|
# $FreeBSD$
PORTNAME= mkl-dnn
DISTVERSIONPREFIX= v
DISTVERSION= 0.17.2
CATEGORIES= math
MAINTAINER= yuri@FreeBSD.org
COMMENT= Intel(R) Math Kernel Library for Deep Neural Networks
LICENSE= APACHE20
LICENSE_FILE= ${WRKSRC}/LICENSE
BROKEN_i386= error: shift count >= width of type (and other errors), see https://github.com/intel/mkl-dnn/issues/315
TEST_DEPENDS= bash:shells/bash
USES= cmake
USE_GITHUB= yes
GH_ACCOUNT= intel
USE_LDCONFIG= yes
PLIST_FILES= include/mkldnn.h \
include/mkldnn.hpp \
include/mkldnn_debug.h \
include/mkldnn_types.h \
lib/libmkldnn.so \
lib/libmkldnn.so.0 \
lib/libmkldnn.so.${DISTVERSION}.0
OPTIONS_DEFINE= OPENMP
OPENMP_CMAKE_BOOL= USE_OPENMP
OPENMP_LIB_DEPENDS= libomp.so:devel/openmp
# use clang from ports because cmake can't find OpenMP with base clang, see https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=223678
BUILD_DEPENDS+= clang${LLVM_DEFAULT}:devel/llvm${LLVM_DEFAULT}
CPP= clang-cpp${LLVM_DEFAULT}
CC= clang${LLVM_DEFAULT}
CXX= clang++${LLVM_DEFAULT}
do-test: # some tests are known to fail: https://github.com/intel/mkl-dnn/issues/350
@${REINPLACE_CMD} 's| /bin/bash | ${LOCALBASE}/bin/bash |' ${WRKSRC}/tests/CMakeLists.txt
@cd ${BUILD_WRKSRC} && \
${SETENV} ${CONFIGURE_ENV} ${CMAKE_BIN} ${CMAKE_ARGS} -DBUILD_TESTS=ON ${CMAKE_SOURCE_PATH} && \
${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} ${ALL_TARGET} && \
${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} test
.include <bsd.port.mk>
|