If not null, the new MemoryResource to use for device deviceId.
The previous MemoryResource for device deviceId
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.
The id of the target device