svn commit: r515823 - in head/math: . ideep ideep/files
Yuri Victorovich
yuri at FreeBSD.org
Sun Oct 27 20:19:31 UTC 2019
Author: yuri
Date: Sun Oct 27 20:19:29 2019
New Revision: 515823
URL: https://svnweb.freebsd.org/changeset/ports/515823
Log:
New port: math/ideep: Chainer module for numpy-like API and DNN acceleration using MKL-DNN
Added:
head/math/ideep/
head/math/ideep/Makefile (contents, props changed)
head/math/ideep/distinfo (contents, props changed)
head/math/ideep/files/
head/math/ideep/files/patch-CMakeLists.txt (contents, props changed)
head/math/ideep/files/patch-cmake_mkldnn.cmake (contents, props changed)
head/math/ideep/files/patch-tests_CMakeLists.txt (contents, props changed)
head/math/ideep/pkg-descr (contents, props changed)
head/math/ideep/pkg-plist (contents, props changed)
Modified:
head/math/Makefile
Modified: head/math/Makefile
==============================================================================
--- head/math/Makefile Sun Oct 27 19:56:49 2019 (r515822)
+++ head/math/Makefile Sun Oct 27 20:19:29 2019 (r515823)
@@ -284,6 +284,7 @@
SUBDIR += hpipm
SUBDIR += hs-Agda
SUBDIR += hs-semigroups
+ SUBDIR += ideep
SUBDIR += ignition-math
SUBDIR += igraph
SUBDIR += intervaltree
Added: head/math/ideep/Makefile
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/math/ideep/Makefile Sun Oct 27 20:19:29 2019 (r515823)
@@ -0,0 +1,28 @@
+# $FreeBSD$
+
+PORTNAME= ideep
+DISTVERSIONPREFIX= v
+DISTVERSION= 2.0.0-119
+DISTVERSIONSUFFIX= -gb57539e
+CATEGORIES= math # neural-networks
+
+MAINTAINER= yuri at FreeBSD.org
+COMMENT= Chainer module for numpy-like API and DNN acceleration using MKL-DNN
+
+LICENSE= APACHE20
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+TEST_DEPENDS= ${LOCALBASE}/include/rapidcheck.h:devel/rapidcheck
+
+USES= cmake
+USE_GITHUB= yes
+GH_ACCOUNT= intel
+USE_LDCONFIG= yes
+
+do-test: # tests broken: https://github.com/intel/ideep/issues/34 and assume bundled mkl-dnn
+ @cd ${BUILD_WRKSRC} && \
+ ${SETENV} ${CONFIGURE_ENV} ${CMAKE_BIN} ${CMAKE_ARGS} -DBUILD_TESTING:BOOL=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>
Added: head/math/ideep/distinfo
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/math/ideep/distinfo Sun Oct 27 20:19:29 2019 (r515823)
@@ -0,0 +1,3 @@
+TIMESTAMP = 1572203583
+SHA256 (intel-ideep-v2.0.0-119-gb57539e_GH0.tar.gz) = 1b3dc108a855cbf8c25a9a1ca68ebdf46bebac27e16a40abf9033c4c5ebfdecd
+SIZE (intel-ideep-v2.0.0-119-gb57539e_GH0.tar.gz) = 193900
Added: head/math/ideep/files/patch-CMakeLists.txt
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/math/ideep/files/patch-CMakeLists.txt Sun Oct 27 20:19:29 2019 (r515823)
@@ -0,0 +1,22 @@
+--- CMakeLists.txt.orig 2019-08-30 01:57:18 UTC
++++ CMakeLists.txt
+@@ -15,7 +15,7 @@ IF(APPLE)
+ SET(CMAKE_BUILD_WITH_INSTALL_RPATH ON)
+ ENDIF(APPLE)
+
+-set(USE_MKLDNN_INTERNAL 1)
++set(USE_MKLDNN_INTERNAL 0)
+ include(cmake/profiling.cmake)
+ include(cmake/mkldnn.cmake)
+ include(cmake/mkl.cmake)
+@@ -26,7 +26,9 @@ include_directories(BEFORE ${CMAKE_CURRENT_SOURCE_DIR}
+
+ install(DIRECTORY include/ DESTINATION include)
+
+-add_subdirectory(tests)
++if (BUILD_TESTING)
++ add_subdirectory(tests)
++endif()
+
+ if (multinode)
+ set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O3 -mavx -Wall -Wextra -Werror")
Added: head/math/ideep/files/patch-cmake_mkldnn.cmake
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/math/ideep/files/patch-cmake_mkldnn.cmake Sun Oct 27 20:19:29 2019 (r515823)
@@ -0,0 +1,45 @@
+--- cmake/mkldnn.cmake.orig 2019-08-30 01:57:18 UTC
++++ cmake/mkldnn.cmake
+@@ -17,7 +17,7 @@ if (USE_MKLDNN_INTERNAL)
+ else()
+ include(${CMAKE_ROOT}/Modules/ExternalProject.cmake)
+ # find mkldnn first
+- set(mkldnn_PREFIX ${PROJECT_SOURCE_DIR}/mkl-dnn)
++ set(mkldnn_PREFIX ${CMAKE_INSTALL_PREFIX})
+
+ if (UNIX)
+ set(MKLDNN_EXTRA_COMPILER_FLAGS "-fPIC")
+@@ -27,20 +27,20 @@ else()
+ set(MKLDNN_CXX_FLAGS ${CMAKE_CXX_FLAGS} ${MKLDNN_EXTRA_COMPILER_FLAGS})
+ set(MKLDNN_C_FLAGS ${CMAKE_C_FLAGS} ${MKLDNN_EXTRA_COMPILER_FLAGS})
+
+- ExternalProject_Add(mkldnn_exernal
+- SOURCE_DIR ${mkldnn_PREFIX}
+- BUILD_IN_SOURCE 1
+- CMAKE_ARGS
+- "-DCMAKE_CCXX_FLAGS=${MKLDNN_CCXX_FLAGS}"
+- "-DCMAKE_CXX_FLAGS=${MKLDNN_CXX_FLAGS}"
+- "-DCMAKE_C_FLAGS=${MKLDNN_C_FLAGS}"
+- )
++ #ExternalProject_Add(mkldnn_exernal
++ # SOURCE_DIR ${mkldnn_PREFIX}
++ # BUILD_IN_SOURCE 1
++ # CMAKE_ARGS
++ # "-DCMAKE_CCXX_FLAGS=${MKLDNN_CCXX_FLAGS}"
++ # "-DCMAKE_CXX_FLAGS=${MKLDNN_CXX_FLAGS}"
++ # "-DCMAKE_C_FLAGS=${MKLDNN_C_FLAGS}"
++ #)
+
+- ExternalProject_Add_Step(mkldnn_exernal
+- prepare_mkl
+- DEPENDERS configure
+- COMMAND ${mkldnn_PREFIX}/script/prepare_mkl.sh
+- )
++ #ExternalProject_Add_Step(mkldnn_exernal
++ # prepare_mkl
++ # DEPENDERS configure
++ # COMMAND ${mkldnn_PREFIX}/script/prepare_mkl.sh
++ #)
+
+ set(MKLDNN_FOUND TRUE)
+ set(MKLDNN_INTERNAL TRUE)
Added: head/math/ideep/files/patch-tests_CMakeLists.txt
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/math/ideep/files/patch-tests_CMakeLists.txt Sun Oct 27 20:19:29 2019 (r515823)
@@ -0,0 +1,30 @@
+--- tests/CMakeLists.txt.orig 2019-10-27 18:01:06 UTC
++++ tests/CMakeLists.txt
+@@ -3,9 +3,9 @@ if (NOT WITH_TEST)
+ return()
+ endif()
+
+-add_subdirectory(googletest EXCLUDE_FROM_ALL)
+-add_subdirectory(rapidcheck EXCLUDE_FROM_ALL)
+-add_subdirectory(rapidcheck/extras/gtest EXCLUDE_FROM_ALL)
++#add_subdirectory(googletest EXCLUDE_FROM_ALL)
++#add_subdirectory(rapidcheck EXCLUDE_FROM_ALL)
++#add_subdirectory(rapidcheck/extras/gtest EXCLUDE_FROM_ALL)
+ include(../cmake/settings.cmake)
+ include(../cmake/profiling.cmake)
+
+@@ -13,10 +13,10 @@ include_directories(
+ ${PROJECT_SOURCE_DIR}/mkl-dnn/include
+ ${PROJECT_SOURCE_DIR}/mkl-dnn/tests/gtests
+ in
+- googletest/googletest/include
+- googletest/googlemock/include
+- rapidcheck/include
+- rapidcheck/extras/gtest/include
++ #googletest/googletest/include
++ #googletest/googlemock/include
++ #rapidcheck/include
++ #rapidcheck/extras/gtest/include
+ ${vtune_include}
+ )
+
Added: head/math/ideep/pkg-descr
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/math/ideep/pkg-descr Sun Oct 27 20:19:29 2019 (r515823)
@@ -0,0 +1,4 @@
+Intel Optimization for Chainer, a Chainer module providing numpy like API and
+DNN acceleration using MKL-DNN.
+
+WWW: https://github.com/intel/ideep
Added: head/math/ideep/pkg-plist
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/math/ideep/pkg-plist Sun Oct 27 20:19:29 2019 (r515823)
@@ -0,0 +1,16 @@
+include/TR_interface.h
+include/ideep.hpp
+include/ideep/abstract_types.hpp
+include/ideep/allocators.hpp
+include/ideep/computations.hpp
+include/ideep/distribute.hpp
+include/ideep/fast_math.hpp
+include/ideep/instruments.hpp
+include/ideep/lru_cache.hpp
+include/ideep/omp_ctrl.hpp
+include/ideep/scope_guard.hpp
+include/ideep/tensor.hpp
+include/ideep/utils.hpp
+include/ideep/web.hpp
+include/ideep_pin_singletons.hpp
+lib/libideep.so
More information about the svn-ports-head
mailing list