confOS/windows/fix_nvidia_wsl.bat

27 lines
405 B
Batchfile
Raw Normal View History

2023-04-05 12:36:58 +02:00
@ECHO OFF
2023-03-17 13:33:33 +01:00
:: Start as administrator
2023-04-05 12:38:43 +02:00
fltmc >NUL 2>&1 || (
PowerShell Start -Verb RunAs '%0' 2>NUL || (
2023-03-17 13:33:33 +01:00
EXIT 1
)
EXIT 0
)
ECHO Fix /usr/lib/wsl/lib/libcuda.so.1
ECHO Enter the folder
CD \Windows\System32\lxss\lib
ECHO Remove existing symlinks
2023-03-17 14:57:57 +01:00
DEL libcuda.so
2023-03-17 13:33:33 +01:00
DEL libcuda.so.1
2023-03-17 14:57:57 +01:00
:: Create new symlinks
2023-03-17 13:33:33 +01:00
MKLINK libcuda.so libcuda.so.1.1
MKLINK libcuda.so.1 libcuda.so.1.1
2023-03-17 14:56:04 +01:00
PAUSE
2023-04-05 12:42:54 +02:00
EXIT /B