I want to compile pytorch v1.3.0 from source with specified CUDA version 9.0. However, even I set the CUDA_PATH and CUDA_HOME to /usr/local/cuda-9.0. It always tries to find cuda from the path /usr/local/cuda.

image1138×536 58.7 KB

I know the easiest way is to change the symbol link to /usr/local/cuda-9.0, but I don’t have the sudo privilege on my server. Is there any other way ?