Does anyone know how to switch between GPUs in Nsight in Visual Studio while debugging, I am programming 2 quadro cards. Code is in cuda C.
You can enumrate your cards in your CUDA program, and explicitly choose one of them. Or you can set an enviroment variable before launching your Nsight Monitor, "CUDA_VISIBLE_DEVICES=0" choose the card with ordinal 0.
You can refer to the deviceQueryDrv sample in CUDA SDK, for listing ordinals of you GPUs. You can also refer for how to enumrate your GPUs.