Choose which GPU device to use
chooseGpu.RdSelects the GPU device to use for computation. This is only useful on a machine equipped with multiple GPU devices. The numbering starts at 0 and is assigned by the CUDA capable driver.
Choosing a device can only be done before any other GPU operation and only once per thread.