Concurrent USM: mem_advise

Performance Hints

In Concurrent USM, prefetch commands may be overlapped with kernel execution.

mem_advise

class queue {
 ...
 public:
  ...
  event mem_advise(const void *addr, size_t num_bytes, int advice);
};

Parameters

void* addr

Address of the allocation.

size_t num_bytes

Number of bytes in the allocation.

int advice

Device-defined advice for the specified allocation.

Return Value

Returns an event representing the operation.