* [bug#64130] [PATCH] gnu: oneapi-dnnl: Fix building on riscv64-linux.
@ 2023-06-17 13:47 Z572 via Guix-patches via
2023-06-25 21:35 ` bug#64130: " Ludovic Courtès
0 siblings, 1 reply; 2+ messages in thread
From: Z572 via Guix-patches via @ 2023-06-17 13:47 UTC (permalink / raw)
To: 64130
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset=y, Size: 1345 bytes --]
'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.
---
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 927b531cf2..adb4c0b6b2 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.
;;;
@@ -4578,6 +4579,9 @@ (define-public oneapi-dnnl
(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
base-commit: ff690faf66d8f37ee6b679fcb7cf37e369624ee3
--
2.40.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* bug#64130: [PATCH] gnu: oneapi-dnnl: Fix building on riscv64-linux.
2023-06-17 13:47 [bug#64130] [PATCH] gnu: oneapi-dnnl: Fix building on riscv64-linux Z572 via Guix-patches via
@ 2023-06-25 21:35 ` Ludovic Courtès
0 siblings, 0 replies; 2+ messages in thread
From: Ludovic Courtès @ 2023-06-25 21:35 UTC (permalink / raw)
To: Z572; +Cc: 64130-done
Z572 <873216071@qq.com> skribis:
> '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.
Applied, thanks!
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-06-25 21:36 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-06-17 13:47 [bug#64130] [PATCH] gnu: oneapi-dnnl: Fix building on riscv64-linux Z572 via Guix-patches via
2023-06-25 21:35 ` bug#64130: " Ludovic Courtès
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).