diff options
author | Jeremy Schlatter <jeremy@jeremyschlatter.com> | 2024-06-23 15:39:58 -0700 |
---|---|---|
committer | Jeremy Schlatter <jeremy@jeremyschlatter.com> | 2024-06-23 16:51:31 -0700 |
commit | 4a2b827c716ffcd67f6c12d14024ae63a5311c34 (patch) | |
tree | 1fc6aafa03e787268204386038cea5efcb95fc1c /pkgs/applications/science/molecular-dynamics | |
parent | 803a229f08cd86630c3bf782412efe44c7cf109f (diff) |
treewide: use cmakeCudaArchitecturesString
Diffstat (limited to 'pkgs/applications/science/molecular-dynamics')
-rw-r--r-- | pkgs/applications/science/molecular-dynamics/gromacs/default.nix | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pkgs/applications/science/molecular-dynamics/gromacs/default.nix b/pkgs/applications/science/molecular-dynamics/gromacs/default.nix index bf2fd1dbf350..6531002ceb31 100644 --- a/pkgs/applications/science/molecular-dynamics/gromacs/default.nix +++ b/pkgs/applications/science/molecular-dynamics/gromacs/default.nix @@ -24,7 +24,7 @@ assert enableCuda -> singlePrec; let - inherit (cudaPackages.cudaFlags) cudaCapabilities dropDot; + inherit (cudaPackages.flags) cmakeCudaArchitecturesString; # Select reasonable defaults for all major platforms # The possible values are defined in CMakeLists.txt: @@ -111,10 +111,10 @@ in stdenv.mkDerivation rec { ] ) ++ lib.optionals enableCuda [ "-DGMX_GPU=CUDA" - (lib.cmakeFeature "CMAKE_CUDA_ARCHITECTURES" (builtins.concatStringsSep ";" (map dropDot cudaCapabilities))) + (lib.cmakeFeature "CMAKE_CUDA_ARCHITECTURES" cmakeCudaArchitecturesString) # Gromacs seems to ignore and override the normal variables, so we add this ad hoc: - (lib.cmakeFeature "GMX_CUDA_TARGET_COMPUTE" (builtins.concatStringsSep ";" (map dropDot cudaCapabilities))) + (lib.cmakeFeature "GMX_CUDA_TARGET_COMPUTE" cmakeCudaArchitecturesString) ]; postInstall = '' |