svn commit: r485467 - in head/math/mkl-dnn: . files
Mathieu Arnold
mat at FreeBSD.org
Wed Nov 21 13:03:20 UTC 2018
On Tue, Nov 20, 2018 at 07:21:14PM +0000, Yuri Victorovich wrote:
> Author: yuri
> Date: Tue Nov 20 19:21:14 2018
> New Revision: 485467
> URL: https://svnweb.freebsd.org/changeset/ports/485467
>
> Log:
> math/mkl-dnn: Update 0.16 -> 0.17
>
> Port changes:
> * Add the OPENMP option
This probably is a problem:
[00:03:29] Warning: (math/mkl-dnn): sh: clang70: not found
[00:03:29] Warning: (math/mkl-dnn): make: "/home/mat/work/freebsd/ports/Mk/Uses/compiler.mk" line 78: warning: "clang70 --version" returned non-zero status
[00:03:29] Warning: (math/mkl-dnn): make: "/home/mat/work/freebsd/ports/Mk/Uses/compiler.mk" line 133: warning: "clang++70 -### /dev/null 2>&1" returned non-zero status
> Modified:
> head/math/mkl-dnn/Makefile
> head/math/mkl-dnn/distinfo
> head/math/mkl-dnn/files/patch-CMakeLists.txt
>
> Modified: head/math/mkl-dnn/Makefile
> ==============================================================================
> --- head/math/mkl-dnn/Makefile Tue Nov 20 19:19:21 2018 (r485466)
> +++ head/math/mkl-dnn/Makefile Tue Nov 20 19:21:14 2018 (r485467)
> @@ -2,7 +2,7 @@
>
> PORTNAME= mkl-dnn
> DISTVERSIONPREFIX= v
> -DISTVERSION= 0.16
> +DISTVERSION= 0.17
> CATEGORIES= math
>
> MAINTAINER= yuri at FreeBSD.org
> @@ -26,9 +26,20 @@ PLIST_FILES= include/mkldnn.h \
> include/mkldnn_types.h \
> lib/libmkldnn.so \
> lib/libmkldnn.so.0 \
> - lib/libmkldnn.so.0.16.0
> + lib/libmkldnn.so.${DISTVERSION}.0
>
> -do-test:
> +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}
The comment says clang from ports is needed for the OpenMP option, but
its use is not dependant on the option, this is confusing.
> +
> +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} && \
>
> Modified: head/math/mkl-dnn/distinfo
> ==============================================================================
> --- head/math/mkl-dnn/distinfo Tue Nov 20 19:19:21 2018 (r485466)
> +++ head/math/mkl-dnn/distinfo Tue Nov 20 19:21:14 2018 (r485467)
> @@ -1,3 +1,3 @@
> -TIMESTAMP = 1536106132
> -SHA256 (intel-mkl-dnn-v0.16_GH0.tar.gz) = 7557f820d6801dbe7741627199c0165fe9e651245b9c1c744d615f576da1098a
> -SIZE (intel-mkl-dnn-v0.16_GH0.tar.gz) = 1339496
> +TIMESTAMP = 1542731420
> +SHA256 (intel-mkl-dnn-v0.17_GH0.tar.gz) = 3473da3b486934da169895a7efd6421482d274601c0aed3505b127971f233a07
> +SIZE (intel-mkl-dnn-v0.17_GH0.tar.gz) = 1413454
>
> Modified: head/math/mkl-dnn/files/patch-CMakeLists.txt
> ==============================================================================
> --- head/math/mkl-dnn/files/patch-CMakeLists.txt Tue Nov 20 19:19:21 2018 (r485466)
> +++ head/math/mkl-dnn/files/patch-CMakeLists.txt Tue Nov 20 19:21:14 2018 (r485467)
> @@ -1,6 +1,17 @@
> ---- CMakeLists.txt.orig 2018-09-05 00:11:53 UTC
> +--- CMakeLists.txt.orig 2018-11-17 00:02:10 UTC
> +++ CMakeLists.txt
> -@@ -69,7 +69,10 @@ enable_testing()
> +@@ -66,7 +66,9 @@ set(CMAKE_TEST_CCXX_FLAGS) # TESTS
> +
> + include("cmake/utils.cmake")
> + include("cmake/options.cmake")
> +-include("cmake/OpenMP.cmake")
> ++if (USE_OPENMP)
> ++ include("cmake/OpenMP.cmake")
> ++endif()
> + include("cmake/TBB.cmake")
> + include("cmake/platform.cmake")
> + include("cmake/SDL.cmake")
> +@@ -79,7 +81,10 @@ enable_testing()
> include_directories(include)
>
> add_subdirectory(src)
>
>
--
Mathieu Arnold
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 963 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/svn-ports-all/attachments/20181121/e1104e5d/attachment.sig>
More information about the svn-ports-all
mailing list