-
Notifications
You must be signed in to change notification settings - Fork 306
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
WSL NixOS cdi generate
Error: failed to initialize dxcore context
#452
Comments
@Samiser could you run:
I assume that the utility does not find Note that we do use I would have to look at how to make this more robust. |
sure, here is the debug output both with
also, setting LD_PRELOAD doesn't seem to help:
also using the flag
|
As mentioned in NixOS/nixpkgs#312253 and nix-community/NixOS-WSL#433, you should either use the |
This improves the user experience as whenever the user enables the `config.hardware.nvidia-container-toolkit.enable` option, they cannot use their Nvidia GPU's within the Docker containers because of missing libraries. This gets fixed by setting `wsl.useWindowsDriver` explicitly when the user requests to enable GPU support on Docker containers. Issue and fix provided by @qwqawawow Related: nix-community#433 Related: NVIDIA/nvidia-container-toolkit#452
This improves the user experience as whenever the user enables the `config.hardware.nvidia-container-toolkit.enable` option, they cannot use their Nvidia GPU's within the Docker containers because of missing libraries. This gets fixed by setting `wsl.useWindowsDriver` explicitly when the user requests to enable GPU support on Docker containers. Issue and fix provided by @qwqawawow Related: nix-community#433 Related: NVIDIA/nvidia-container-toolkit#452
This improves the user experience as whenever the user enables the `config.hardware.nvidia-container-toolkit.enable` option, they cannot use their Nvidia GPU's within the Docker containers because of missing libraries. This gets fixed by setting `wsl.useWindowsDriver` explicitly when the user requests to enable GPU support on Docker containers. Issue and fix provided by @qwqawawow Related: nix-community#433 Related: NVIDIA/nvidia-container-toolkit#452
This improves the user experience as whenever the user enables the `config.hardware.nvidia-container-toolkit.enable` option, they cannot use their Nvidia GPU's within the Docker containers because of missing libraries. This gets fixed by setting `wsl.useWindowsDriver` explicitly when the user requests to enable GPU support on Docker containers. Issue and fix provided by @qwqawawow Related: nix-community#433 Related: NVIDIA/nvidia-container-toolkit#452
This improves the user experience as whenever the user enables the `config.hardware.nvidia-container-toolkit.enable` option, they cannot use their Nvidia GPU's within the Docker containers because of missing libraries. This gets fixed by setting `wsl.useWindowsDriver` explicitly when the user requests to enable GPU support on Docker containers. Issue and fix provided by @qwqawawow Related: nix-community#433 Related: NVIDIA/nvidia-container-toolkit#452
|
i'm attempting to use
nvidia-ctk
to generate a CDI spec in WSL running NixOS, but am getting the following error:if i generate the CDI spec on a different VM and use that config directly (only changing the location of
nvidia-ctk
) thennvidia-ctk
successfully finds the device and i can use it in containers:nvidia-container-toolkit.json (click to expand)
i've also tried populating every other flag with the locations of the files in /usr/lib/wsl/ but that didn't make a difference, i assume that's handled by
--mode wsl
here's the relevant nix config if it helps (ommitting nixos-wsl import section):
and here's the gpu working with the manual config:
let me know if there's any more information i can provide!
The text was updated successfully, but these errors were encountered: