Use magnun's version of get_compute_capability.