While running my program on cuda-gdb I’m getting the following error
warning: One or more CUDA devices are made unavailable to the application
because they are used for X11 and cannot be used while debugging. This may change the application behavior!
Despite me setting my Tesla as the device my program should run on within the code
cudaSetDeviceFlags( cudaDeviceMapHost| cudaDeviceBlockingSync |cudaDeviceScheduleSpin); cudaSetDevice(2);
This is run before any cuda instruction is called and returns no errors. Is there any extra instruction, compilation flag or something I must include for my program to only run in a given device?