CUDA: Difference between revisions

Razushi (talk | contribs)
cudatoolkit, cudnn, and related packages: Went through history to check what happened. Commit: https://github.com/NixOS/nixpkgs/commit/875e43dfd70a3e58573d94d44e4c931d464ae76a
Razushi (talk | contribs)
cudatoolkit, cudnn, and related packages: Updated broken links to cuDNN and cuTENSOR, please verify. Update date refers to the last verification, not example updates.
Line 10: Line 10:


Several "CUDA-X" libraries are packages as well. In particular,
Several "CUDA-X" libraries are packages as well. In particular,
* cuDNN is packaged [https://github.com/NixOS/nixpkgs/blob/master/pkgs/development/libraries/science/math/cudnn/generic.nix here].
* cuDNN is packaged [https://github.com/NixOS/nixpkgs/tree/master/pkgs/development/cuda-modules/cudnn here].
* cuTENSOR is packaged [https://github.com/NixOS/nixpkgs/blob/master/pkgs/development/libraries/science/math/cutensor/generic.nix here].
* cuTENSOR is packaged [https://github.com/NixOS/nixpkgs/tree/master/pkgs/development/cuda-modules/cutensor here].


{{warning|1=Note that these examples haven't been updated in a while (as of 2022-03-12). May not be the best solution. A better resource is likely the packaging CUDA sample code [https://github.com/NixOS/nixpkgs/blob/master/pkgs/development/cuda-modules/cuda-library-samples/generic.nix here].}}
{{warning|1=Note that these examples have been updated more recently (as of 2024-07-30). May not be the best solution. A better resource is likely the packaging CUDA sample code [https://github.com/NixOS/nixpkgs/blob/master/pkgs/development/cuda-modules/cuda-library-samples/generic.nix here].}}


There are some possible ways to setup a development environment using CUDA on NixOS. This can be accomplished in the following ways:
There are some possible ways to setup a development environment using CUDA on NixOS. This can be accomplished in the following ways: