leezu commented on issue #19502:
URL:
https://github.com/apache/incubator-mxnet/issues/19502#issuecomment-724212516
I can reproduce the difference in perforamce between CD CentOS setup and CI
CentOS setup locally.
For CD setup, I use
```
rm -rf lib build; python ci/build.py --cache-intermediate --platform
centos7_cpu /work/runtime_functions.sh build_static_libmxnet cpu
```
and for CI setup I use
```
rm -rf lib build; ci/build.py --docker-registry mxnetci --platform
centos7_cpu --docker-build-retries 3 --shm-size 500m /work/runtime_functions.sh
build_centos7_cpu
```
In both cases I have modified the cmake file to remove intgemm:
``` diff
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 07075d752..8bfd03f53 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -295,12 +295,6 @@ if(USE_MKLDNN)
set_target_properties(dnnl PROPERTIES CXX_CLANG_TIDY "") # don't lint
3rdparty dependency
endif()
-if(USE_INTGEMM)
- message(STATUS "Using intgemm")
- add_subdirectory(3rdparty/intgemm EXCLUDE_FROM_ALL)
- add_definitions(-DMXNET_USE_INTGEMM=1)
-endif()
-
# Allow Cuda compiles outside of src tree to find things in 'src' and
'include'
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/include)
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/src)
@@ -509,10 +503,8 @@ endif()
FILE(GLOB_RECURSE SOURCE "src/*.cc" "src/*.h" "include/*.h")
FILE(GLOB_RECURSE CUDA "src/*.cu" "src/*.cuh")
-if(NOT USE_INTGEMM)
FILE(GLOB_RECURSE INTGEMM_OPERATOR_SOURCE
"src/operator/contrib/intgemm/*.cc" "src/operator/contrib/intgemm/*.h")
list(REMOVE_ITEM SOURCE ${INTGEMM_OPERATOR_SOURCE})
-endif()
# add nnvm to source
FILE(GLOB_RECURSE NNVMSOURCE
@@ -840,9 +832,6 @@ if(USE_MKLDNN)
${CMAKE_BINARY_DIR}/3rdparty/mkldnn/include/dnnl_version.h
${CMAKE_SOURCE_DIR}/include/mkldnn/)
endif()
-if(USE_INTGEMM)
- target_link_libraries(mxnet PRIVATE intgemm)
-endif()
function(BuildTVMOP)
# scope the variables in BuildTVM.cmake to avoid conflict
```
and deleted the `3rdparty/openmp` folder.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]