From unknown Sun Jun 15 01:09:06 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#48423] [PATCH 0/1] gnu: Add onednn. Resent-From: Vinicius Monego Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 14 May 2021 18:34:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 48423 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 48423@debbugs.gnu.org Cc: Vinicius Monego X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.162101718831034 (code B ref -1); Fri, 14 May 2021 18:34:02 +0000 Received: (at submit) by debbugs.gnu.org; 14 May 2021 18:33:08 +0000 Received: from localhost ([127.0.0.1]:47044 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lhccT-00084R-TF for submit@debbugs.gnu.org; Fri, 14 May 2021 14:33:06 -0400 Received: from lists.gnu.org ([209.51.188.17]:38880) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lhccM-00083w-UE for submit@debbugs.gnu.org; Fri, 14 May 2021 14:32:59 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:50688) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lhccK-0004rc-Nj for guix-patches@gnu.org; Fri, 14 May 2021 14:32:57 -0400 Received: from mout01.posteo.de ([185.67.36.65]:36665) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lhccG-0004EU-Ok for guix-patches@gnu.org; Fri, 14 May 2021 14:32:55 -0400 Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id 67BE8240027 for ; Fri, 14 May 2021 20:32:47 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1621017167; bh=cvfIzd6Nhz9UxE0jmrSxzGbz8AISUXIwEH+R4Jhib6I=; h=From:To:Cc:Subject:Date:From; b=YsfwZ+T+hGn43hRKav70cRh0CwYHL7tsmOYA7U+9i0NyC0LedgKvwyIjYYAm+AJpY Gi//FEAc4PpJ/UF/ikoZeJ+WIG8NnojU920F6KvCqVYbyB4NjwKJwYtkVyvAuV4GJG +cBzZ+J0/JlpQb+iqSgl8BjcvGYKEchy0fJAasBcr9IzWAP/24SQebGKb6FzwzbA3d WtAydINYFbZ454qRywLlolwnjwj07pw3Fd+akK3Oc3oxM2VZBLf3SpFLkZeKU9t8Wk hXFnNRXOZEowlbopL/WmhH2wQpLi3U/5c0fBorVMk1Q0v0JgexQ47LyG6Isd/mdwaq smt6OvYc+82pg== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Fhcb15fpHz6tmD; Fri, 14 May 2021 20:32:45 +0200 (CEST) From: Vinicius Monego Date: Fri, 14 May 2021 18:31:26 +0000 Message-Id: <20210514183126.629672-1-monego@posteo.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=185.67.36.65; envelope-from=monego@posteo.net; helo=mout01.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) 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: -2.3 (--) oneDNN is a deep learning library used by the likes of PyTorch and MXNet. In the Nix package definition it is mentioned that tests require SSE4.2. If that's a concern for the CI then tests should be disabled. Tests also take a long time to run. oneDNN supports the POWER architecture. It could be added to the list of supported system if that makes sense now. Vinicius Monego (1): gnu: Add onednn. gnu/local.mk | 2 + gnu/packages/machine-learning.scm | 44 +++++++ .../patches/onednn-disable-gpu-tests.patch | 26 ++++ .../onednn-use-system-googletest.patch | 117 ++++++++++++++++++ 4 files changed, 189 insertions(+) create mode 100644 gnu/packages/patches/onednn-disable-gpu-tests.patch create mode 100644 gnu/packages/patches/onednn-use-system-googletest.patch -- 2.31.1 From unknown Sun Jun 15 01:09:06 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#48423] [PATCH 1/1] gnu: Add onednn. References: <20210514183126.629672-1-monego@posteo.net> In-Reply-To: <20210514183126.629672-1-monego@posteo.net> Resent-From: Vinicius Monego Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 14 May 2021 18:36:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 48423 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 48423@debbugs.gnu.org Cc: Vinicius Monego Received: via spool by 48423-submit@debbugs.gnu.org id=B48423.162101732631291 (code B ref 48423); Fri, 14 May 2021 18:36:02 +0000 Received: (at 48423) by debbugs.gnu.org; 14 May 2021 18:35:26 +0000 Received: from localhost ([127.0.0.1]:47049 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lhcek-00088c-3V for submit@debbugs.gnu.org; Fri, 14 May 2021 14:35:26 -0400 Received: from mout02.posteo.de ([185.67.36.66]:47617) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lhceh-00088L-Iy for 48423@debbugs.gnu.org; Fri, 14 May 2021 14:35:25 -0400 Received: from submission (posteo.de [89.146.220.130]) by mout02.posteo.de (Postfix) with ESMTPS id 28E7D240101 for <48423@debbugs.gnu.org>; Fri, 14 May 2021 20:35:16 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1621017317; bh=Imk1j3bp+MXH0PyApNepB55q4gEc8baUdx+L5DJps6U=; h=From:To:Cc:Subject:Date:From; b=nshyL3qVeXVMgTo8Cp1oGQDlhb4ba0oHZbCINs402sYGBHblQgYTMEU7axAOG0UtD V7YtpEkVi8CIe4iRqo9QU8kNuDYbvdEl1MrN8EeOtad6RikWQ5GeTxEZtS6i68gjQ9 vXXSPoYbVI4e7iycP6gkifrtFHwU/wwazwM9Iu/b9TzgJc/d5f9NNwwj1Nw1AdVbdE V0FdqVyQcGxCWSPtYlDS3KuHIl/RdJwJ8JnsbHfnz99LqfRvTfgKP7XssmYvuH7yjD 9O4S9U1ll6kImMjRt6DOpUmePMh/1C5Jvr2ZuzWUOlnzISdz9atN1m3aOPmoG8rZ2S ZwOEZFYHX3QRg== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Fhcdv10Rvz9rxM; Fri, 14 May 2021 20:35:14 +0200 (CEST) From: Vinicius Monego Date: Fri, 14 May 2021 18:34:57 +0000 Message-Id: <20210514183457.630049-1-monego@posteo.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) 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: -3.3 (---) * gnu/packages/machine-learning.scm (onednn): New variable. * gnu/packages/patches/onednn-disable-gpu-tests.patch, gnu/packages/patches/onednn-use-system-googletest.patch: New files. * gnu/local.mk (dist_PATCH_DATA): Add them. --- gnu/local.mk | 2 + gnu/packages/machine-learning.scm | 44 +++++++ .../patches/onednn-disable-gpu-tests.patch | 26 ++++ .../onednn-use-system-googletest.patch | 117 ++++++++++++++++++ 4 files changed, 189 insertions(+) create mode 100644 gnu/packages/patches/onednn-disable-gpu-tests.patch create mode 100644 gnu/packages/patches/onednn-use-system-googletest.patch diff --git a/gnu/local.mk b/gnu/local.mk index 37166bb2fc..e32d693c0d 100644 --- a/gnu/local.mk +++ b/gnu/local.mk @@ -1480,6 +1480,8 @@ dist_patch_DATA = \ %D%/packages/patches/ocaml-dose3-dont-make-printconf.patch \ %D%/packages/patches/ocaml-dose3-Install-mli-cmx-etc.patch \ %D%/packages/patches/omake-fix-non-determinism.patch \ + %D%/packages/patches/onednn-disable-gpu-tests.patch \ + %D%/packages/patches/onednn-use-system-googletest.patch \ %D%/packages/patches/openbabel-fix-crash-on-nwchem-output.patch \ %D%/packages/patches/opencascade-oce-glibc-2.26.patch \ %D%/packages/patches/opencv-fix-build-of-grfmt_jpeg2000.cpp.patch \ diff --git a/gnu/packages/machine-learning.scm b/gnu/packages/machine-learning.scm index 837ebbba67..8140380db9 100644 --- a/gnu/packages/machine-learning.scm +++ b/gnu/packages/machine-learning.scm @@ -70,6 +70,7 @@ #:use-module (gnu packages mpi) #:use-module (gnu packages ocaml) #:use-module (gnu packages onc-rpc) + #:use-module (gnu packages opencl) #:use-module (gnu packages perl) #:use-module (gnu packages pkg-config) #:use-module (gnu packages protobuf) @@ -1955,6 +1956,49 @@ any function). It currently contains the interface and IO code from the Shap project, and it will potentially also do the same for the Lime project.") (license license:expat))) +(define-public onednn + (package + (name "onednn") + (version "2.2.2") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/oneapi-src/oneDNN") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + ;; GPU tests fail with: "C++ exception with description 'could not + ;; create an engine' thrown in auxiliary test code (environments or + ;; event listeners)". It may be because of the build environment + ;; isolation. Disable them for now. + (patches (search-patches "onednn-disable-gpu-tests.patch" + "onednn-use-system-googletest.patch")) + (sha256 + (base32 "1a7fak7g8zpv1hnbnnnv964bkvdpwm5vgsx39j2sp2jswwh5s7g5")))) + (build-system cmake-build-system) + (arguments + `(;; See doc/build/build_options.md for a list of build options. + #:configure-flags (list "-DDNNL_BUILD_EXAMPLES=OFF" + "-DDNNL_GPU_RUNTIME=OCL"))) + (native-inputs + `(("googletest" ,googletest) + ("opencl-headers" ,opencl-headers) + ("python" ,python-wrapper))) + (inputs + `(("ocl-icd" ,ocl-icd))) + (home-page "https://01.org/oneDNN") + (synopsis "Library of building blocks for deep learning applications") + ;; See "Requirements for Building from Source" in the README for a list. + (supported-systems '("x86_64-linux" "aarch-64-linux")) + (description + "oneAPI Deep Neural Network Library (oneDNN) is a performance library of +basic building blocks for deep learning applications. It is intended for deep +learning applications and framework developers interested in improving +application performance on Intel CPUs and GPUs.") + ;; See THIRD-PARTY-PROGRAMS for a full list. + (license (list license:asl2.0 ;oneDNN + license:bsd-3)))) ;XByak, IIT API + (define-public python-keras-applications (package (name "python-keras-applications") diff --git a/gnu/packages/patches/onednn-disable-gpu-tests.patch b/gnu/packages/patches/onednn-disable-gpu-tests.patch new file mode 100644 index 0000000000..746999a8dd --- /dev/null +++ b/gnu/packages/patches/onednn-disable-gpu-tests.patch @@ -0,0 +1,26 @@ +From 09bd5a7f6d279a7fab1ed16c8bf1c5d5531d2c97 Mon Sep 17 00:00:00 2001 +From: Vinicius Monego +Date: Fri, 14 May 2021 02:28:22 -0300 +Subject: [PATCH] Disable GPU tests. + +--- + tests/gtests/CMakeLists.txt | 3 --- + 1 file changed, 3 deletions(-) + +diff --git a/tests/gtests/CMakeLists.txt b/tests/gtests/CMakeLists.txt +index 1e763af..f3cdd20 100644 +--- a/tests/gtests/CMakeLists.txt ++++ b/tests/gtests/CMakeLists.txt +@@ -169,9 +169,6 @@ function(register_gtest exe src) + if(NOT DNNL_GPU_RUNTIME STREQUAL "NONE" AND NOT no_engine_param) + add_dnnl_test(${exe}_cpu ${exe} COMMAND ${exe} --engine=cpu) + maybe_configure_windows_test(${exe}_cpu TEST) +- +- add_dnnl_test(${exe}_gpu ${exe} COMMAND ${exe} --engine=gpu) +- maybe_configure_windows_test(${exe}_gpu TEST) + else() + add_dnnl_test(${exe} ${exe}) + maybe_configure_windows_test(${exe} TEST) +-- +2.31.1 + diff --git a/gnu/packages/patches/onednn-use-system-googletest.patch b/gnu/packages/patches/onednn-use-system-googletest.patch new file mode 100644 index 0000000000..6a78346d6b --- /dev/null +++ b/gnu/packages/patches/onednn-use-system-googletest.patch @@ -0,0 +1,117 @@ +From 5b20029658c23b6ce2d60eab19841ef8424858c6 Mon Sep 17 00:00:00 2001 +From: Vinicius Monego +Date: Thu, 13 May 2021 14:12:58 -0300 +Subject: [PATCH] Use system googletest. + +--- + tests/gtests/CMakeLists.txt | 5 ++--- + tests/gtests/api/CMakeLists.txt | 4 ++-- + tests/gtests/internals/CMakeLists.txt | 2 +- + tests/gtests/ocl/CMakeLists.txt | 2 +- + tests/gtests/ocl/api/CMakeLists.txt | 2 +- + tests/gtests/regression/CMakeLists.txt | 2 +- + tests/gtests/sycl/api/CMakeLists.txt | 2 +- + 7 files changed, 9 insertions(+), 10 deletions(-) + +diff --git a/tests/gtests/CMakeLists.txt b/tests/gtests/CMakeLists.txt +index cef298d..1e763af 100644 +--- a/tests/gtests/CMakeLists.txt ++++ b/tests/gtests/CMakeLists.txt +@@ -19,7 +19,7 @@ if(WIN32 AND DNNL_WITH_SYCL) + add_definitions(-DGTEST_HAS_SEH=0) + endif() + +-add_subdirectory (gtest) ++find_package(GTest CONFIG REQUIRED) + + set(APP_NAME "gtest") + set(MAIN_SRC_GTEST ${CMAKE_CURRENT_SOURCE_DIR}/main.cpp) +@@ -35,7 +35,6 @@ if(UNIX) + endif() + + include_directories(${CMAKE_CURRENT_SOURCE_DIR} +- ${CMAKE_CURRENT_SOURCE_DIR}/gtest + ${CMAKE_CURRENT_SOURCE_DIR}/in + ${CMAKE_CURRENT_SOURCE_DIR}/../../src/common + ${CMAKE_CURRENT_SOURCE_DIR}/../../src/cpu +@@ -158,7 +157,7 @@ set_source_files_properties( + function(register_gtest exe src) + add_executable(${exe} ${MAIN_SRC_GTEST} ${src}) + add_definitions(-DNOMINMAX) # to allow std::max on Windows with parentheses +- target_link_libraries(${exe} ${LIB_NAME} dnnl_gtest ${EXTRA_SHARED_LIBS}) ++ target_link_libraries(${exe} ${LIB_NAME} gtest ${EXTRA_SHARED_LIBS}) + + get_source_file_property(no_engine_param ${src} NO_ENGINE_PARAM) + +diff --git a/tests/gtests/api/CMakeLists.txt b/tests/gtests/api/CMakeLists.txt +index 10819d1..6584541 100644 +--- a/tests/gtests/api/CMakeLists.txt ++++ b/tests/gtests/api/CMakeLists.txt +@@ -27,11 +27,11 @@ endif() + + # Switch off C API tests for CUDA since USM model is not supported + if(NOT DNNL_SYCL_CUDA) +- register_exe(${TEST_EXE} "${TEST_SOURCES}" "test" "dnnl_gtest") ++ register_exe(${TEST_EXE} "${TEST_SOURCES}" "test" "gtest") + endif() + + # Create DPC++ buffer target. + if(DNNL_WITH_SYCL) +- register_exe(${TEST_EXE}_buffer "${TEST_SOURCES}" "test" "dnnl_gtest") ++ register_exe(${TEST_EXE}_buffer "${TEST_SOURCES}" "test" "gtest") + target_compile_definitions(${TEST_EXE}_buffer PUBLIC -DTEST_DNNL_DPCPP_BUFFER) + endif() +diff --git a/tests/gtests/internals/CMakeLists.txt b/tests/gtests/internals/CMakeLists.txt +index c39d860..ae82272 100644 +--- a/tests/gtests/internals/CMakeLists.txt ++++ b/tests/gtests/internals/CMakeLists.txt +@@ -24,4 +24,4 @@ endif() + file(GLOB TEST_SOURCES ${CMAKE_CURRENT_SOURCE_DIR}/test_*.cpp) + list(APPEND TEST_SOURCES ${MAIN_SRC_GTEST}) + +-register_exe(${TEST_EXE} "${TEST_SOURCES}" "test" "dnnl_gtest") ++register_exe(${TEST_EXE} "${TEST_SOURCES}" "test" "gtest") +diff --git a/tests/gtests/ocl/CMakeLists.txt b/tests/gtests/ocl/CMakeLists.txt +index 9b686fb..c075271 100644 +--- a/tests/gtests/ocl/CMakeLists.txt ++++ b/tests/gtests/ocl/CMakeLists.txt +@@ -20,5 +20,5 @@ file(GLOB TEST_SOURCES ${CMAKE_CURRENT_SOURCE_DIR}/test_*.cpp) + + foreach(TEST_FILE ${TEST_SOURCES}) + get_filename_component(exe ${TEST_FILE} NAME_WE) +- register_exe(${exe} "${TEST_SOURCES};${MAIN_SRC_GTEST}" "test" "dnnl_gtest") ++ register_exe(${exe} "${TEST_SOURCES};${MAIN_SRC_GTEST}" "test" "gtest") + endforeach() +diff --git a/tests/gtests/ocl/api/CMakeLists.txt b/tests/gtests/ocl/api/CMakeLists.txt +index 6ca368e..dcd6e34 100644 +--- a/tests/gtests/ocl/api/CMakeLists.txt ++++ b/tests/gtests/ocl/api/CMakeLists.txt +@@ -19,4 +19,4 @@ set(TEST_EXE test_api_ocl) + file(GLOB TEST_SOURCES ${CMAKE_CURRENT_SOURCE_DIR}/test_*.cpp) + list(APPEND TEST_SOURCES ${MAIN_SRC_GTEST}) + +-register_exe(${TEST_EXE} "${TEST_SOURCES}" "test" "dnnl_gtest") ++register_exe(${TEST_EXE} "${TEST_SOURCES}" "test" "gtest") +diff --git a/tests/gtests/regression/CMakeLists.txt b/tests/gtests/regression/CMakeLists.txt +index 5d9692c..b9bbb77 100644 +--- a/tests/gtests/regression/CMakeLists.txt ++++ b/tests/gtests/regression/CMakeLists.txt +@@ -19,4 +19,4 @@ set(TEST_EXE test_regression) + file(GLOB TEST_SOURCES ${CMAKE_CURRENT_SOURCE_DIR}/test_*.cpp) + list(APPEND TEST_SOURCES ${MAIN_SRC_GTEST}) + +-register_exe(${TEST_EXE} "${TEST_SOURCES}" "test" "dnnl_gtest") ++register_exe(${TEST_EXE} "${TEST_SOURCES}" "test" "gtest") +diff --git a/tests/gtests/sycl/api/CMakeLists.txt b/tests/gtests/sycl/api/CMakeLists.txt +index 541a206..bedfeb6 100644 +--- a/tests/gtests/sycl/api/CMakeLists.txt ++++ b/tests/gtests/sycl/api/CMakeLists.txt +@@ -19,4 +19,4 @@ set(TEST_EXE test_api_sycl) + file(GLOB TEST_SOURCES ${CMAKE_CURRENT_SOURCE_DIR}/test_*.cpp) + list(APPEND TEST_SOURCES ${MAIN_SRC_GTEST}) + +-register_exe(${TEST_EXE} "${TEST_SOURCES}" "test" "dnnl_gtest") ++register_exe(${TEST_EXE} "${TEST_SOURCES}" "test" "gtest") +-- +2.31.1 + -- 2.31.1 From unknown Sun Jun 15 01:09:06 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Vinicius Monego Subject: bug#48423: closed ([PATCH 0/1] gnu: Add onednn.) Message-ID: References: <4394d6c0-da1e-06eb-b07f-adbaff803c09@posteo.net> <20210514183126.629672-1-monego@posteo.net> X-Gnu-PR-Message: they-closed 48423 X-Gnu-PR-Package: guix-patches X-Gnu-PR-Keywords: patch Reply-To: 48423@debbugs.gnu.org Date: Sun, 14 May 2023 14:59:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1684076342-22576-1" This is a multi-part message in MIME format... ------------=_1684076342-22576-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #48423: [PATCH 0/1] gnu: Add onednn. which was filed against the guix-patches package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 48423@debbugs.gnu.org. --=20 48423: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D48423 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1684076342-22576-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 48423-done) by debbugs.gnu.org; 14 May 2023 14:58:09 +0000 Received: from localhost ([127.0.0.1]:41326 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pyDAn-0005r0-0G for submit@debbugs.gnu.org; Sun, 14 May 2023 10:58:09 -0400 Received: from mout02.posteo.de ([185.67.36.66]:52021) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pyDAk-0005qT-Bz for 48423-done@debbugs.gnu.org; Sun, 14 May 2023 10:58:07 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 4B6FE240107 for <48423-done@debbugs.gnu.org>; Sun, 14 May 2023 16:58:00 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1684076280; bh=rjxbv9Zniha+XT8FtT8JRiX/8xTPB0PqW1tuZOd76R0=; h=Message-ID:Date:MIME-Version:To:Subject:From: Content-Transfer-Encoding:From; b=DNM5e58u2bm7MF+POzNKx5qixJzJen52N+KH1AeN88a5XFrMfZbLalOZo7wkKJ/o+ e3AJ2PUNrHS3zh6x3baPDo5LX5V9GIiqM/ccLMdeYllmCr2sTTwS/dAFXTwUL5w+NG 5bVWb/UD5NWGo7NvgaxPKiN+YEZ224HwjTSyPP0y5BXtWBFlhchSvU0SGvAa5PQOY3 wgcK0HEA+O/mOEtNJ8BQ3TG3ROVCnbFnQw9nYcPuHreVaL7/CvrFB9PVa4ErNNdLdq rkTl11fx+0VCUZhGdyU1SSuX39W95g5+wtXfMirmfiIp0KO2gKrF93Htry1fN+k1Yz tKfYkYHIyCa5w== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4QK5GH2f8rz6ty2 for <48423-done@debbugs.gnu.org>; Sun, 14 May 2023 16:57:55 +0200 (CEST) Message-ID: <4394d6c0-da1e-06eb-b07f-adbaff803c09@posteo.net> Date: Sun, 14 May 2023 14:57:51 +0000 MIME-Version: 1.0 To: 48423-done@debbugs.gnu.org Subject: [PATCH 0/1] gnu: Add onednn. Content-Language: en-US From: Vinicius Monego Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 48423-done 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: -3.3 (---) oneDNN was pushed as another patch in b718e42c96d6cd48539d9b452a7ab2b8c88df469. Closing. ------------=_1684076342-22576-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 14 May 2021 18:33:08 +0000 Received: from localhost ([127.0.0.1]:47044 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lhccT-00084R-TF for submit@debbugs.gnu.org; Fri, 14 May 2021 14:33:06 -0400 Received: from lists.gnu.org ([209.51.188.17]:38880) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lhccM-00083w-UE for submit@debbugs.gnu.org; Fri, 14 May 2021 14:32:59 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:50688) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lhccK-0004rc-Nj for guix-patches@gnu.org; Fri, 14 May 2021 14:32:57 -0400 Received: from mout01.posteo.de ([185.67.36.65]:36665) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lhccG-0004EU-Ok for guix-patches@gnu.org; Fri, 14 May 2021 14:32:55 -0400 Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id 67BE8240027 for ; Fri, 14 May 2021 20:32:47 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1621017167; bh=cvfIzd6Nhz9UxE0jmrSxzGbz8AISUXIwEH+R4Jhib6I=; h=From:To:Cc:Subject:Date:From; b=YsfwZ+T+hGn43hRKav70cRh0CwYHL7tsmOYA7U+9i0NyC0LedgKvwyIjYYAm+AJpY Gi//FEAc4PpJ/UF/ikoZeJ+WIG8NnojU920F6KvCqVYbyB4NjwKJwYtkVyvAuV4GJG +cBzZ+J0/JlpQb+iqSgl8BjcvGYKEchy0fJAasBcr9IzWAP/24SQebGKb6FzwzbA3d WtAydINYFbZ454qRywLlolwnjwj07pw3Fd+akK3Oc3oxM2VZBLf3SpFLkZeKU9t8Wk hXFnNRXOZEowlbopL/WmhH2wQpLi3U/5c0fBorVMk1Q0v0JgexQ47LyG6Isd/mdwaq smt6OvYc+82pg== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Fhcb15fpHz6tmD; Fri, 14 May 2021 20:32:45 +0200 (CEST) From: Vinicius Monego To: guix-patches@gnu.org Subject: [PATCH 0/1] gnu: Add onednn. Date: Fri, 14 May 2021 18:31:26 +0000 Message-Id: <20210514183126.629672-1-monego@posteo.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=185.67.36.65; envelope-from=monego@posteo.net; helo=mout01.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit Cc: Vinicius Monego 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: -2.3 (--) oneDNN is a deep learning library used by the likes of PyTorch and MXNet. In the Nix package definition it is mentioned that tests require SSE4.2. If that's a concern for the CI then tests should be disabled. Tests also take a long time to run. oneDNN supports the POWER architecture. It could be added to the list of supported system if that makes sense now. Vinicius Monego (1): gnu: Add onednn. gnu/local.mk | 2 + gnu/packages/machine-learning.scm | 44 +++++++ .../patches/onednn-disable-gpu-tests.patch | 26 ++++ .../onednn-use-system-googletest.patch | 117 ++++++++++++++++++ 4 files changed, 189 insertions(+) create mode 100644 gnu/packages/patches/onednn-disable-gpu-tests.patch create mode 100644 gnu/packages/patches/onednn-use-system-googletest.patch -- 2.31.1 ------------=_1684076342-22576-1--