CUDA: Difference between revisions

Eljamm (talk | contribs)
Add section for using the cuda-maintainers Binary Cache
Eljamm (talk | contribs)
(One intermediate revision by the same user not shown)
Line 82: Line 82:


== Setting up CUDA Binary Cache ==
== Setting up CUDA Binary Cache ==
The [https://app.cachix.org/cache/cuda-maintainers cuda-maintainers] cache contains pre-built CUDA packages. By adding it to your system, Nix will fetch these packages instead of building them, saving valuable time and processing power.


For more information, refer to the [[Binary Cache#Using a binary cache Using a binary cache|Using a binary cache]] page.
For more information, refer to the [[Binary Cache#Using a binary cache Using a binary cache|Using a binary cache]] page.
Line 89: Line 91:
=== NixOS ===
=== NixOS ===


Add the [https://app.cachix.org/cache/cuda-maintainers cuda-maintainers] cache to <code>substituters</code> and <code>trusted-public-keys</code> inside your configuration:
Add the cache to <code>substituters</code> and <code>trusted-public-keys</code> inside your system configuration:


{{file|/etc/nixos/configuration.nix|nix|<nowiki>
{{file|/etc/nixos/configuration.nix|nix|<nowiki>
Line 118: Line 120:
</nowiki>}}
</nowiki>}}


If your user is in <code>trusted-users</code>, you can add the cache in your home:
If your user is in <code>trusted-users</code>, you can also add the cache in your home directory:


{{file|~/.config/nix/nix.conf|nix|<nowiki>
{{file|~/.config/nix/nix.conf|nix|<nowiki>