You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mxnet.apache.org by la...@apache.org on 2020/01/15 12:25:03 UTC

[incubator-mxnet] 01/01: USE_JEMALLOC=OFF by default

This is an automated email from the ASF dual-hosted git repository.

lausen pushed a commit to branch leezu-patch-1
in repository https://gitbox.apache.org/repos/asf/incubator-mxnet.git

commit 7e423d6573b4a54834fffa97be0aedc28fe4aab8
Author: Leonard Lausen <la...@amazon.com>
AuthorDate: Wed Jan 15 13:24:08 2020 +0100

    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 2612854..746bc3b 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)