diff options
author | Z572 <[email protected]> | 2023-06-17 21:47:11 +0800 |
---|---|---|
committer | Ludovic Courtès <[email protected]> | 2023-06-25 23:46:03 +0200 |
commit | 15b731954b09588c290b671d40248f90cdcf2b7a (patch) | |
tree | 75c43f9f5cc0b0c7906bff63804e9d7878c71916 /gnu/packages/machine-learning.scm | |
parent | 6c0e7b266523a2cc381c76392c830a237d9e41a9 (diff) |
gnu: oneapi-dnnl: Fix building on riscv64-linux.
'CMake Error at src/cpu/rv64/CMakeLists.txt:36 (message):
Only sequential runtime is now supported for a RISC-V CPU'.
* gnu/packages/machine-learning.scm (oneapi-dnnl)[arguments]: Adjust
configure-flags when building for riscv64-linux to fix build.
Signed-off-by: Ludovic Courtès <[email protected]>
Diffstat (limited to 'gnu/packages/machine-learning.scm')
-rw-r--r-- | gnu/packages/machine-learning.scm | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gnu/packages/machine-learning.scm b/gnu/packages/machine-learning.scm index 8fbb0274d4..e1b26e69c3 100644 --- a/gnu/packages/machine-learning.scm +++ b/gnu/packages/machine-learning.scm @@ -20,6 +20,7 @@ ;;; Copyright © 2022, 2023 Nicolas Graves <[email protected]> ;;; Copyright © 2023 zamfofex <[email protected]> ;;; Copyright © 2023 Navid Afkhami <[email protected]> +;;; Copyright © 2023 Zheng Junjie <[email protected]> ;;; ;;; This file is part of GNU Guix. ;;; @@ -4660,6 +4661,9 @@ Brian 2 simulator.") (sha256 (base32 "1jgmb5kl0bf4a2zfn94zlb117672r9lvvkkmwl86ihlyr1mpr3d0")))) (build-system cmake-build-system) + (arguments (if (target-riscv64?) + (list #:configure-flags #~'("-DDNNL_CPU_RUNTIME=SEQ")) + '())) (home-page "https://github.com/oneapi-src/oneDNN") (synopsis "Deep Neural Network Library") (description |