DPC++ Runtime
Runtime libraries for oneAPI DPC++
|
|
Go to the documentation of this file.
48 inline std::vector<memory_order>
50 std::vector<memory_order> result;
52 result.push_back(memory_order::relaxed);
54 result.push_back(memory_order::acquire);
56 result.push_back(memory_order::release);
58 result.push_back(memory_order::acq_rel);
60 result.push_back(memory_order::seq_cst);
64 inline std::vector<memory_scope>
66 std::vector<memory_scope> result;
68 result.push_back(memory_scope::work_item);
70 result.push_back(memory_scope::sub_group);
72 result.push_back(memory_scope::work_group);
74 result.push_back(memory_scope::device);
76 result.push_back(memory_scope::system);
80 #ifndef __SYCL_DEVICE_ONLY__
83 case memory_order::relaxed:
85 case memory_order::__consume_unsupported:
86 return std::memory_order_consume;
87 case memory_order::acquire:
89 case memory_order::release:
91 case memory_order::acq_rel:
93 case memory_order::seq_cst:
101 #endif // __SYCL_DEVICE_ONLY__
constexpr auto memory_scope_system
constexpr pi_memory_order_capabilities PI_MEMORY_ORDER_ACQUIRE
#define __SYCL_INLINE_VER_NAMESPACE(X)
std::vector< memory_order > readMemoryOrderBitfield(pi_memory_order_capabilities bits)
constexpr pi_memory_scope_capabilities PI_MEMORY_SCOPE_WORK_ITEM
---— Error handling, matching OpenCL plugin semantics.
constexpr auto memory_order_seq_cst
constexpr auto memory_order_acquire
constexpr auto memory_scope_sub_group
constexpr auto memory_order_relaxed
constexpr pi_memory_order_capabilities PI_MEMORY_ORDER_RELAXED
constexpr pi_memory_scope_capabilities PI_MEMORY_SCOPE_DEVICE
constexpr pi_memory_scope_capabilities PI_MEMORY_SCOPE_SYSTEM
constexpr auto memory_scope_device
constexpr pi_memory_scope_capabilities PI_MEMORY_SCOPE_SUB_GROUP
std::vector< memory_scope > readMemoryScopeBitfield(pi_memory_scope_capabilities bits)
constexpr auto memory_scope_work_group
constexpr pi_memory_order_capabilities PI_MEMORY_ORDER_SEQ_CST
constexpr pi_memory_order_capabilities PI_MEMORY_ORDER_RELEASE
The SYCL device class encapsulates a single SYCL device on which kernels may be executed.
constexpr auto memory_scope_work_item
pi_bitfield pi_memory_scope_capabilities
constexpr pi_memory_scope_capabilities PI_MEMORY_SCOPE_WORK_GROUP
constexpr auto memory_order_acq_rel
constexpr pi_memory_order_capabilities PI_MEMORY_ORDER_ACQ_REL
static constexpr std::memory_order getStdMemoryOrder(sycl::memory_order order)
pi_bitfield pi_memory_order_capabilities
constexpr auto memory_order_release