fix nvidia wsl
This commit is contained in:
parent
92d97d570b
commit
c46742d8a8
1 changed files with 23 additions and 0 deletions
23
windows/fix_nvidia_wsl.bat
Normal file
23
windows/fix_nvidia_wsl.bat
Normal file
|
@ -0,0 +1,23 @@
|
||||||
|
@ECHO off
|
||||||
|
|
||||||
|
:: Start as administrator
|
||||||
|
fltmc >nul 2>&1 || (
|
||||||
|
PowerShell Start -Verb RunAs '%0' 2> nul || (
|
||||||
|
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
|
||||||
|
DEL libcuda.sod
|
||||||
|
DEL libcuda.so.1
|
||||||
|
|
||||||
|
ECHO Create new symlinks
|
||||||
|
MKLINK libcuda.so libcuda.so.1.1
|
||||||
|
MKLINK libcuda.so.1 libcuda.so.1.1
|
Loading…
Reference in a new issue