CUDA: Difference between revisions

m The link to the location has moved.
CUDA Binary Cache moved to nix-community
Line 83: Line 83:
== 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.
The [https://nix-community.org/cache/ Nix-community 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 90: Line 90:


=== NixOS ===
=== NixOS ===
Add the cache to <code>substituters</code> and <code>trusted-public-keys</code> inside your system configuration:
Add the cache to <code>substituters</code> and <code>trusted-public-keys</code> inside your system configuration:


Line 96: Line 95:
nix.settings = {
nix.settings = {
   substituters = [
   substituters = [
     "https://cuda-maintainers.cachix.org"
     "https://nix-community.cachix.org"
   ];
   ];
   trusted-public-keys = [
   trusted-public-keys = [
     "cuda-maintainers.cachix.org-1:0dq3bujKpuEPMCX6U4WylrUDZ9JyUG0VpVZa7CNfq5E="
     "nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
   ];
   ];
};
};
Line 109: Line 108:


<syntaxHighlight lang="console">
<syntaxHighlight lang="console">
$ cachix use cuda-maintainers
$ cachix use nix-community
</syntaxHighlight>
</syntaxHighlight>


Line 115: Line 114:


{{file|/etc/nix/nix.conf|nix|<nowiki>
{{file|/etc/nix/nix.conf|nix|<nowiki>
trusted-public-keys = cuda-maintainers.cachix.org-1:0dq3bujKpuEPMCX6U4WylrUDZ9JyUG0VpVZa7CNfq5E=
trusted-public-keys = nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=
trusted-substituters = https://cuda-maintainers.cachix.org
trusted-substituters = https://nix-community.cachix.org
trusted-users = root @wheel
trusted-users = root @wheel
</nowiki>}}
</nowiki>}}
Line 123: Line 122:


{{file|~/.config/nix/nix.conf|nix|<nowiki>
{{file|~/.config/nix/nix.conf|nix|<nowiki>
substituters = https://cuda-maintainers.cachix.org
substituters = https://nix-community.cachix.org
</nowiki>}}
</nowiki>}}