-
-
Notifications
You must be signed in to change notification settings - Fork 14k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GPU access in the sandbox #256230
GPU access in the sandbox #256230
Commits on Jun 26, 2024
-
Configuration menu - View commit details
-
Copy full SHA for b422daf - Browse repository at this point
Copy the full SHA b422dafView commit details -
Configuration menu - View commit details
-
Copy full SHA for 340b418 - Browse repository at this point
Copy the full SHA 340b418View commit details -
Configuration menu - View commit details
-
Copy full SHA for b929969 - Browse repository at this point
Copy the full SHA b929969View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7ed2cba - Browse repository at this point
Copy the full SHA 7ed2cbaView commit details -
Configuration menu - View commit details
-
Copy full SHA for f22b9da - Browse repository at this point
Copy the full SHA f22b9daView commit details -
nix-required-mounts: use wrappers instead of statically embedding con…
…fig into the script
Configuration menu - View commit details
-
Copy full SHA for 6859a2d - Browse repository at this point
Copy the full SHA 6859a2dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 6662b09 - Browse repository at this point
Copy the full SHA 6662b09View commit details -
Configuration menu - View commit details
-
Copy full SHA for 50d4382 - Browse repository at this point
Copy the full SHA 50d4382View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3d84ab0 - Browse repository at this point
Copy the full SHA 3d84ab0View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3a0d777 - Browse repository at this point
Copy the full SHA 3a0d777View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6a0f2ae - Browse repository at this point
Copy the full SHA 6a0f2aeView commit details -
programs.nix-required-mounts: presets.cuda -> nvidia-gpu
This hopefully clarifies that the preset configures the hook to expose "nvidia devices", which includse both the userspace driver and the device nodes. The derivations still declare requiredSystemFeatures = [ "cuda" ] to explicitly indicate they need to use the CUDA functionality and expect a libcuda.so and a CUDA-capable device. Ideally, we'd also include the specific CUDA architectures (sm_86, etc) in feature names. Derivations that use a co-processor but do not care about the vendor or even the particular interface may ask for the more generic "opengl", "vulkan", or "gpu" features. It is then responsibility of the host declaring the support for this feature to ensure the drivers and hardware are appropriately set up.
Configuration menu - View commit details
-
Copy full SHA for 7418e4f - Browse repository at this point
Copy the full SHA 7418e4fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 5560f6a - Browse repository at this point
Copy the full SHA 5560f6aView commit details -
nix-required-mounts: restore the followSymlinks option
This way pkgs.nix-required-mounts is "correct" even before we override it in the NixOS module
Configuration menu - View commit details
-
Copy full SHA for 3cf5bcf - Browse repository at this point
Copy the full SHA 3cf5bcfView commit details -
Configuration menu - View commit details
-
Copy full SHA for 55f54cc - Browse repository at this point
Copy the full SHA 55f54ccView commit details -
Configuration menu - View commit details
-
Copy full SHA for 075dd8b - Browse repository at this point
Copy the full SHA 075dd8bView commit details -
Configuration menu - View commit details
-
Copy full SHA for dd70727 - Browse repository at this point
Copy the full SHA dd70727View commit details -
Configuration menu - View commit details
-
Copy full SHA for 61001a3 - Browse repository at this point
Copy the full SHA 61001a3View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6a6b6ac - Browse repository at this point
Copy the full SHA 6a6b6acView commit details -
Configuration menu - View commit details
-
Copy full SHA for 927b15e - Browse repository at this point
Copy the full SHA 927b15eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 9aa0403 - Browse repository at this point
Copy the full SHA 9aa0403View commit details -
cudaPackages: move cuda tests from passthru.tests
Otherwise we crash Ofborg
Configuration menu - View commit details
-
Copy full SHA for efd64b5 - Browse repository at this point
Copy the full SHA efd64b5View commit details -
Configuration menu - View commit details
-
Copy full SHA for 39f3345 - Browse repository at this point
Copy the full SHA 39f3345View commit details -
blender.gpuChecks: add unwrapped
An unwrapped check for `nix run`-ing on the host platform, instead of `nix build`-ing in the sandbox E.g.: ``` ❯ nix run -f ./. --arg config '{ cudaSupport = true; cudaCapabilities = [ "8.6" ]; cudaEnableForwardCompat = false; allowUnfree = true; }' -L blender.gpuChecks.cudaAvailable.unwrapped Blender 4.0.1 Read prefs: "/home/user/.config/blender/4.0/config/userpref.blend" CUDA is available Blender quit ❯ nix build -f ./. --arg config '{ cudaSupport = true; cudaCapabilities = [ "8.6" ]; cudaEnableForwardCompat = false; allowUnfree = true; }' -L blender.gpuChecks blender> Blender 4.0.1 blender> could not get a list of mounted file-systems blender> CUDA is available blender> Blender quit ```
Configuration menu - View commit details
-
Copy full SHA for da430f4 - Browse repository at this point
Copy the full SHA da430f4View commit details -
Configuration menu - View commit details
-
Copy full SHA for ff430d1 - Browse repository at this point
Copy the full SHA ff430d1View commit details -
Configuration menu - View commit details
-
Copy full SHA for ebeb6b9 - Browse repository at this point
Copy the full SHA ebeb6b9View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7d667a0 - Browse repository at this point
Copy the full SHA 7d667a0View commit details -
cudaPackages: updated convention for gpu/runtime checks
Runtime tests (derivations asking for a relaxed sandbox) are now expected at p.gpuCheck, p.gpuChecks.<name>, or at p.tests.<name>.gpuCheck.
Configuration menu - View commit details
-
Copy full SHA for 79a7186 - Browse repository at this point
Copy the full SHA 79a7186View commit details