Confusion about two copies of libcuda.so in wsl2/win11

Hi,

I have got a new Windows 11 system and installed wsl2 ubuntu 22.04. The NVIDIA driver is 557.61. I noticed there are 2 versions of libcuda.so in wsl2 distribution:

  1. l /usr/local/cuda/lib64/stubs/
    -rwxr-xr-x 1 root root 65K Mar 13 09:31 libcuda.so

  2. l /usr/lib/wsl/lib
    -r-xr-xr-x 1 root root 159K Mar 1 18:04 libcuda.so
    -r-xr-xr-x 1 root root 159K Mar 1 18:04 libcuda.so.1
    -r-xr-xr-x 1 root root 159K Mar 1 18:04 libcuda.so.1.1

Which version cuda runtime will use when I run cuda enabled programs?

Thanks