I have 2 GPUs on my system, Device 0: GTX1050(4GB) and Device 1: RTX2070(8GB).
My CUDA/C++ code (where I make use of the thrust library) runs fine on Device 0 but fails to run on Device 1 with the following error:
terminate called after throwing an instance of 'thrust::system::system_error' what(): parallel_for failed: cudaErrorLaunchOutOfResources: too many resources requested for launch Aborted (core dumped)
I specify which device to use in the following manner:
How is it possible for the GPU with larger resources to run out of them?
Am I missing something?