mirror of
https://codeberg.org/guix/guix.git
synced 2026-01-25 03:55:08 -06:00
gnu: Remove oneapi-dnnl.
Replaced by onednn in (gnu packages oneapi). * gnu/packages/oneapi.scm (oneapi-dnnl): Define as the deprecated version of onednn. * gnu/packages/machine-learning.scm (oneapi-dnnl): Delete variable. * gnu/packages/machine-learning.scm (python-pytorch)[native-inputs]: Remove oneapi-dnnl; add onednn. * gnu/packages/machine-learning.scm (python-torchaudio)[native-inputs]: Remove oneapi-dnnl; add onednn. Merges guix/guix!5527 Change-Id: Ied9ff943607423c46963ddd55b78c687f5561f64
This commit is contained in:
parent
7d67dca448
commit
032c5b3c1f
2 changed files with 4 additions and 63 deletions
|
|
@ -5069,7 +5069,7 @@ PyTorch.")
|
|||
googlebenchmark
|
||||
libuv
|
||||
miniz-for-pytorch
|
||||
oneapi-dnnl
|
||||
onednn
|
||||
openblas
|
||||
openmpi
|
||||
openssl ; for cpp-httplib
|
||||
|
|
@ -5196,7 +5196,7 @@ test/torchaudio_unittest/prototype/hifi_gan/hifi_gan_gpu_test.py"
|
|||
(native-inputs
|
||||
(list cmake
|
||||
ninja
|
||||
oneapi-dnnl
|
||||
onednn
|
||||
python-expecttest
|
||||
python-parameterized
|
||||
python-pytest
|
||||
|
|
@ -6727,67 +6727,6 @@ easily extensible.")
|
|||
Brian 2 simulator.")
|
||||
(license license:cecill)))
|
||||
|
||||
(define-public oneapi-dnnl
|
||||
(package
|
||||
(name "oneapi-dnnl")
|
||||
(version "3.5.3")
|
||||
(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 "1m2d7qlbfk86rmvmpvx2k3rc2k0l9hf9qpa54jl44670ls9n8i7w"))
|
||||
(modules '((guix build utils)
|
||||
(ice-9 rdelim)))
|
||||
;; Copyright date used by code generation script
|
||||
(snippet
|
||||
'(for-each
|
||||
(lambda (file)
|
||||
(with-atomic-file-replacement
|
||||
file
|
||||
(lambda (in out)
|
||||
(let loop ((line (read-line in 'concat)))
|
||||
(if (string-contains line "Copyright")
|
||||
(display line out)
|
||||
(loop (read-line in 'concat)))))))
|
||||
'("include/oneapi/dnnl/dnnl_debug.h"
|
||||
"src/common/dnnl_debug_autogenerated.cpp"
|
||||
"tests/benchdnn/dnnl_debug_autogenerated.cpp"
|
||||
"tests/benchdnn/dnnl_debug.hpp")))))
|
||||
(build-system cmake-build-system)
|
||||
(arguments
|
||||
(list
|
||||
#:configure-flags
|
||||
`(list
|
||||
,@(if (target-riscv64?)
|
||||
(list #:configure-flags '("-DDNNL_CPU_RUNTIME=SEQ"))
|
||||
'())
|
||||
;; Used in PyTorch
|
||||
"-DDNNL_EXPERIMENTAL_UKERNEL=ON")
|
||||
#:phases
|
||||
'(modify-phases %standard-phases
|
||||
(add-after 'configure 'codegen
|
||||
(lambda _
|
||||
(with-directory-excursion "../source"
|
||||
(invoke "castxml" "--castxml-cc-gnu-c" "clang"
|
||||
"--castxml-output=1" "-DDNNL_EXPERIMENTAL_SPARSE"
|
||||
"-Iinclude" "-I../build/include"
|
||||
"include/oneapi/dnnl/dnnl_types.h" "-o" "types.xml")
|
||||
(invoke "python3" "scripts/generate_dnnl_debug.py" "types.xml")
|
||||
;; Modifies include/oneapi/dnnl/dnnl.hpp
|
||||
(invoke "python3" "scripts/generate_format_tags.py")))))))
|
||||
(native-inputs (list castxml clang-17 python))
|
||||
(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.")
|
||||
(supported-systems %64bit-supported-systems)
|
||||
(license license:asl2.0)))
|
||||
|
||||
(define-public python-gguf
|
||||
(package
|
||||
(name "python-gguf")
|
||||
|
|
|
|||
|
|
@ -149,6 +149,8 @@ performance library of basic building blocks for deep learning applications.")
|
|||
(supported-systems %64bit-supported-systems)
|
||||
(license license:asl2.0)))
|
||||
|
||||
(define-public oneapi-dnnl (deprecated-package "oneapi-dnnl" onednn))
|
||||
|
||||
;;; Updates and replaces tbb in (gnu packages tbb)
|
||||
(define-public onetbb
|
||||
(package
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue