LLVM instead of NVIDIA GPU used for graphics

Hi there,

I am trying to use the NVIDIA graphic on my Ubuntu 22.04.5
I am using NVIDIA driver 550.120, but from the Ubuntu information seems that I am using llvmpipe (LLVM 15.0.07, 256 bits). For applications like PyTorch it works fine, however, the hardware acceleration for MATLAB does not work. I only have one GPU which is RTX 6000 Ada and the CPU is AMD Ryzen threadripper pro 5975wx 32.

lspci | grep -i nvidia shows NVIDIA is using.
glxinfo | grep ‘OpenGL renderer’ gives llvmpipe.

It seems that there is something wrong with the OpenGL renderer.
Any comments are appreciated.

Thanks in advance!