I apologize for the delay in responding. I think I was able to replicate this and figure out what was wrong. I created a new version of your container that had strace installed and used it to track which libraries are opened. Looks like the container wants
libnvidia-nvvm.so and can't find it. That is not one of the libraries that is bind mounted into the container by default with the
--nv option. If you are able to edit the configuration file on your system called
nvliblist.conf you can just add
libnvidia-nvvm.so to the file and it should work.
If you can't edit that file (because you are not the administrator on the system for instance) things become a little more complicated. You can create an environment variable that will do the same thing as the --nv option and add the nvvm library in yourself. But that is going to be dependent on the system where you are running. In my case, this is the correct command to bind-mount the library and it's symlink reference into the container.
export APPTAINER_BINDPATH=/lib64/libnvidia-nvvm.so.525.85.05:/.singularity.d/libs/libnvidia-nvvm.so.525.85.05,/lib64/libnvidia-nvvm.so.525.85.05:/.singularity.d/libs/libnvidia-nvvm.so.4
I was able to get this information by running the following command to search for the library on my host system.
$ ldconfig --print-cache | grep nvvm
libnvidia-nvvm.so.4 (libc6,x86-64) => /lib64/libnvidia-nvvm.so.4
libnvidia-nvvm.so.4 (libc6) => /lib/libnvidia-nvvm.so.4
libnvidia-nvvm.so (libc6,x86-64) => /lib64/libnvidia-nvvm.so
libnvidia-nvvm.so (libc6) => /lib/libnvidia-nvvm.so
If you look at the 64 bit version of the library in lib64 you can see that it's a symlink to the actual library that is tagged with the driver version.
$ ll /lib64/libnvidia-nvvm.so.4
lrwxrwxrwx. 1 root root 27 Jul 14 09:33 /lib64/libnvidia-nvvm.so.4 -> libnvidia-nvvm.so.525.85.05
You will need to use a similar method to figure out where the libraries are on your host and what is the driver version. Then you can use a command like the one I've listed above to set the bind path.
Let me know if that works and if you need any more help.