From 6208368a822cf27adfc7b743e3be6d96ebe91095 Mon Sep 17 00:00:00 2001 From: Connor Baker Date: Thu, 18 Apr 2024 15:51:03 +0000 Subject: [PATCH] cudaPackages.cudaFlags: drop unused cmakeCudaArchitectures attribute --- pkgs/development/cuda-modules/flags.nix | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/pkgs/development/cuda-modules/flags.nix b/pkgs/development/cuda-modules/flags.nix index 3a6bafdd8246..93952a66216b 100644 --- a/pkgs/development/cuda-modules/flags.nix +++ b/pkgs/development/cuda-modules/flags.nix @@ -209,15 +209,10 @@ let # E.g. "-gencode=arch=compute_75,code=sm_75 ... -gencode=arch=compute_86,code=compute_86" gencodeString = strings.concatStringsSep " " gencode; - # cmakeCudaArchitectures :: List String - # A list of CUDA capabilities without dots, suitable for passing to CMake. - # E.g. [ "75" "86" ] - cmakeCudaArchitectures = lists.map dropDot cudaCapabilities; - # cmakeCudaArchitecturesString :: String # A semicolon-separated string of CUDA capabilities without dots, suitable for passing to CMake. # E.g. "75;86" - cmakeCudaArchitecturesString = strings.concatStringsSep ";" cmakeCudaArchitectures; + cmakeCudaArchitecturesString = strings.concatMapStringsSep ";" dropDot cudaCapabilities; # Jetson devices cannot be targeted by the same binaries which target non-Jetson devices. While # NVIDIA provides both `linux-aarch64` and `linux-sbsa` packages, which both target `aarch64`, @@ -282,10 +277,6 @@ assert ]; gencodeString = "-gencode=arch=compute_75,code=sm_75 -gencode=arch=compute_86,code=sm_86 -gencode=arch=compute_86,code=compute_86"; - cmakeCudaArchitectures = [ - "75" - "86" - ]; cmakeCudaArchitecturesString = "75;86"; isJetsonBuild = false; @@ -357,10 +348,6 @@ assert ]; gencodeString = "-gencode=arch=compute_62,code=sm_62 -gencode=arch=compute_72,code=sm_72 -gencode=arch=compute_72,code=compute_72"; - cmakeCudaArchitectures = [ - "62" - "72" - ]; cmakeCudaArchitecturesString = "62;72"; isJetsonBuild = true;