From b718e42c96d6cd48539d9b452a7ab2b8c88df469 Mon Sep 17 00:00:00 2001 From: zamfofex Date: Wed, 26 Apr 2023 10:17:38 -0300 Subject: [PATCH] gnu: Add oneDNN. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * gnu/packages/machine-learning.scm (oneapi-dnnl): New variable. Signed-off-by: 宋文武 --- gnu/packages/machine-learning.scm | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/gnu/packages/machine-learning.scm b/gnu/packages/machine-learning.scm index fae6d244b0..7cd128443e 100644 --- a/gnu/packages/machine-learning.scm +++ b/gnu/packages/machine-learning.scm @@ -18,6 +18,7 @@ ;;; Copyright © 2020, 2021, 2022, 2023 Vinicius Monego ;;; Copyright © 2020, 2021, 2022, 2023 Maxim Cournoyer ;;; Copyright © 2022, 2023 Nicolas Graves +;;; Copyright © 2023 zamfofex ;;; ;;; This file is part of GNU Guix. ;;; @@ -4303,3 +4304,23 @@ easily extensible.") Brian 2 simulator.") (license license:cecill))) +(define-public oneapi-dnnl + (package + (name "oneapi-dnnl") + (version "3.1") + (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)) + (sha256 + (base32 "1jgmb5kl0bf4a2zfn94zlb117672r9lvvkkmwl86ihlyr1mpr3d0")))) + (build-system cmake-build-system) + (home-page "https://github.com/oneapi-src/oneDNN") + (synopsis "Deep Neural Network Library") + (description + "OneAPI Deep Neural Network Library (oneDNN) is a cross-platform +performance library of basic building blocks for deep learning applications.") + (license license:asl2.0)))