cudaPackages.cudaFlags: drop unused cmakeCudaArchitectures attribute

This commit is contained in:
Connor Baker 2024-04-18 15:51:03 +00:00
parent 7a66dcf83f
commit 6208368a82

View File

@ -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;