sycl::usm::allocΒΆ

Since SYCL 2020

enum class alloc {
  host,
  device,
  shared,
  unknown
};

Identifies type of USM memory in calls to USM-related API.

host

Resides on host and also accessible by device

device

Resides on device and only accessible by device

shared

SYCL runtime may move data between host and device. Accessible by host and device.

See also

SYCL Specification Section 4.8.3