@OronG13
Is that possible for you install a newer version CUDA.
Check here if you want to install old version without compile, for pytorch 1.1, we have support for cuda 9.0 and above, so I guess, your problem is caused by nvcc in cuda8 under gcc5.4.
‘https://pytorch.org/get-started/previous-versions/’