From c6c5ef561b38668a324fd9a67a417f2c9f815a15 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dani=C3=ABl=20de=20Kok?= Date: Sun, 23 Feb 2025 16:57:31 +0000 Subject: [PATCH] magma: fix build on CUDA 11.8 The build of MAGMA fails since the last update due to missing `cuda/std/type_traits`. This is not an issue on CUDA >= 12.0, since `cuda_cccl` was already included as a dependency. --- pkgs/development/libraries/science/math/magma/generic.nix | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/pkgs/development/libraries/science/math/magma/generic.nix b/pkgs/development/libraries/science/math/magma/generic.nix index 39062859f2bc..ff0b5c8ae893 100644 --- a/pkgs/development/libraries/science/math/magma/generic.nix +++ b/pkgs/development/libraries/science/math/magma/generic.nix @@ -160,6 +160,7 @@ stdenv.mkDerivation { ++ lists.optionals cudaSupport ( with effectiveCudaPackages; [ + cuda_cccl # and cuda_cudart # cuda_runtime.h libcublas # cublas_v2.h libcusparse # cusparse.h @@ -170,9 +171,6 @@ stdenv.mkDerivation { ++ lists.optionals (cudaAtLeast "11.8") [ cuda_profiler_api # ] - ++ lists.optionals (cudaAtLeast "12.0") [ - cuda_cccl # - ] ) ++ lists.optionals rocmSupport ( with effectiveRocmPackages;