Hi,
I installed cuda 10.1 in my $HOME just for testing while the system still uses cuda 10.0. I installed cuda 10.1 with the .run file as a local user (without sudo) and skipped the driver (which is already installed)
This seems to be similar to your use case (I don’t share it, just for my own testing, so you may need extra configurations and probably fooling with selinux)
Here is what worked for me.
From the folder where the .run file is
./cuda_10.1.105_418.39_linux.run --silent --toolkit --toolkitpath=$HOME/opt/cuda_test/cuda --defaultroot=$HOME/opt/cuda_test/cuda
I am on Ubuntu 16.04, should be similar for RHEL
The samples are inside the cuda folder, you can just copy it afterwards or set samplespath
Here is my thread
https://devtalk.nvidia.com/default/topic/1047863/cuda-setup-and-installation/cuda-10-1-install-path/
(in it I said simpleCudaGraphs didn’t compile, turned out to be my mistake. So in case you have another cuda installed system wide and run into similar problems.
https://devtalk.nvidia.com/default/topic/1048270/cuda-setup-and-installation/cuda-10-1-simplecudagraphs-doesn-t-compile/ )
The unable to write to /var/log errors are harmless and got suppressed with --silent. I have tested that my test cuda-10.1 does work as all the samples compiled and run. Many third party apps such as tensorflow break, but that is because Nvidia moved some of the files around (see AndyDick’s post in my first link) and changed the sonames of the libs, these are not cuda installation’s problems.