Query the ID of the GPU device on which the active host thread executes the device code.
rpuGetDevice()
Returns the ID of the GPU device on which the active host thread executes the device code.