Queries the amount of free and total memory for the resource.
the stream whose memory manager we want to retrieve
a tuple which contains [free memory, total memory]
(in bytes)
The other resource to compare to
true if the two resources are equal, else false
MemoryResource that uses cudaMallocManaged/Free for allocation/deallocation.