From 15b731954b09588c290b671d40248f90cdcf2b7a Mon Sep 17 00:00:00 2001 From: Z572 <873216071@qq.com> Date: Sat, 17 Jun 2023 21:47:11 +0800 Subject: gnu: oneapi-dnnl: Fix building on riscv64-linux. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit '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 --- gnu/packages/machine-learning.scm | 4 ++++ 1 file changed, 4 insertions(+) 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 ;;; Copyright © 2023 zamfofex ;;; Copyright © 2023 Navid Afkhami +;;; 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 -- cgit 1.4.1