From 425319cb59904573bd3fe1b6fe0a7381eceb9bbd Mon Sep 17 00:00:00 2001 From: Leonard Lausen Date: Mon, 20 Jan 2020 11:56:25 -0800 Subject: [PATCH] Set USE_JEMALLOC=OFF by default due to incompatibility with jemalloc 5 (#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 --- CMakeLists.txt | 2 +- make/config.mk | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index ba2940e1cfa0..2e47981d0db3 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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) diff --git a/make/config.mk b/make/config.mk index 982d15b19656..af7367c182be 100644 --- a/make/config.mk +++ b/make/config.mk @@ -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 =