For clDeviceMemAllocINTEL(), commit f79a9c2 includes a unit test that queries and verifies the buffer location using clGetMemAllocInfoINTEL(). However, the buffer location is stored within a cl_mem struct, which is populated in clDeviceMemAllocINTEL() but not in clHostMemAllocINTEL() and clSharedMemAllocINTEL(). I wonder if we should add a mem_id field to acl_usm_allocation_t to persist the buffer location for later query?
#141 (comment)