Skip to content

Commit 2cd2dec

Browse files
authored
cuda-modules: fix sort predicate stability (#368366)
2 parents 2abffec + 9fd753e commit 2cd2dec

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pkgs/development/cuda-modules/generic-builders/multiplex.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ let
8181
redistArch = flags.getRedistArch hostPlatform.system;
8282

8383
preferable =
84-
p1: p2: (isSupported p2 -> isSupported p1) && (strings.versionAtLeast p1.version p2.version);
84+
p1: p2: (isSupported p2 -> isSupported p1) && (strings.versionOlder p2.version p1.version);
8585

8686
# All the supported packages we can build for our platform.
8787
# perSystemReleases :: List Package

pkgs/development/python-modules/torch/source/default.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,7 @@ buildPythonPackage rec {
364364
''
365365
+ lib.optionalString (cudaSupport && cudaPackages ? cudnn) ''
366366
export CUDNN_INCLUDE_DIR=${lib.getLib cudnn}/include
367-
export CUDNN_LIB_DIR=${cudnn.lib}/lib
367+
export CUDNN_LIB_DIR=${lib.getLib cudnn}/lib
368368
''
369369
+ lib.optionalString rocmSupport ''
370370
export ROCM_PATH=${rocmtoolkit_joined}

0 commit comments

Comments
 (0)