Enable cuda system feature in raccoon and fox via nix-required-mounts #146
2 Participants
Notifications
Due Date
No due date set.
Depends on
#148 Fixes for raccoon after the upgrade to NixOS 25.05
rarias/jungle
Reference: rarias/jungle#146
Reference in New Issue
Block a user
Delete Branch "abonerib/jungle:cuda-systemFeature"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
### EDITAfter testing in fox, we found thatnix-required-mountsdoes not work properly. It does not find libcuda (/var/lib/opengl-driver does not seem to be included in the sandbox bypass?). As such, I leave that part of the MR for a later date.Hopefully it is fixed by #147 (comment)
closes #147
This should allow running derivations that need a CUDA to run in the sandbox.
This should list
/dev/driand/dev/nvidia*I have tested
nix build jungle#python3Packages.triton.gpuCheckin the current configuration infoxand it fails:Enable cuda system feature in raccoon and fox via nix-required-mountsto WIP: Enable cuda system feature in raccoon and fox via nix-required-mounts1a72f65584to42d69bf0ecWIP: Enable cuda system feature in raccoon and fox via nix-required-mountsto Move shared nvidia settings to a separate moduleMove shared nvidia settings to a separate moduleto Enable cuda system feature in raccoon and fox via nix-required-mounts0f70c245c1to378716c0faf4563008b1to8b1df39edf@@ -0,0 +24,4 @@requiredSystemFeatures = [ "cuda" ];dontBuild = true;nativeCheckInputs = [cudainfoWe could try to use the
finalAttrspattern andfinalAttrs.finalPackageinstead ofcudainfoso we can do(cudainfo.overrideAtrrs (prev: {})).gpuCheckwithout running into weirdness.8b1df39edfto8d6735f7998d6735f799to9b681ab7ce