I download headless version of paraview, and build it into docker.
My host machine installed nvidia driver properly, and configured navidia-docker2 successfully.
And I Use nvidia/cuda:11.7.1-cudnn8-devel-ubuntu22.04 as my docker base image, and with opengl installed in docker.
But when I start pvpython or pvserver in docker , and try to connect it with outside paraviewclient or chrome, and check nvdia-smi, It’s shows that no GPU is in use.
I also download another python module like numba in docker , and write some python code to test it , and in this condition, nvidia-smi shows GPU usage. So it seems like my docker image is ok to support GPU. But why pvserver can’t use it?
I also tried pvserver in my host ubuntu machine, and nvidia-smi shows success GPU usage.
So is there any way to check why pvserver not use GPU in docker?
After build and test this docker image on ubuntu successfully. I copied the image to another centos7 server, but on centos7 server, container from this docker image faild to use GPU.
pvpython strart with error error: gl_primitiveiD undeclared
But nvidia-smi in this container runs successfully.
And this time openGLInfo.GetVendor() returns Mesa/X.org
Yes, but not sure if it’s nvidia-runtime is ok. I tested in the container with nvidia-smi command , and it’s shows success info as in the host. I guess this may means gpu is successfully mounted to container.