Maratyszcza commented on a change in pull request #9860: [WIP] CMake NNPack 
support
URL: https://github.com/apache/incubator-mxnet/pull/9860#discussion_r170047405
 
 

 ##########
 File path: CMakeLists.txt
 ##########
 @@ -551,6 +552,66 @@ if(NOT EXISTS 
"${CMAKE_CURRENT_SOURCE_DIR}/nnvm/CMakeLists.txt")
   list(APPEND mxnet_LINKER_LIBS ${nnvm_LINKER_LIBS})
 endif()
 
+# ---[ NNPack
+if(USE_NNPACK)
+  # Add in NNPack and its dependencies
+  set(NNPACK_ROOT_DIR "${CMAKE_CURRENT_SOURCE_DIR}/3rdparty/nnpack")
+  if (EXISTS "${NNPACK_ROOT_DIR}" AND EXISTS "${NNPACK_ROOT_DIR}/NNPACK")
+    FIND_PACKAGE(PythonInterp)
+    IF(NOT PYTHONINTERP_FOUND)
+      MESSAGE(STATUS "Python interpreter not found; setting Python version to 
0.0.0")
+      SET(PYTHON_VERSION_STRING "0.0.0")
 
 Review comment:
   If Python interpreter not found, you also don't need to setup Python 
packages (PeachPy, enum34, and six)

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to