about summary refs log tree commit diff
path: root/pkgs/development/cuda-modules/cuda/overrides.nix
AgeCommit message (Collapse)AuthorFilesLines
2024-04-18cuda-modules/cuda/overrides: refactorConnor Baker1-182/+268
2024-04-10cuda-modules: update uses of substituteInPlace to --replace-fail to fix ↵Connor Baker1-3/+3
deprecation warning
2024-04-01{pkgs/development/cuda-modules,pkgs/test/cuda,pkgs/top-level/cuda-packages.n ↵Connor Baker1-91/+89
ix}: reformat all CUDA files with nixfmt-rfc-style 2023-03-01 ```bash nix run github:NixOS/nixpkgs/ab6071eb54cc9b66dda436111d4f569e4e56cbf4#nixfmt-rfc-style -L --allow-import-from-derivation -- pkgs/development/cuda-modules pkgs/test/cuda pkgs/top-level/cuda-packages.nix ```
2024-01-20cudaPackages.cuda_nvcc: back-end cc already exposes the c++ stdlibSomeone Serge1-2/+0
Unbreaks evaluation after the refactoring in 86c28ee650c4393ec1b6f8815a0e1ddc010cd6cb (https://github.com/NixOS/nixpkgs/pull/282220). Explicitly extending nvcc's LIBRARIES may have been redundant (building something mildly cursed like jaxlib may be necessary to verify) Previously: ``` ❯ NIXPKGS_ALLOW_UNFREE=1 nix-instantiate '.' -A tests.cuda ... error: necessary to fix CI ❯ nix build -f '.' --arg config '{ allowUnfree = true; }' -L python3Packages.torchWithCuda ... error: necessary to fix CI ``` Now: ``` ❯ NIXPKGS_ALLOW_UNFREE=1 nix-instantiate '.' -A tests.cuda /nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-cuda-samples-12.2.drv /nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-saxpy-unstable-2023-07-11.drv ... ```
2024-01-20cc-wrapper: relocate proprietary-compiler-specific materialAdam Joseph1-1/+1
PR #275947, which was self-merged without approvals, inserted functionality specific to a propriteary closed-source compiler (CUDA) into cc-wrapper. This commit relocates this CUDA-specific functionality into the appropritate place: `cuda-modules`. It is unclear to me exactly what this function is supposed to be doing; much of it (like the `.kind` attributes) do not appear to be used *anywhere* in nixpkgs. Making sure we don't insert unexplained deadcode like this is one of the important functions of the review process.
2024-01-17Merge pull request #269639 from SomeoneSerge/update/cudaPackagesSomeone1-2/+58
cudaPackages: bump the default 11 -> 12
2024-01-17cudaPackages_11_4.nsight_systems: clean up the deprecation commentsSomeone Serge1-2/+1
2024-01-17cudaPackages_12.nsight_systems: unbreakSomeone Serge1-2/+46
2024-01-17cudaPackages.cuda_cudart: a separate output for stubSomeone Serge1-0/+13
2024-01-16cudaPackages: __structuredAttrs works with autoPatchelf since #272752Connor Baker1-5/+8
2024-01-12cudaPackages.backendStdenv: switch to stdenvAdapters.useLibsFromSomeone Serge1-2/+2
2024-01-12cudaPackages.cuda_nvcc: use gcc from pkgsHostTargetSomeone Serge1-3/+16
i.e. with the same offsets as nvcc itself
2024-01-10cudaPackages: set badPlatforms when cudaSupport is falseConnor Baker1-1/+1
2023-12-26Merge pull request #276800 from SomeoneSerge/fix/cuda-no-throwSomeone1-1/+1
cudaPackages: eliminate exceptions
2023-12-26cudaPackages: eliminate exceptionsSomeone Serge1-1/+1
as they break common nixpkgs tools like lib.meta, cf. https://github.com/NixOS/nixpkgs/issues/276795
2023-12-25cudaPackages.cudart: stubs: add the libcuda.so.1 sonameSomeone Serge1-9/+19
2023-12-25cudaPackages: allow FHS references by defaultSomeone Serge1-0/+1
...harden gradually instead
2023-12-24cudaPackages.cuda_cudart: patch cuda-XX.Y.pcSomeone Serge1-1/+15
2023-12-24cudaPackages: replace the fhs paths in pkg-config filesSomeone Serge1-1/+4
Cf. https://github.com/NixOS/nixpkgs/issues/224119
2023-12-22cudaPackages.cuda_nvcc: pin the backend ccSomeone Serge1-3/+23
This makes @ccRoot@ in setupCudaHook redundant when used with the redist cuda packages. We do not touch setupCudaHook yet, because we still have to address the deprecated cudaPackages.cudatoolkit
2023-12-22cudaPackages.cuda_nvcc: explain nvcc.profile syntaaxSomeone Serge1-0/+9
2023-12-22cudaPackages.cuda_nvcc: patch nvcc.profileSomeone Serge1-1/+24
let nvcc know about cudart and the stub drivers; this way we do not need to search for cudart in the setupCudaHook
2023-12-12Add ignore dependency for cuda_compatYann Hamdaoui1-1/+1
After testing on a Jetson device, it turns out `cuda_compat` requires libnvdla_runtime.so which can't be satisfied by autoPatchElf, as it is provided by the runtime driver. This commit simply adds this library to the list of dependency to be ignored by autoPatchElf.
2023-12-07cudaPackages: move derivations to cuda-modules & support aarch64Connor Baker1-0/+129
cudaPackages.cuda_compat: ignore missing libs provided at runtime cudaPackages.gpus: Jetson should never build by default cudaPackages.flags: don't build Jetson capabilities by default cudaPackages: re-introduce filter for pre-existing CUDA redist packages in overrides cudaPackages: only recurseIntoAttrs for the latest of each major version cudaPackages.nvccCompatabilities: use GCC 10 through CUDA 11.5 to avoid a GLIBC incompatability cudaPackages.cutensor: acquire libcublas through cudatoolkit prior to 11.4 cudaPackages.cuda_compat: mark as broken on aarch64-linux if not targeting Jetson cudaPackages.cutensor_1_4: fix build cudaPackages: adjust use of autoPatchelfIgnoreMissingDeps cudaPackages.cuda_nvprof: remove unecessary override to add addOpenGLRunpath cudaPackages: use getExe' to avoid patchelf warning about missing meta.mainProgram cudaPackages: fix evaluation with Nix 2.3 cudaPackages: fix platform detection for Jetson/non-Jetson aarch64-linux python3Packages.tensorrt: mark as broken if required packages are missing Note: evaluating the name of the derivation will fail if tensorrt is not present, which is why we wrap the value in `lib.optionalString`. cudaPackages.flags.getNixSystem: add guard based on jetsonTargets cudaPackages.cudnn: use explicit path to patchelf cudaPackages.tensorrt: use explicit path to patchelf