I'm trying to run a OpenCV application inside an Apptainer container, in a remote machine, passing the --nv
flag for granting GPU support. But then I get this error:
import cv2
ImportError: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.34` not found (required by /.singularity.d/libs/libGLdispatch.so.0)
If I run the same container without the --nv
flag, cv2 imports correctly, but then of course I loose the GPU access. The same container runs correctly on my local machine (with NVIDIA GPU) with --nv
flag.
So, I suspect --nv
flag specifically in my remote machine. It is probably binding incompatible libraries form the host to the container.
I was hoping someone with Apptainer (singularity) experience could help me figure out how to fix this for my remote machine, or at least point me in the right direction. Thanks!