Sets the current device.
Device number
Returns cudaSuccess if the device was set successfully, or an error code if there was an issue.
cudaSuccess