I am currently working with CUDA code compiled for compute capability 5.2. My machine happens to have a compute capability 5.2 GPU (GeForce GTX 970). However, my question is: will the code compiled for compute capability 5.2 still run on a machine with a compute capability as low as 3? (Assuming that the code never violates the limitations of the lower compute capability like shared memory differences, etc.)
Asked
Active
Viewed 1,072 times
1
-
If you are writing code that does not violate lower computes, why not simply target lower CUDA computes during compilation ? – Pavan Yalamanchili Aug 24 '16 at 07:44
1 Answers
2
The one word answer is no.
As a general rule, you can run code compiled for lower compute capabilities on higher compute capability hardware, but not the other way around. If you compile for compute 5.2, it should run on future hardware, but not on older hardware.

talonmies
- 70,661
- 34
- 192
- 269