CUDA installed, but not working

I would like to install software that depends on CUDA, which is supposed to be installed on the server.
However, I cannot find any info that CUDA is working. How can I make CUDA work? Please see below.
This is the info of the system:

$ cat /etc/rocky-release
Rocky Linux release 9.2 (Blue Onyx)

$ uname -r

$ lspci -k | grep -EA3 'VGA|3D|Display’lspci | grep VGA
04:00.0 VGA compatible controller: ASPEED Technology, Inc. ASPEED Graphics Family (rev 52)

$ mokutil --sb
SecureBoot disabled

$ nvcc --version
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2023 NVIDIA Corporation
Built on Mon_Apr__3_17:16:06_PDT_2023
Cuda compilation tools, release 12.1, V12.1.105
Build cuda_12.1.r12.1/compiler.32688072_0

$ nvidia-smi
NVIDIA-SMI has failed because it couldn’t communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running.

$ lspci | grep -i NVIDIA
(No ouptut)

$ dmesg | grep nvidia
(No ouptut)

$ sudo lshw
(gives no info about “nvidia”)

$ glxinfo | grep NVIDIA
Error: unable to open display

$ dkms status
Deprecated feature: REMAKE_INITRD (/var/lib/dkms/nvidia/535.54.03/source/dkms.conf)
Deprecated feature: REMAKE_INITRD (/var/lib/dkms/nvidia/535.54.03/source/dkms.conf)
Deprecated feature: REMAKE_INITRD (/var/lib/dkms/nvidia/535.54.03/source/dkms.conf)
nvidia/535.54.03, 5.14.0-162.23.1.el9_1.x86_64, x86_64: installed
nvidia/535.54.03, 5.14.0-284.11.1.el9_2.x86_64, x86_64: installed
nvidia/535.54.03, 5.14.0-284.18.1.el9_2.x86_64, x86_64: installed
zfs/2.1.12, 5.14.0-162.23.1.el9_1.x86_64, x86_64: installed
zfs/2.1.12, 5.14.0-284.11.1.el9_2.x86_64, x86_64: installed (WARNING! Diff between built and installed module!)
zfs/2.1.12, 5.14.0-284.18.1.el9_2.x86_64, x86_64: installed

Please find “nvidia-bug-report.log” attached.

Thanks a lot!
nvidia-bug-report.log.gz (106.2 KB)