Step 1
yum install kernel-devel-$(uname -r) kernel-headers-$(uname -r)
Step 2
wget https://developer.download.nvidia.com/compute/cuda/repos/rhel7/x86_64/cuda-repo-rhel7-10.0.130-1.x86_64.rpm
rpm -i cuda-repo-rhel7-10.0.130-1.x86_64.rpm
yum clean all
yum install cuda-10-0
docs.nvidia.com/cuda/cuda-installation-guide-linux/index.html