Hi,
I have compiled pytorch on a machine that has an Nvidia GPU with cuda capability (cc) 7.5. I tried using the same compiled libraries on  machine that has an Nvidia GPU with cc of 6.1 and it worked, but I got the following error
CUDA error: no kernel image is available for execution on the device

when I tried to use the same on an Nvidia GPU with cc of 7.0
Based on https://docs.nvidia.com/cuda/cuda-c-programming-guide/index.html#compilation-workflow 5, the compiled code should be forward compatible only across minor versions if binary code is generated and forward compatible across minor and major versions if PTX code is generated. Consequently, I’m not sure how the above case would have occurred. Appreciate any explanation and insights into how pytorch interacts with CUDA.
Note -
Pytorch version compiled 1.4.0 (release/1.4 branch)