diff --git a/pkgs/development/cuda-modules/packages/nccl.nix b/pkgs/development/cuda-modules/packages/nccl.nix index 51a4399099ca..f73b91417fe4 100644 --- a/pkgs/development/cuda-modules/packages/nccl.nix +++ b/pkgs/development/cuda-modules/packages/nccl.nix @@ -46,7 +46,9 @@ backendStdenv.mkDerivation (finalAttrs: { # by differences in assumed version of CCCL: using a newer CCCL with an older release of CUDA can (sometimes) allow # newer versions of NCCL than what we provide here. version = - if cudaAtLeast "11.7" then + if cudaAtLeast "12.0" then + "2.30.7-1" + else if cudaAtLeast "11.7" then "2.28.7-1" else if cudaAtLeast "11.6" then "2.26.6-1" @@ -58,6 +60,7 @@ backendStdenv.mkDerivation (finalAttrs: { repo = "nccl"; tag = "v${finalAttrs.version}"; hash = getAttr finalAttrs.version { + "2.30.7-1" = "sha256-fdiQZweX0jYfGroP0bL5Sfv3+DkCzVBZZLEbPv8aqq8="; "2.28.7-1" = "sha256-NM19OiBBGmv3cGoVoRLKSh9Y59hiDoei9NIrRnTqWeA="; "2.26.6-1" = "sha256-vkWMGXCy+dIpYCecdafmOAGlnfRxIQ5Y2ZQuMjinraI="; "2.25.1-1" = "sha256-3snh0xdL9I5BYqdbqdl+noizJoI38mZRVOJChgEE1I8="; @@ -102,6 +105,10 @@ backendStdenv.mkDerivation (finalAttrs: { --replace-fail \ '-std=c++11' \ '$(CXXSTD)' + '' + + optionalString (versionAtLeast finalAttrs.version "2.30.7-1") '' + nixLog "patching shebang in $PWD/src/misc/generate_git_version.py" + patchShebangs ./src/misc/generate_git_version.py ''; # TODO: This would likely break under cross; need to delineate between build and host packages.