The previous MemoryResource for the current device
The supplied memoryResource must have been created for the current CUDA device. The
behavior of a MemoryResource is undefined if used while the active CUDA device is a
different device from the one that was active when the MemoryResource was created.
If not
null, the new resource to use for the current device.