Skip to content
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

Fix useWindowsDriver when other opengl driver are used like intel-compute-runtime #382

Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions modules/wsl-distro.nix
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,11 @@ in

extraPackages = mkIf cfg.useWindowsDriver [
(pkgs.runCommand "wsl-lib" { } ''
mkdir "$out"
ln -s /usr/lib/wsl/lib "$out/lib"
mkdir -p "$out/lib"
# we cannot just symlink the lib directory because it breaks merging with other drivers that provide the same directory
for so in libcuda.so libd3d12.so libd3d12core.so libdxcore.so; do
Copy link
Member Author

@SuperSandro2000 SuperSandro2000 Jan 4, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need other cuda so's? What are the amd names?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

AMD does not support CUDA

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I meant other shared objects in general, like the amd one. What's the name for it? Is there even one?

ln -s "/usr/lib/wsl/lib/$so" "$out/lib/$so"
done
'')
];
};
Expand Down
Loading