first commit

This commit is contained in:
Chris Wong 2022-11-08 11:14:23 +08:00
commit f08f0ec971

22
wsl_cuda_fix.sh Normal file
View 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"