BTW you don’t have to install it from source.
You may simply do
pip install --user http://download.pytorch.org/whl/cu80/torch-0.3.0-cp27-cp27mu-linux_x86_64.whl
and save yourself some time!
Torch-0.3.0 still supports my old  GPU