first commit
This commit is contained in:
commit
f08f0ec971
22
wsl_cuda_fix.sh
Normal file
22
wsl_cuda_fix.sh
Normal file
@ -0,0 +1,22 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Check libraries
|
||||
ldconfig
|
||||
|
||||
# Backup files in WSL lib
|
||||
cd /usr/lib/wsl/lib/
|
||||
cp libcuda.so libcuda.so.backup
|
||||
cp libcuda.so.1 libcuda.so.1.backup
|
||||
|
||||
# Delete wrong files
|
||||
rm -r libcuda.so
|
||||
rm -r libcuda.so.1
|
||||
|
||||
# Create symbolic links
|
||||
ln -s libcuda.so.1.1 libcuda.so
|
||||
ln -s libcuda.so.1.1 libcuda.so.1
|
||||
|
||||
# Check libraries again
|
||||
ldconfig
|
||||
|
||||
echo "Fixed"
|
Loading…
Reference in New Issue
Block a user