device extension More...
#include <syclcompat/device.hpp>
Public Member Functions | |
device_ext () | |
~device_ext () | |
device_ext (const sycl::device &base, bool print_on_async_exceptions=false, bool in_order=true) | |
bool | is_native_host_atomic_supported () |
int | get_major_version () const |
int | get_minor_version () const |
int | get_max_compute_units () const |
int | get_max_clock_frequency () const |
Return the maximum clock frequency of this device in KHz. More... | |
int | get_integrated () const |
int | get_max_sub_group_size () const |
int | get_max_register_size_per_work_group () const |
int | get_max_work_group_size () const |
int | get_mem_base_addr_align () const |
size_t | get_global_mem_size () const |
void | get_memory_info (size_t &free_memory, size_t &total_memory) const |
Get the number of bytes of free and total memory on the SYCL device. More... | |
void | get_device_info (device_info &out) const |
device_info | get_device_info () const |
void | reset (bool print_on_async_exceptions=false, bool in_order=true) |
void | set_default_queue (const sycl::queue &q) |
queue_ptr | default_queue () |
void | queues_wait_and_throw () |
queue_ptr | create_queue (bool print_on_async_exceptions=false, bool in_order=true) |
void | destroy_queue (queue_ptr &queue) |
void | set_saved_queue (queue_ptr q) |
queue_ptr | get_saved_queue () const |
sycl::context | get_context () const |
void | has_capability_or_fail (const std::initializer_list< sycl::aspect > &props) const |
Util function to check whether a device supports some kinds of sycl::aspect. More... | |
Friends | |
sycl::event | free_async (const std::vector< void * > &, const std::vector< sycl::event > &, sycl::queue) |
Free the device memory pointed by a batch of pointers in pointers which are related to q after events completed. More... | |
device extension
Definition at line 265 of file device.hpp.
|
inline |
Definition at line 267 of file device.hpp.
|
inline |
Definition at line 268 of file device.hpp.
References syclcompat::wait().
|
inline |
Definition at line 273 of file device.hpp.
References create_queue().
|
inline |
Definition at line 478 of file device.hpp.
Referenced by syclcompat::create_queue(), and device_ext().
|
inline |
Definition at line 466 of file device.hpp.
Referenced by syclcompat::get_default_queue().
|
inline |
Definition at line 483 of file device.hpp.
|
inline |
Definition at line 501 of file device.hpp.
Referenced by syclcompat::get_default_context().
|
inline |
Definition at line 437 of file device.hpp.
Referenced by get_global_mem_size(), get_integrated(), get_major_version(), get_max_clock_frequency(), get_max_compute_units(), get_max_register_size_per_work_group(), get_max_sub_group_size(), get_max_work_group_size(), get_memory_info(), and get_minor_version().
|
inline |
Definition at line 354 of file device.hpp.
References syclcompat::device_info::set_device_id(), syclcompat::device_info::set_global_mem_cache_size(), syclcompat::device_info::set_global_mem_size(), syclcompat::device_info::set_local_mem_size(), syclcompat::device_info::set_major_version(), syclcompat::device_info::set_max_clock_frequency(), syclcompat::device_info::set_max_compute_units(), syclcompat::device_info::set_max_nd_range_size(), syclcompat::device_info::set_max_register_size_per_work_group(), syclcompat::device_info::set_max_sub_group_size(), syclcompat::device_info::set_max_work_group_size(), syclcompat::device_info::set_max_work_item_sizes(), syclcompat::device_info::set_max_work_items_per_compute_unit(), syclcompat::device_info::set_memory_bus_width(), syclcompat::device_info::set_memory_clock_rate(), syclcompat::device_info::set_minor_version(), syclcompat::device_info::set_name(), syclcompat::device_info::set_uuid(), and sycl::_V1::ext::oneapi::experimental::sub_group_size.
|
inline |
Definition at line 321 of file device.hpp.
References get_device_info(), and syclcompat::device_info::get_global_mem_size().
|
inline |
Definition at line 303 of file device.hpp.
References get_device_info(), and syclcompat::device_info::get_integrated().
|
inline |
Definition at line 286 of file device.hpp.
References get_device_info(), and syclcompat::device_info::get_major_version().
|
inline |
Return the maximum clock frequency of this device in KHz.
Definition at line 299 of file device.hpp.
References get_device_info(), and syclcompat::device_info::get_max_clock_frequency().
|
inline |
Definition at line 294 of file device.hpp.
References get_device_info(), and syclcompat::device_info::get_max_compute_units().
|
inline |
Definition at line 309 of file device.hpp.
References get_device_info(), and syclcompat::device_info::get_max_register_size_per_work_group().
|
inline |
Definition at line 305 of file device.hpp.
References get_device_info(), and syclcompat::device_info::get_max_sub_group_size().
|
inline |
Definition at line 313 of file device.hpp.
References get_device_info(), and syclcompat::device_info::get_max_work_group_size().
|
inline |
Definition at line 317 of file device.hpp.
|
inline |
Get the number of bytes of free and total memory on the SYCL device.
[out] | free_memory | The number of bytes of free memory on the SYCL device. |
[out] | total_memory | The number of bytes of total memory on the SYCL device. |
Definition at line 330 of file device.hpp.
References std::cerr, get_device_info(), and syclcompat::device_info::get_global_mem_size().
|
inline |
Definition at line 290 of file device.hpp.
References get_device_info(), and syclcompat::device_info::get_minor_version().
|
inline |
Definition at line 497 of file device.hpp.
|
inline |
Util function to check whether a device supports some kinds of sycl::aspect.
Definition at line 505 of file device.hpp.
References sycl::_V1::detail::getAspectNameStr().
|
inline |
Definition at line 285 of file device.hpp.
|
inline |
Definition at line 468 of file device.hpp.
|
inline |
Definition at line 443 of file device.hpp.
|
inline |
Definition at line 457 of file device.hpp.
Referenced by syclcompat::set_default_queue().
|
inline |
Definition at line 493 of file device.hpp.
|
friend |
Free the device memory pointed by a batch of pointers in pointers
which are related to q
after events
completed.
pointers | The pointers point to the device memory requested to be freed. |
events | The events to be waited. |
q | The sycl::queue the memory relates to. |
Definition at line 549 of file memory.hpp.