Subject: bug#64130: closed (Re: bug#64130: [PATCH] gnu: oneapi-dnnl: Fix building on riscv64-linux.)

From: [email-masked] (GNU bug Tracking System)
Date: Sun, 25 Jun 2023 21:36:02 +0000

Your bug report

#64130: [PATCH] gnu: oneapi-dnnl: Fix building on riscv64-linux.

which was filed against the guix-patches package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
64130: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=64130
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: bug#64130: [PATCH] gnu: oneapi-dnnl: Fix building on riscv64-linux.
From: Ludovic Courtès <[email-masked]>
To: Z572 <[email-masked]>
Cc: [email-masked]
Date: Sun, 25 Jun 2023 23:35:42 +0200
List-Id: <debbugs-submit.debbugs.gnu.org>

Z572 <[email-masked]> 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!

Subject: [PATCH] gnu: oneapi-dnnl: Fix building on riscv64-linux.
From: Z572 <[email-masked]>
To: [email-masked]
Date: Sat, 17 Jun 2023 21:47:11 +0800
List-Id: <debbugs-submit.debbugs.gnu.org>

'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 <[email-masked]>
 ;;; Copyright © 2023 zamfofex <[email-masked]>
 ;;; Copyright © 2023 Navid Afkhami <[email-masked]>
+;;; Copyright © 2023 Zheng Junjie <[email-masked]>
 ;;;
 ;;; 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