CUDA: Difference between revisions
Jackyliu16 (talk | contribs) 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:// | 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:// | "https://nix-community.cachix.org" | ||
]; | ]; | ||
trusted-public-keys = [ | trusted-public-keys = [ | ||
" | "nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=" | ||
]; | ]; | ||
}; | }; | ||
Line 109: | Line 108: | ||
<syntaxHighlight lang="console"> | <syntaxHighlight lang="console"> | ||
$ cachix use | $ 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 = | trusted-public-keys = nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs= | ||
trusted-substituters = https:// | 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:// | substituters = https://nix-community.cachix.org | ||
</nowiki>}} | </nowiki>}} | ||