NVIDIA driver and cuda on centos 8

First I installed driver for NVIDIA GTX 1050 Ti from nvidia site, version 450.66, then I wanted to run xmr-stak program using card. So I installed NVIDIA CUDA in the way described here: https://developer.nvidia.com/cuda-downloads?target_os=Linux&target_arch=x86_64&target_distro=CentOS&target_version=8&target_type=rpmlocal. After this operation I noticed that was installed driver in version 450.51. Then during cmake for xmr-stak I get:

nvcc fatal : Unsupported gpu architecture ‘compute_30’

Also after installing cuda, games in Steam platform stop working.

I’ll be very grateful for help.