Need driver and CUDA install instructions for Oracle Linux Server 7.7 (Red Hat Enterprise Linux Server release 7.7 (Maipo))

I followed the instructions in the link below (Bob Kozdemba post) to install nvidia drivers + cuda on an Oracle Linux Server 7.7:

https://access.redhat.com/discussions/3672301

Here are the steps from the post:

# yum -y update
# reboot 
# yum -y install kernel-devel-$(uname -r) kernel-headers-$(uname -r) pciutils
# yum -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
# yum -y install https://developer.download.nvidia.com/compute/cuda/repos/rhel7/x86_64/cuda-repo-rhel7-10.0.130-1.x86_64.rpm
# yum clean all
# yum -y install cuda

I did a reboot after following those steps, but get the infamous “NVIDIA-SMI has failed because it couldn’t communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running” error when I do nvidia-smi.

Does anyone know the steps I should be using for this server (it’s a VM)?

Here are the full server details:

Oracle Linux Server release 7.7
NAME="Oracle Linux Server"
VERSION="7.7"
ID="ol"
ID_LIKE="fedora"
VARIANT="Server"
VARIANT_ID="server"
VERSION_ID="7.7"
PRETTY_NAME="Oracle Linux Server 7.7"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:oracle:linux:7:7:server"
HOME_URL="https://linux.oracle.com/"
BUG_REPORT_URL="https://bugzilla.oracle.com/"

ORACLE_BUGZILLA_PRODUCT="Oracle Linux 7"
ORACLE_BUGZILLA_PRODUCT_VERSION=7.7
ORACLE_SUPPORT_PRODUCT="Oracle Linux"
ORACLE_SUPPORT_PRODUCT_VERSION=7.7
Red Hat Enterprise Linux Server release 7.7 (Maipo)
Oracle Linux Server release 7.7
lspci | grep -i nvidia

Shows this:

00:04.0 3D controller: NVIDIA Corporation GP100GL [Tesla P100 SXM2 16GB] (rev a1)
lshw -numeric -C display

Shows this:

*-display:0
       description: VGA compatible controller
       product: [1234:1111]
       vendor: [1234]
       physical id: 2
       bus info: pci@0000:00:02.0
       version: 02
       width: 32 bits
       clock: 33MHz
       capabilities: vga_controller bus_master rom
       configuration: driver=bochs-drm latency=0
       resources: irq:0 memory:c0000000-c0ffffff memory:c2001000-c2001fff memory:c0000-dffff
  *-display:1 UNCLAIMED
       description: 3D controller
       product: GP100GL [Tesla P100 SXM2 16GB] [10DE:15F9]
       vendor: NVIDIA Corporation [10DE]
       physical id: 4
       bus info: pci@0000:00:04.0
       version: a1
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress bus_master cap_list
       configuration: latency=0
       resources: iomemory:200-1ff iomemory:240-23f memory:c1000000-c1ffffff memory:2000000000-23ffffffff memory:2400000000-2401ffffff