Throws if device is not a GPUDevice.
device
GPUDevice
Every routine's first guard, extracted since the check and message are identical across all of them.
the value to check
if device is not a GPUDevice
Throws if
deviceis not aGPUDevice.Every routine's first guard, extracted since the check and message are identical across all of them.