From debbugs-submit-bounces@debbugs.gnu.org Mon Mar 09 14:25:18 2020 Received: (at submit) by debbugs.gnu.org; 9 Mar 2020 18:25:19 +0000 Received: from localhost ([127.0.0.1]:51451 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jBN5a-0004Xs-Ll for submit@debbugs.gnu.org; Mon, 09 Mar 2020 14:25:18 -0400 Received: from lists.gnu.org ([209.51.188.17]:39816) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jBN5Y-0004Xj-DH for submit@debbugs.gnu.org; Mon, 09 Mar 2020 14:25:16 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:40284) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jBN5W-0006K8-VS for guix-patches@gnu.org; Mon, 09 Mar 2020 14:25:16 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.1 required=5.0 tests=BAYES_50,RCVD_IN_DNSWL_LOW autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jBN5V-0005CA-5v for guix-patches@gnu.org; Mon, 09 Mar 2020 14:25:14 -0400 Received: from relay4-d.mail.gandi.net ([217.70.183.196]:34151) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1jBN5U-00057a-WD for guix-patches@gnu.org; Mon, 09 Mar 2020 14:25:13 -0400 X-Originating-IP: 92.169.129.147 Received: from localhost.localdomain (lfbn-idf2-1-1315-147.w92-169.abo.wanadoo.fr [92.169.129.147]) (Authenticated sender: mail@ambrevar.xyz) by relay4-d.mail.gandi.net (Postfix) with ESMTPSA id B2224E0002 for ; Mon, 9 Mar 2020 18:25:08 +0000 (UTC) From: Pierre Neidhardt To: guix-patches@gnu.org Subject: [PATCH] WIP: Add mxnet. Date: Mon, 9 Mar 2020 19:25:08 +0100 Message-Id: <20200309182508.14144-1-mail@ambrevar.xyz> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-GND-Spam-Score: 173 X-GND-Status: SPAM X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 217.70.183.196 X-Spam-Score: 1.3 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: * gnu/packages/machine-learning.scm (mxnet): New variable. --- gnu/packages/machine-learning.scm | 62 +++++++++++++++++++++++++++++++ 1 file changed, 62 insertions(+) diff --git a/gnu/packages/machine-learning.scm b/gnu/packages/machine-learning.scm index 50c41dc113..9408c4b8e0 100644 --- a/gnu/packages/machine-learning.scm +++ b/gnu/packages/machine-learning.scm @ [...] Content analysis details: (1.3 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at https://www.dnswl.org/, low trust [209.51.188.17 listed in list.dnswl.org] 0.7 SPF_NEUTRAL SPF: sender does not match SPF record (neutral) 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.8 FROM_SUSPICIOUS_NTLD_FP From abused NTLD 0.5 FROM_SUSPICIOUS_NTLD From abused NTLD X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.5 (/) * gnu/packages/machine-learning.scm (mxnet): New variable. --- gnu/packages/machine-learning.scm | 62 +++++++++++++++++++++++++++++++ 1 file changed, 62 insertions(+) diff --git a/gnu/packages/machine-learning.scm b/gnu/packages/machine-learning.scm index 50c41dc113..9408c4b8e0 100644 --- a/gnu/packages/machine-learning.scm +++ b/gnu/packages/machine-learning.scm @@ -60,6 +60,8 @@ #:use-module (gnu packages graphviz) #:use-module (gnu packages gstreamer) #:use-module (gnu packages image) + #:use-module (gnu packages image-processing) + #:use-module (gnu packages jemalloc) #:use-module (gnu packages linux) #:use-module (gnu packages lisp-xyz) #:use-module (gnu packages maths) @@ -2121,3 +2123,63 @@ These include a barrier, broadcast, and allreduce.") technique that can be used for visualisation similarly to t-SNE, but also for general non-linear dimension reduction.") (license license:bsd-3))) + +(define-public mxnet + (package + (name "mxnet") + (version "1.6.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/apache/incubator-mxnet") + (commit version) + ;; TODO: Test if possible to include system version of those deps: + ;; mkldnn + ;; openmp + (recursive? #t))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "1jlk0a9kls4fxxq4sap21hk6k3vhqhlflx5jm8i2amwh1z22sj09")))) + (build-system cmake-build-system) + (arguments + `(#:configure-flags '("-DUSE_CUDA=OFF") + #:parallel-build? #f ; TODO: Try rebuilding in parallel. + #:phases + (modify-phases %standard-phases + (replace 'check + (lambda _ + ;; Skip tests that require internet access. + (invoke "ctest" "--timeout" "6000"))) + ;; (add-before 'check 'increase-test-timeout + ;; (lambda _ + ;; ;; TODO: Set right timeout. + ;; (setenv "CTEST_TEST_TIMEOUT" "6000") + ;; #t)) + ))) + (native-inputs + `(("pkg-config" ,pkg-config) + ("perl" ,perl) + ;; TODO: Use our gtest + ;; ("googletest" ,googletest) + )) + (inputs + `(("lapack" ,lapack) + ("openblas" ,openblas) + ("opencv" ,opencv) + ("jemalloc" ,jemalloc))) + (home-page "https://mxnet.apache.org/") + (synopsis "Distributed/Mobile Deep Learning") + (description + "Apache MXNet (incubating) is a deep learning framework. It allows you +to mix symbolic and imperative programming. At its core, MXNet contains a +dynamic dependency scheduler that automatically parallelizes both symbolic and +imperative operations on the fly. A graph optimization layer on top of that +makes symbolic execution fast and memory efficient. MXNet is portable and +lightweight, scaling effectively to multiple GPUs and multiple machines. + +MXNet is more than a deep learning project. It is a collection of blue prints +and guidelines for building deep learning systems, and interesting insights of +DL systems for hackers.") + (license license:asl2.0))) -- 2.25.1 From debbugs-submit-bounces@debbugs.gnu.org Mon Mar 09 14:38:16 2020 Received: (at 40002) by debbugs.gnu.org; 9 Mar 2020 18:38:16 +0000 Received: from localhost ([127.0.0.1]:51462 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jBNI8-0004ry-6d for submit@debbugs.gnu.org; Mon, 09 Mar 2020 14:38:16 -0400 Received: from relay2-d.mail.gandi.net ([217.70.183.194]:46929) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jBNI6-0004rh-7v for 40002@debbugs.gnu.org; Mon, 09 Mar 2020 14:38:14 -0400 X-Originating-IP: 92.169.129.147 Received: from bababa (lfbn-idf2-1-1315-147.w92-169.abo.wanadoo.fr [92.169.129.147]) (Authenticated sender: mail@ambrevar.xyz) by relay2-d.mail.gandi.net (Postfix) with ESMTPSA id 9C39040003 for <40002@debbugs.gnu.org>; Mon, 9 Mar 2020 18:38:07 +0000 (UTC) From: Pierre Neidhardt To: 40002@debbugs.gnu.org Subject: Re: bug#40002: Acknowledgement ([PATCH] WIP: Add mxnet.) In-Reply-To: References: <20200309182508.14144-1-mail@ambrevar.xyz> Date: Mon, 09 Mar 2020 19:38:07 +0100 Message-ID: <87a74pgyr4.fsf@ambrevar.xyz> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" X-Spam-Score: 1.8 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: This definitions build the library. One obstacle: The tests take a very long time to complete, typically some 30+ minutes on one core. But CMake has a default timeout set to 1500 sec (25 minutes). I've passed "--timeout 6000" to `ctest` [...] Content analysis details: (1.8 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at https://www.dnswl.org/, low trust [217.70.183.194 listed in list.dnswl.org] 0.0 URIBL_BLOCKED ADMINISTRATOR NOTICE: The query to URIBL was blocked. See http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block for more information. [URIs: ambrevar.xyz] 0.0 RCVD_IN_MSPIKE_H3 RBL: Good reputation (+3) [217.70.183.194 listed in wl.mailspike.net] 2.0 PDS_OTHER_BAD_TLD Untrustworthy TLDs [URI: ambrevar.xyz (xyz)] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record 0.0 RCVD_IN_MSPIKE_WL Mailspike good senders 0.5 FROM_SUSPICIOUS_NTLD From abused NTLD X-Debbugs-Envelope-To: 40002 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.8 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: This definitions build the library. One obstacle: The tests take a very long time to complete, typically some 30+ minutes on one core. But CMake has a default timeout set to 1500 sec (25 minutes). I've passed "--timeout 6000" to `ctest` [...] Content analysis details: (1.8 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 URIBL_BLOCKED ADMINISTRATOR NOTICE: The query to URIBL was blocked. See http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block for more information. [URIs: ambrevar.xyz] 0.0 RCVD_IN_MSPIKE_H3 RBL: Good reputation (+3) [217.70.183.194 listed in wl.mailspike.net] -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at https://www.dnswl.org/, low trust [217.70.183.194 listed in list.dnswl.org] 2.0 PDS_OTHER_BAD_TLD Untrustworthy TLDs [URI: ambrevar.xyz (xyz)] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record -1.0 MAILING_LIST_MULTI Multiple indicators imply a widely-seen list manager 0.0 RCVD_IN_MSPIKE_WL Mailspike good senders 0.5 FROM_SUSPICIOUS_NTLD From abused NTLD 1.0 BULK_RE_SUSP_NTLD Precedence bulk and RE: from a suspicious TLD --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable This definitions build the library. One obstacle: The tests take a very long time to complete, typically some 30+ minutes on one core. But CMake has a default timeout set to 1500 sec (25 minutes). I've passed "--timeout 6000" to `ctest` to fix it. What do you think? It seems that it's the first package to need this. openexr sets =2D-8<---------------cut here---------------start------------->8--- (setenv "CTEST_TEST_TIMEOUT" "2000") =2D-8<---------------cut here---------------end--------------->8--- but that does not work for MXNet for some reason. Thoughts? =2D-=20 Pierre Neidhardt https://ambrevar.xyz/ --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEUPM+LlsMPZAEJKvom9z0l6S7zH8FAl5mjQ8ACgkQm9z0l6S7 zH+GKwf+NelJONcPSr8G9chYD8ffVf0N4EQei9PCUGR3SbNliHb32eNN4ND2vLqB uJuZcbY2PVsPCOug/deYgSKjKmVxJjtrp4g9yjwp3tloaqJdkWBMAD5kzMz2ki17 m9eiNvcV8fkDpREKFZYhysm4XQ5Qw3vlxIedNwvQE5OOSl6NBxYrkEzjsJELZ1rG PD3BARXwEuMVR/w9zMYGy7e4gVSmxdWEgL4l81TuAVutqAeKTDAMm4plm3Am+QtP Pj8qWEhg78QFbxu7RVUwS5ltH29aq7u4SDU4hg5rXuY5fh8yW8UqMkDNyEIXkJbw ADv5T2JxcRvN1dV+NuKknxatJZyS7g== =aT6s -----END PGP SIGNATURE----- --=-=-=--