Use non-system cuda path

Hi
How can I specify non-system cuda path for pytorch installation?
I mean a path other than /usr/local/cuda.