From 7e423d6573b4a54834fffa97be0aedc28fe4aab8 Mon Sep 17 00:00:00 2001 From: Leonard Lausen Date: Wed, 15 Jan 2020 13:24:08 +0100 Subject: [PATCH 1/2] USE_JEMALLOC=OFF by default 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 to system libjemalloc.so but must rather link to a libjemalloc compiled with special parameters to allow dlopen to work. jemalloc 5 is distributed as part of Ubuntu 18.10 and higher, as well as Debian Stable. Users on these systems will be unable to compile MXNet with USE_JEMALLOC=ON. --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 2612854ffdce..746bc3b3d446 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) From 78e3bb5309726af7a30a0c997ac94f86caedcce0 Mon Sep 17 00:00:00 2001 From: Leonard Lausen Date: Wed, 15 Jan 2020 13:26:31 +0100 Subject: [PATCH 2/2] Update config.mk --- make/config.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 =