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

Previous Next

Package: guix-patches;

Reported by: Z572 <873216071 <at> qq.com>

Date: Sat, 17 Jun 2023 13:48:01 UTC

Severity: normal

Tags: patch

Done: Ludovic Courtès <ludo <at> gnu.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 64130 in the body.
You can then email your comments to 64130 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to guix-patches <at> gnu.org:
bug#64130; Package guix-patches. (Sat, 17 Jun 2023 13:48:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Z572 <873216071 <at> qq.com>:
New bug report received and forwarded. Copy sent to guix-patches <at> gnu.org. (Sat, 17 Jun 2023 13:48:01 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Z572 <873216071 <at> qq.com>
To: guix-patches <at> gnu.org
Subject: [PATCH] gnu: oneapi-dnnl: Fix building on riscv64-linux.
Date: Sat, 17 Jun 2023 21:47:11 +0800
'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 <at> ngraves.fr>
 ;;; Copyright © 2023 zamfofex <zamfofex <at> twdb.moe>
 ;;; Copyright © 2023 Navid Afkhami <navid.afkhami <at> mdc-berlin.de>
+;;; Copyright © 2023 Zheng Junjie <873216071 <at> 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





Reply sent to Ludovic Courtès <ludo <at> gnu.org>:
You have taken responsibility. (Sun, 25 Jun 2023 21:36:02 GMT) Full text and rfc822 format available.

Notification sent to Z572 <873216071 <at> qq.com>:
bug acknowledged by developer. (Sun, 25 Jun 2023 21:36:02 GMT) Full text and rfc822 format available.

Message #10 received at 64130-done <at> debbugs.gnu.org (full text, mbox):

From: Ludovic Courtès <ludo <at> gnu.org>
To: Z572 <873216071 <at> qq.com>
Cc: 64130-done <at> debbugs.gnu.org
Subject: Re: bug#64130: [PATCH] gnu: oneapi-dnnl: Fix building on
 riscv64-linux.
Date: Sun, 25 Jun 2023 23:35:42 +0200
Z572 <873216071 <at> 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!




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Mon, 24 Jul 2023 11:24:06 GMT) Full text and rfc822 format available.

This bug report was last modified 1 year and 333 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.