CARE
CARE copied to clipboard
Universal CARE free function (both host and device memory)
Write a function free to replace both host free and gpuFree (cudaFree / hipFree )
A function like cudaPointerGetAttributes (and similar function for HIP)
can query whether a pointer is allocated on the host or device or managed.