-
Notifications
You must be signed in to change notification settings - Fork 10
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
Migrate CUDA imports to new variants in nixpkgs #61
Comments
I'm not familiar with WSL, but from a brief search they seem to be deploying their
Note that if there are libraries in |
We've encountered this before in #21. ATM we're advising against using I'd like to avoid it, but it might be necessary to check for the existence of WSL in our flake setup and explicitly set Another way I could think of is symlinking only the impure libraries we actually need to another directory which we can when add to search paths via the None of these options seem optimal to me though. |
Yes, you'd only need to symlink the libraries that version lock the driver: libcuda.so, libnvidia-ml.so... Adding that location into LD_LIBRARY_PATH should work, in principle. I haven'theard of LL_CUDA... before, is it WSL specific? |
Ahh sorry for the confusion no that's just our rules_ll-specific way of getting nix deps into bazel builds. We use something like this in our flake: Lines 110 to 115 in 1354042
Which is then fed to the compilation sandboxes in Bazel: Lines 121 to 142 in 1354042
Then it's consumed by some compilation paths: Lines 229 to 239 in 1354042
And some link actions: Lines 492 to 509 in 1354042
Bazel doesn't track dependencies outside of its build graph. We had explicit bazel-only imports before which mapped out all the files, but that felt too hacky and fragile to maintain. So at some point we decided to kick out that logic and just import it from the way easier manageable nix env 😄 We are actually doing the opposite for ROCm. There we have access to the source code and we have ported the ROCm/HIP build because that lets us build everything with our own C++-only toolchains for later consumption by |
NixOS/nixpkgs#224646 (comment) mentioned that the way we currently import CUDA from nix is outdated. We should change imports from the outdated
to
@JannisFengler @SpamDoodler This might make WSL compatibility work.
The text was updated successfully, but these errors were encountered: