General USM: free (1)

sycl::free

void sycl::free(void* ptr, sycl::context& context);

Parameters

void* ptr

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

const sycl::context& ctxt

The SYCL context in which ptr was allocated.

Return Value

None