1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-10 07:04:03 +00:00
freebsd-ports/math/onednn/Makefile
Yuri Victorovich f018040a0f math/onednn: Update 1.6.1 -> 1.6.2
Reported by:	portscout
2020-09-05 16:41:39 +00:00

51 lines
1.5 KiB
Makefile

# $FreeBSD$
PORTNAME= onednn
DISTVERSIONPREFIX= v
DISTVERSION= 1.6.2
CATEGORIES= math # machine-learning
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 \
libsysinfo>0:devel/libsysinfo
USES= cmake compiler:c++11-lang localbase:ldflags
USE_GITHUB= yes
GH_ACCOUNT= oneapi-src
GH_PROJECT= oneDNN
USE_LDCONFIG= yes
OPTIONS_DEFINE= OPENMP
OPTIONS_DEFAULT= OPENMP
OPENMP_CMAKE_BOOL= USE_OPENMP
OPENMP_BROKEN_OFF= still requires omp.h, see https://github.com/intel/mkl-dnn/issues/581
CXXFLAGS_amd64= -msse4.1
CXXFLAGS_i386= -msse4.1
.include <bsd.port.options.mk>
.if ${ARCH} != aarch64 && ${ARCH} != amd64 && ${ARCH} != powerpc64
CMAKE_ARGS+= -DDNNL_TARGET_ARCH:STRING="GENERIC"
.endif
post-install:
@${RM} -r ${STAGEDIR}${PREFIX}/share/doc
do-test: # some tests are known to fail: https://github.com/intel/mkl-dnn/issues/350 (the upstream failed to reproduce it and closed the report)
@${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>