Records device as the device on which the active host thread executes the device code. If the host thread has already initialized the CUDA runtime by calling non-device management runtime functions, this call returns cudaErrorSetOnActiveProcess.
Parameters:
device
- Device on which the active host thread should execute the device code.