aboutsummaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorZ572 <873216071@qq.com>2023-06-17 21:47:11 +0800
committerLudovic Courtès <ludo@gnu.org>2023-06-25 23:46:03 +0200
commit15b731954b09588c290b671d40248f90cdcf2b7a (patch)
tree75c43f9f5cc0b0c7906bff63804e9d7878c71916 /gnu
parent6c0e7b266523a2cc381c76392c830a237d9e41a9 (diff)
downloadguix-15b731954b09588c290b671d40248f90cdcf2b7a.tar.gz
guix-15b731954b09588c290b671d40248f90cdcf2b7a.zip
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 <ludo@gnu.org>
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/machine-learning.scm4
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 <ngraves@ngraves.fr>
;;; Copyright © 2023 zamfofex <zamfofex@twdb.moe>
;;; Copyright © 2023 Navid Afkhami <navid.afkhami@mdc-berlin.de>
+;;; Copyright © 2023 Zheng Junjie <873216071@qq.com>
;;;
;;; 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