conditional inheritance to fix compilation sans CUDA