From cdf1b5791e0cc9f032eaab2056e3ae4fed518812 Mon Sep 17 00:00:00 2001 From: zowoq <59103226+zowoq@users.noreply.github.com> Date: Mon, 18 Nov 2024 13:12:48 +1000 Subject: [PATCH] docs: add cuda --- docs/cuda.md | 28 ++++++++++++++++++++++++++++ docs/package-sets.md | 2 ++ mkdocs.yml | 1 + 3 files changed, 31 insertions(+) create mode 100644 docs/cuda.md diff --git a/docs/cuda.md b/docs/cuda.md new file mode 100644 index 00000000..3e5f0d7b --- /dev/null +++ b/docs/cuda.md @@ -0,0 +1,28 @@ +https://discourse.nixos.org/t/cuda-cache-for-nix-community/56038 + +```nix +{ + nixpkgs.config.cudaSupport = true; + + nixpkgs.config.allowUnfreePredicate = + p: + builtins.all ( + license: + license.free + || builtins.elem license.shortName [ + "CUDA EULA" + "cuDNN EULA" + "cuTENSOR EULA" + "NVidia OptiX EULA" + ] + ) (if builtins.isList p.meta.license then p.meta.license else [ p.meta.license ]); +} +``` + +[#cuda:nixos.org matrix room](https://app.element.io/#/room/#cuda:nixos.org) + +[Nixpkgs CUDA team](https://nixos.org/community/teams/cuda/) + +[package-sets](./package-sets.md) + +[cache](./cache.md) diff --git a/docs/package-sets.md b/docs/package-sets.md index cae55cfe..53dbfec9 100644 --- a/docs/package-sets.md +++ b/docs/package-sets.md @@ -1,5 +1,7 @@ #### Nixpkgs CUDA and ROCm +See [here](./cuda.md) for more information. + [CUDA and ROCm release set in nixpkgs](https://github.com/NixOS/nixpkgs/blob/master/pkgs/top-level/release-cuda.nix) Built on `nixos-unstable-small` for `x86_64-linux`: diff --git a/mkdocs.yml b/mkdocs.yml index 6203d2cc..9d0e61ae 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -6,6 +6,7 @@ nav: - continuous-integration.md - Faster GitHub Actions: namespace-actions.md - package-sets.md + - CUDA: cuda.md - cache.md - community-builder.md - R. RyanTM nixpkgs-update bot: update-bot.md