1
0
mirror of https://git.savannah.gnu.org/git/guix.git synced 2026-06-14 15:04:07 +02:00
Files
guix/gnu/packages/patches/cianna-remove-error-for-missing-cuda.patch
Sharlatan Hellseher 20a12ea989 gnu: cianna: Update to 1.0.1.2-0.c9aa934.
* gnu/packages/astronomy.scm (cianna): Update to
c9aa934a931ed77663997f0f20172ee7f63b068a commit.
[source] <patches>: Add patch fixing missing CUDA error during runtime.
[build-system]: Switch to cmake-build-system.
[phases]{configure, check, build}: Keep phases.
{fix-paths}: Remove phase.
[native-inputs]: Remove python-wrapper, python-numpy, python-setuptools.

* gnu/packages/patches/cianna-remove-error-for-missing-cuda.patch: New file.
* gnu/local.mk (dist_patch_DATA): Register patch

Change-Id: I953ed80843ce9939b46435d8e9b8a7f2966774d4
Reviewed-by: Hugo Buddelmeijer <hugo@buddelmeijer.nl>
2026-04-30 13:20:51 +01:00

33 lines
923 B
Diff

From 5eed2d2ca7c13c08ca7eb92fc4a78c30ca4b6b3d Mon Sep 17 00:00:00 2001
From: Hellseher <sharlatanus@gmail.com>
Date: Sat, 18 Apr 2026 08:26:29 +0000
Subject: [PATCH] Remove CUDA error handling from network.c
Removed error handling for CUDA compilation check.
Fixes: https://github.com/Deyht/CIANNA/issues/4
---
src/network.c | 9 ---------
1 file changed, 9 deletions(-)
diff --git a/src/network.c b/src/network.c
index d454f64..5a9497c 100644
--- a/src/network.c
+++ b/src/network.c
@@ -155,15 +155,6 @@ CIANNA V-1.0.1.2 stable build (04/2026), by D.Cornu\n\
init_cuda(networks[network_number]);
#endif
- #ifndef CUDA
- if(comp_int == C_CUDA)
- {
- printf("\n ERROR: compute method set to CUDA while CIANNA was not compiled for it.\n");
- printf(" Install Nvidia CUDA and recompile CIANNA with the appropriate option.\n\n");
- exit(EXIT_FAILURE);
- }
- #endif
-
#ifndef BLAS
if(comp_int == C_BLAS)
{