NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driver

Tried install nvidia driver using nvidia-driver-assistant in RHEL 9. After rebooting, nvidia-smi generates the following error: NVIDIA-SMI has failed because it couldn’t communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running.

The following packages were installed:
$ rpm -qa | grep nvidia
nvidia-driver-assistant-0.21.57.08-1.noarch
libnvidia-ml-575.57.08-1.el9.x86_64
libnvidia-gpucomp-575.57.08-1.el9.x86_64
libnvidia-cfg-575.57.08-1.el9.x86_64
nvidia-driver-cuda-libs-575.57.08-1.el9.x86_64
nvidia-libXNVCtrl-575.57.08-1.el9.x86_64
nvidia-persistenced-575.57.08-1.el9.x86_64
nvidia-modprobe-575.57.08-1.el9.x86_64
nvidia-kmod-common-575.57.08-1.el9.noarch
kmod-nvidia-latest-dkms-575.57.08-1.el9.x86_64
nvidia-driver-libs-575.57.08-1.el9.x86_64
nvidia-driver-575.57.08-1.el9.x86_64
xorg-x11-nvidia-575.57.08-1.el9.x86_64
nvidia-xconfig-575.57.08-1.el9.x86_64
nvidia-settings-575.57.08-1.el9.x86_64
nvidia-driver-cuda-575.57.08-1.el9.x86_64
nvidia-libXNVCtrl-devel-575.57.08-1.el9.x86_64
libnvidia-fbc-575.57.08-1.el9.x86_64

I’m unable to figure out the issue. Any advice would be very much appreciated.
nvidia-bug-report.log (147.8 KB)

it’s resolved after installing the kernel-devel:
sudo dnf install kernel-devel-$(uname -r)