In gpu/plmem.cu:426, we expect device 0 to be where the app is running:
cudaGetDeviceProperties(&device_prop, 0);
Instead of assuming, let's add a cudaSetDevice(0) at the beginning of the app so that we explicitly initialize the runtime with this information.
In gpu/plmem.cu:426, we expect device 0 to be where the app is running:
Instead of assuming, let's add a cudaSetDevice(0) at the beginning of the app so that we explicitly initialize the runtime with this information.