This is the Executor subclass which represents a DPC++ enhanced device.
More...
#include <ginkgo/core/base/executor.hpp>
|
static std::shared_ptr< DpcppExecutor > | create (int device_id, std::shared_ptr< Executor > master, std::string device_type="all", dpcpp_queue_property property=dpcpp_queue_property::in_order) |
| Creates a new DpcppExecutor.
|
|
static int | get_num_devices (std::string device_type) |
| Get the number of devices present on the system.
|
|
This is the Executor subclass which represents a DPC++ enhanced device.
◆ create()
static std::shared_ptr< DpcppExecutor > gko::DpcppExecutor::create |
( |
int | device_id, |
|
|
std::shared_ptr< Executor > | master, |
|
|
std::string | device_type = "all", |
|
|
dpcpp_queue_property | property = dpcpp_queue_property::in_order ) |
|
static |
Creates a new DpcppExecutor.
- Parameters
-
device_id | the DPCPP device id of this device |
master | an executor on the host that is used to invoke the device kernels |
device_type | a string representing the type of device to consider (accelerator, cpu, gpu or all). |
◆ get_device_id()
int gko::DpcppExecutor::get_device_id |
( |
| ) |
const |
|
inlinenoexcept |
Get the DPCPP device id of the device associated to this executor.
- Returns
- the DPCPP device id of the device associated to this executor
◆ get_device_type()
std::string gko::DpcppExecutor::get_device_type |
( |
| ) |
const |
|
inlinenoexcept |
Get a string representing the device type.
- Returns
- a string representing the device type
◆ get_master() [1/2]
std::shared_ptr< const Executor > gko::DpcppExecutor::get_master |
( |
| ) |
const |
|
overridevirtualnoexcept |
◆ get_master() [2/2]
std::shared_ptr< Executor > gko::DpcppExecutor::get_master |
( |
| ) |
|
|
overridevirtualnoexcept |
◆ get_max_subgroup_size()
int gko::DpcppExecutor::get_max_subgroup_size |
( |
| ) |
const |
|
inlinenoexcept |
Get the maximum subgroup size.
- Returns
- the maximum subgroup size
◆ get_max_workgroup_size()
int gko::DpcppExecutor::get_max_workgroup_size |
( |
| ) |
const |
|
inlinenoexcept |
Get the maximum workgroup size.
- Returns
- the maximum workgroup size
◆ get_max_workitem_sizes()
const std::vector< int > & gko::DpcppExecutor::get_max_workitem_sizes |
( |
| ) |
const |
|
inlinenoexcept |
Get the maximum work item sizes.
- Returns
- the maximum work item sizes
◆ get_num_computing_units()
int gko::DpcppExecutor::get_num_computing_units |
( |
| ) |
const |
|
inlinenoexcept |
Get the number of Computing Units of this executor.
- Returns
- the number of Computing Units of this executor
◆ get_num_devices()
static int gko::DpcppExecutor::get_num_devices |
( |
std::string | device_type | ) |
|
|
static |
Get the number of devices present on the system.
- Parameters
-
device_type | a string representing the device type |
- Returns
- the number of devices present on the system
◆ get_scoped_device_id_guard()
◆ get_subgroup_sizes()
const std::vector< int > & gko::DpcppExecutor::get_subgroup_sizes |
( |
| ) |
const |
|
inlinenoexcept |
Get the available subgroup sizes for this device.
- Returns
- the available subgroup sizes for this device
◆ synchronize()
void gko::DpcppExecutor::synchronize |
( |
| ) |
const |
|
overridevirtual |
Synchronize the operations launched on the executor with its master.
Implements gko::Executor.
The documentation for this class was generated from the following file: