From dev-return-7240-archive-asf-public=cust-asf.ponee.io@mxnet.incubator.apache.org Sun Jan 19 21:17:21 2020 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [207.244.88.153]) by mx-eu-01.ponee.io (Postfix) with SMTP id B738818062B for ; Sun, 19 Jan 2020 22:17:20 +0100 (CET) Received: (qmail 10958 invoked by uid 500); 19 Jan 2020 21:17:20 -0000 Mailing-List: contact dev-help@mxnet.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@mxnet.incubator.apache.org Delivered-To: mailing list dev@mxnet.incubator.apache.org Received: (qmail 10946 invoked by uid 99); 19 Jan 2020 21:17:19 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 19 Jan 2020 21:17:19 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 46579C0355 for ; Sun, 19 Jan 2020 21:17:19 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0 X-Spam-Level: X-Spam-Status: No, score=0 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, HTML_MESSAGE=0.2, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd1-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-he-de.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id G24SroGMVQ7l for ; Sun, 19 Jan 2020 21:17:15 +0000 (UTC) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=2607:f8b0:4864:20::72c; helo=mail-qk1-x72c.google.com; envelope-from=marco.g.abreu@gmail.com; receiver= Received: from mail-qk1-x72c.google.com (mail-qk1-x72c.google.com [IPv6:2607:f8b0:4864:20::72c]) by mx1-he-de.apache.org (ASF Mail Server at mx1-he-de.apache.org) with ESMTPS id 887407DDE8 for ; Sun, 19 Jan 2020 21:17:14 +0000 (UTC) Received: by mail-qk1-x72c.google.com with SMTP id c16so28268474qko.6 for ; Sun, 19 Jan 2020 13:17:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=+ZLBYTf/rrp5kvIjO5mThVJUaFF6+rHuuy+OyujvQZ4=; b=MZtiL/MJPbihAKh7FojKpcLJTc4cov3FwlFAx2LXPZARGIZqhgmzrUoLcySZKSYYZd uxr3JBfjKuHibLHEwkxxFaHV5AszK5IE3y/QbiD71WqenMD6FxhtX8dvVN+8o3YaiSjk 9o5B8+F2dJBTKXDDLFMwj43qnGBr8biNAEUNOfSb5HHCCkj0Vlyye2SCGjlgLf8wqcFO AZV1Fec+SzL6PFLwTiVRZ+geoeWoq4xezBHa0q8zCSltgX5tD7zXBMbsIvkIBz+/QYBC HDbjRoUMPt4PUqnnmBTqOSiQHCKE7dkrEQMCzEoCFfgGxlvNMAQI8vFoQ82iCZcu1nck XcqQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=+ZLBYTf/rrp5kvIjO5mThVJUaFF6+rHuuy+OyujvQZ4=; b=tLZI0CaXCf/+8WdA9odJpnpA1UuY4CIqJtBrBUADyihDrjYOQ5T2p1RAFeEVVRRpMJ auM0mJccPDI/DkGhjzf3LefbS4ihLV4oNydf4oVrcq5sbzIipNA8EJ+390x8urJWCQwc zIvkqQecMe4+3ZFO0AJMbEp6NWX/cuJUFKlbKclq2FE4IB7FdiorQfIIwf1VaApmweyB R3GsbvqL1VP96NOTySp/2Ix4xsLVzPJOv4JIPVGUHmq+s2J3zM7GQw7tei0612vQGFFZ XLW87DtIcCbCa9ocgAgm1lsgCrDSErdvgh4dtsYQMfFdoAliHw+SbKtaCku0heNyasQY 6o0Q== X-Gm-Message-State: APjAAAX9AcFwKswwj659vPM4zDOzG6oBeGCyGHmR4d7FXDDunHJ+CsT2 ppMYIGFhKHO47dzPp9tFFxa7GYwjxMv1rcW7IDaPq5wt X-Google-Smtp-Source: APXvYqzL/nXzNd5lDEhOthoPpbYrySV8v/gBK2Hm/Eo7Xl43ANijvNfXip9LF69E53pBG6/uRVaq2KR98SuFdhmmnPQ= X-Received: by 2002:a05:620a:1592:: with SMTP id d18mr48887316qkk.80.1579468626811; Sun, 19 Jan 2020 13:17:06 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Marco de Abreu Date: Sun, 19 Jan 2020 22:16:57 +0100 Message-ID: Subject: Re: jemalloc 5 incompatibility To: dev@mxnet.incubator.apache.org Content-Type: multipart/alternative; boundary="0000000000006f5f58059c84b2e8" --0000000000006f5f58059c84b2e8 Content-Type: text/plain; charset="UTF-8" Building as part of cmake once upstream is stable sounds like a good approach. Thanks for catching this issue early on! -Marco Lausen, Leonard schrieb am So., 19. Jan. 2020, 11:20: > 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 special parameters to allow dlopen to work. > See > https://github.com/jemalloc/jemalloc/issues/937 > > 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 use MXNet after compiling > with > USE_JEMALLOC=ON on systems with libjemalloc-dev, which is the default > setting. > > Thus in https://github.com/apache/incubator-mxnet/pull/17324 I suggest to > disable Jemalloc by default in the source build. Auto-detecting the > version of > jemalloc is not helpful, because over time less and less systems will come > with > a working version of jemalloc. > > Please go ahead and approve the PR if you agree. > > The better solution is to build jemalloc as part of our build. See > https://github.com/apache/incubator-mxnet/pull/17121 > But as CMake build of jemalloc is not yet integrated upstream, this > approach > currently relies on a development branch of jemalloc. Thus it was > suggested to > revisit the approach once CMake integration is stable upstream. > --0000000000006f5f58059c84b2e8--