querying number of devices does not crash if driver doesn't work but returns a -1 instead
if cudaDevId is smaller 0, CPU gold version is called for computation