diff --git a/pkgs/by-name/ol/ollama/package.nix b/pkgs/by-name/ol/ollama/package.nix index 2eaba9c0c4f0..772fedf6fd96 100644 --- a/pkgs/by-name/ol/ollama/package.nix +++ b/pkgs/by-name/ol/ollama/package.nix @@ -100,6 +100,9 @@ let (lib.getOutput "static" cudaPackages.cuda_cudart) (lib.getBin (cudaPackages.cuda_nvcc.__spliced.buildHost or cudaPackages.cuda_nvcc)) ]; + + # cuda_ccl and cuda_cudart both have a LICENSE file in their output + ignoreCollisions = true; }; cudaPath = lib.removeSuffix "-${cudaMajorVersion}" cudaToolkit; diff --git a/pkgs/development/cuda-modules/packages/cuda_cccl.nix b/pkgs/development/cuda-modules/packages/cuda_cccl.nix index ee0839f6aa5b..e49e0aa8427c 100644 --- a/pkgs/development/cuda-modules/packages/cuda_cccl.nix +++ b/pkgs/development/cuda-modules/packages/cuda_cccl.nix @@ -1,7 +1,9 @@ { buildRedist, cudaAtLeast, + cudaOlder, lib, + fetchpatch, }: buildRedist { redistName = "cuda"; @@ -23,6 +25,18 @@ buildRedist { rmdir -v "$PWD/include/cccl" ''; + patches = lib.optionals (cudaAtLeast "12.9" && cudaOlder "13.0") [ + # Fix missing _CCCL_PP_SPLICE_WITH_IMPL20 in preprocessor.h + # https://github.com/NVIDIA/cccl/issues/4967 + # https://github.com/NVIDIA/cccl/pull/4972 + (fetchpatch { + name = "fix-missing-_CCCL_PP_SPLICE_WITH_IMPL20"; + url = "https://github.com/NVIDIA/cccl/commit/2c2276d8b19d737cb16811ce2eb761030f472e60.patch"; + stripLen = 1; + hash = "sha256-hYfMFsd7Y8CwuNGaPYG6uEB+lg1TmWSIIU5ToVMULKY="; + }) + ]; + # NVIDIA, in their wisdom, expect CCCL to be a directory inside include. # https://github.com/NVIDIA/cutlass/blob/087c84df83d254b5fb295a7a408f1a1d554085cf/CMakeLists.txt#L773 postInstall = lib.optionalString (cudaAtLeast "13.0") '' diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 9732092816f4..3336049b8904 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -2151,7 +2151,7 @@ with pkgs; cudaPackages_13_2 ; - cudaPackages_12 = cudaPackages_12_8; + cudaPackages_12 = cudaPackages_12_9; cudaPackages_13 = cudaPackages_13_0;