commit f08f0ec971b730b3a08c24d6f4fafd059f7ac166 Author: Chris Wong Date: Tue Nov 8 11:14:23 2022 +0800 first commit diff --git a/wsl_cuda_fix.sh b/wsl_cuda_fix.sh new file mode 100644 index 0000000..d074ed4 --- /dev/null +++ b/wsl_cuda_fix.sh @@ -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" \ No newline at end of file