Skip to content

Commit

Permalink
Set USE_JEMALLOC=OFF by default due to incompatibility with jemalloc 5 (
Browse files Browse the repository at this point in the history
apache#17324)

As of jemalloc 5, jemalloc default build can not be used in libraries that are dlopened. However, libmxnet.so is dlopened by Python (ctypes). To use MXNet with jemalloc 5, users must not link to system libjemalloc.so but must rather link to a libjemalloc compiled with DISABLE_INITIAL_EXEC_TLS
  • Loading branch information
leezu authored and Zheng committed Jan 21, 2020
1 parent ce9aa8f commit ee1df7a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ else()
option(USE_OPERATOR_TUNING "Enable auto-tuning of operators" OFF)
endif()
option(USE_GPERFTOOLS "Build with GPerfTools support" OFF)
option(USE_JEMALLOC "Build with Jemalloc support" ON)
option(USE_JEMALLOC "Build with Jemalloc support" OFF)
option(USE_DIST_KVSTORE "Build with DIST_KVSTORE support" OFF)
option(USE_PLUGINS_WARPCTC "Use WARPCTC Plugins" OFF)
option(USE_PLUGIN_CAFFE "Use Caffe Plugin" OFF)
Expand Down
2 changes: 1 addition & 1 deletion make/config.mk
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ USE_GPERFTOOLS_PATH =
USE_GPERFTOOLS_STATIC =

# Use JEMalloc if found, and not using gperftools
USE_JEMALLOC = 1
USE_JEMALLOC = 0

# path to jemalloc library in case of a non-standard installation
USE_JEMALLOC_PATH =
Expand Down

0 comments on commit ee1df7a

Please sign in to comment.