Loading pkgs/development/cuda-modules/setup-hooks/auto-add-cuda-compat-runpath.sh→pkgs/development/cuda-modules/packages/autoAddCudaCompatRunpath/auto-add-cuda-compat-runpath.sh +0 −0 File moved. View file pkgs/development/cuda-modules/packages/autoAddCudaCompatRunpath/package.nix 0 → 100644 +27 −0 Original line number Diff line number Diff line # autoAddCudaCompatRunpath hook must be added AFTER `setupCudaHook`. Both # hooks prepend a path with `libcuda.so` to the `DT_RUNPATH` section of # patched elf files, but `cuda_compat` path must take precedence (otherwise, # it doesn't have any effect) and thus appear first. Meaning this hook must be # executed last. { autoFixElfFiles, cuda_compat ? null, flags, lib, makeSetupHook, }: makeSetupHook { name = "auto-add-cuda-compat-runpath-hook"; propagatedBuildInputs = [ autoFixElfFiles ]; substitutions = { # Hotfix Ofborg evaluation libcudaPath = if flags.isJetsonBuild then "${cuda_compat}/compat" else null; }; meta.broken = !flags.isJetsonBuild; # Pre-cuda_compat CUDA release: meta.badPlatforms = lib.optionals (cuda_compat == null) lib.platforms.all; meta.platforms = cuda_compat.meta.platforms or [ ]; } ./auto-add-cuda-compat-runpath.sh pkgs/development/cuda-modules/backend-stdenv.nix→pkgs/development/cuda-modules/packages/backendStdenv.nix +8 −0 Original line number Diff line number Diff line # Exposed as cudaPackages.backendStdenv. # This is what nvcc uses as a backend, # and it has to be an officially supported one (e.g. gcc11 for cuda11). # # It, however, propagates current stdenv's libstdc++ to avoid "GLIBCXX_* not found errors" # when linked with other C++ libraries. # E.g. for cudaPackages_11_8 we use gcc11 with gcc12's libstdc++ # Cf. https://github.com/NixOS/nixpkgs/pull/218265 for context { cudaVersion, lib, Loading pkgs/development/cuda-modules/cudnn-frontend/0001-cmake-float-out-common-python-bindings-option.patch→pkgs/development/cuda-modules/packages/cudnn-frontend/0001-cmake-float-out-common-python-bindings-option.patch +0 −0 File moved. View file pkgs/development/cuda-modules/cudnn-frontend/0002-cmake-add-config-so-headers-can-be-discovered-when-i.patch→pkgs/development/cuda-modules/packages/cudnn-frontend/0002-cmake-add-config-so-headers-can-be-discovered-when-i.patch +0 −0 File moved. View file Loading
pkgs/development/cuda-modules/setup-hooks/auto-add-cuda-compat-runpath.sh→pkgs/development/cuda-modules/packages/autoAddCudaCompatRunpath/auto-add-cuda-compat-runpath.sh +0 −0 File moved. View file
pkgs/development/cuda-modules/packages/autoAddCudaCompatRunpath/package.nix 0 → 100644 +27 −0 Original line number Diff line number Diff line # autoAddCudaCompatRunpath hook must be added AFTER `setupCudaHook`. Both # hooks prepend a path with `libcuda.so` to the `DT_RUNPATH` section of # patched elf files, but `cuda_compat` path must take precedence (otherwise, # it doesn't have any effect) and thus appear first. Meaning this hook must be # executed last. { autoFixElfFiles, cuda_compat ? null, flags, lib, makeSetupHook, }: makeSetupHook { name = "auto-add-cuda-compat-runpath-hook"; propagatedBuildInputs = [ autoFixElfFiles ]; substitutions = { # Hotfix Ofborg evaluation libcudaPath = if flags.isJetsonBuild then "${cuda_compat}/compat" else null; }; meta.broken = !flags.isJetsonBuild; # Pre-cuda_compat CUDA release: meta.badPlatforms = lib.optionals (cuda_compat == null) lib.platforms.all; meta.platforms = cuda_compat.meta.platforms or [ ]; } ./auto-add-cuda-compat-runpath.sh
pkgs/development/cuda-modules/backend-stdenv.nix→pkgs/development/cuda-modules/packages/backendStdenv.nix +8 −0 Original line number Diff line number Diff line # Exposed as cudaPackages.backendStdenv. # This is what nvcc uses as a backend, # and it has to be an officially supported one (e.g. gcc11 for cuda11). # # It, however, propagates current stdenv's libstdc++ to avoid "GLIBCXX_* not found errors" # when linked with other C++ libraries. # E.g. for cudaPackages_11_8 we use gcc11 with gcc12's libstdc++ # Cf. https://github.com/NixOS/nixpkgs/pull/218265 for context { cudaVersion, lib, Loading
pkgs/development/cuda-modules/cudnn-frontend/0001-cmake-float-out-common-python-bindings-option.patch→pkgs/development/cuda-modules/packages/cudnn-frontend/0001-cmake-float-out-common-python-bindings-option.patch +0 −0 File moved. View file
pkgs/development/cuda-modules/cudnn-frontend/0002-cmake-add-config-so-headers-can-be-discovered-when-i.patch→pkgs/development/cuda-modules/packages/cudnn-frontend/0002-cmake-add-config-so-headers-can-be-discovered-when-i.patch +0 −0 File moved. View file