cl::sycl::codeplay Namespace Reference
Namespaces | |
profiling | |
property | |
Classes | |
class | handler |
Command group handler that implements Codeplay specific API extensions. More... | |
class | host_handler |
Command group host handler that implements Codeplay specific API extensions. More... | |
class | interop_handle |
Handle that allows access to OpenCL interop objects on a specific SYCL queue. More... | |
Typedefs | |
typedef experimental::sub_group | sub_group |
template<typename dataType > | |
using | subgroup_local_ptr = multi_ptr< dataType, access::address_space::subgroup_local_space > |
subgroup_local_ptr, pointer class definition for data living in the subgroup local address space. More... | |
Enumerations | |
enum | memory_type : size_t { memory_type::global = 0, memory_type::local = 1, memory_type::onchip = 2 } |
Represents different types of device memory. More... | |
enum | host_access_mode { host_access_mode::none, host_access_mode::read, host_access_mode::read_write, host_access_mode::write } |
Access modes that can limit host access to device data. More... | |
Functions | |
template<access::mode kMode, access::target kTarget, typename elemT , int kDims, typename AllocatorT > | |
accessor< elemT, kDims, kMode, kTarget, access::placeholder::true_t > | make_placeholder_accessor (buffer< elemT, kDims, AllocatorT > &bufferRef) |
COMPUTECPP_EXPORT void | flush (cl::sycl::queue &syclQueue) |
Codeplay extension. More... | |
COMPUTECPP_EXPORT cl::sycl::cl_ulong | get_allocated_memory_size (const cl::sycl::device &dev, memory_type memoryType) |
Retrieves the amount of memory that has been allocated on the device for the specified memory type. More... | |
Typedef Documentation
◆ sub_group
Definition at line 517 of file sub_group.h.
◆ subgroup_local_ptr
using cl::sycl::codeplay::subgroup_local_ptr = typedef multi_ptr<dataType, access::address_space::subgroup_local_space> |
subgroup_local_ptr, pointer class definition for data living in the subgroup local address space.
- Template Parameters
-
dataType Data type the object manipulates.
Definition at line 1166 of file multi_pointer.h.
Enumeration Type Documentation
◆ host_access_mode
|
strong |
Access modes that can limit host access to device data.
- Note
- This only applies to host accessors, the host device is treated as any other device
Enumerator | |
---|---|
none | No host access to device data allowed. |
read | Host can only read from device data. |
read_write | Host can read and write device data. |
write | Host can only write to device data. |
Definition at line 29 of file host_access.h.
◆ memory_type
|
strong |
Represents different types of device memory.
Enumerator | |
---|---|
global | |
local | |
onchip |
Definition at line 24 of file device_memory.h.
Function Documentation
◆ flush()
COMPUTECPP_EXPORT void cl::sycl::codeplay::flush | ( | cl::sycl::queue & | syclQueue | ) |
Codeplay extension.
Flushes all command groups that have been submited to a queue. Synchronous errors are reported through C++ exceptions.
◆ get_allocated_memory_size()
COMPUTECPP_EXPORT cl::sycl::cl_ulong cl::sycl::codeplay::get_allocated_memory_size | ( | const cl::sycl::device & | dev, |
memory_type | memoryType | ||
) |
Retrieves the amount of memory that has been allocated on the device for the specified memory type.
- Parameters
-
dev Device to query memoryType Which memory pool to query
- Returns
- Amount of allocated memory in bytes
◆ make_placeholder_accessor()
accessor<elemT, kDims, kMode, kTarget, access::placeholder::true_t> cl::sycl::codeplay::make_placeholder_accessor | ( | buffer< elemT, kDims, AllocatorT > & | bufferRef | ) |
Definition at line 28 of file accessor_util.h.