General USM: free (2)

sycl::free

void sycl::free(void* ptr, sycl::queue& q);

Parameters

void* ptr

Pointer to the memory to deallocate. Must have been allocated by a SYCL malloc or aligned_alloc function.

const sycl::queue& q

The SYCL queue that provides the context in which ptr was allocated.

Return Value

None