I have installed CUDA-10.0 in the remote server and exported the CUDA and Lib 64 paths as the root user. And then I can able to make all the samples without any error and then logged out.
After then I logged into my normal user account using ssh. I could compile a certain code with -lcublas flag but when I ran the executable file I got the error
error while loading shared libraries: libcublas.so.10.0: cannot open shared object file: No such file or directory
Then I export only the Lib64 path from my normal user account as given Linux post installation discussion
export LD_LIBRARY_PATH=/usr/local/cuda-10.0/lib64\
${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
Then I can run the executable file successfully and getting correct output.
My question is
" What to do so that all the users can compile and run without every time exporting the paths from the normal user accounts?"