This is the Executor subclass which represents the OpenMP device (typically CPU).
More...
#include <ginkgo/core/base/executor.hpp>
|
std::shared_ptr< Executor > | get_master () noexcept override |
| Returns the master OmpExecutor of this Executor.
|
|
std::shared_ptr< const Executor > | get_master () const noexcept override |
| Returns the master OmpExecutor of this Executor.
|
|
void | synchronize () const override |
| Synchronize the operations launched on the executor with its master.
|
|
int | get_num_cores () const |
|
int | get_num_threads_per_core () const |
|
scoped_device_id_guard | get_scoped_device_id_guard () const override |
|
std::string | get_description () const override |
|
virtual void | run (const Operation &op) const=0 |
| Runs the specified Operation using this Executor.
|
|
template<typename ClosureOmp , typename ClosureCuda , typename ClosureHip , typename ClosureDpcpp > |
void | run (const ClosureOmp &op_omp, const ClosureCuda &op_cuda, const ClosureHip &op_hip, const ClosureDpcpp &op_dpcpp) const |
| Runs one of the passed in functors, depending on the Executor type.
|
|
template<typename ClosureReference , typename ClosureOmp , typename ClosureCuda , typename ClosureHip , typename ClosureDpcpp > |
void | run (std::string name, const ClosureReference &op_ref, const ClosureOmp &op_omp, const ClosureCuda &op_cuda, const ClosureHip &op_hip, const ClosureDpcpp &op_dpcpp) const |
| Runs one of the passed in functors, depending on the Executor type.
|
|
This is the Executor subclass which represents the OpenMP device (typically CPU).
◆ get_description()
std::string gko::OmpExecutor::get_description |
( |
| ) |
const |
|
overridevirtual |
◆ get_master() [1/2]
std::shared_ptr< const Executor > gko::OmpExecutor::get_master |
( |
| ) |
const |
|
overridevirtualnoexcept |
◆ get_master() [2/2]
std::shared_ptr< Executor > gko::OmpExecutor::get_master |
( |
| ) |
|
|
overridevirtualnoexcept |
◆ get_scoped_device_id_guard()
◆ run() [1/3]
template<typename ClosureOmp , typename ClosureCuda , typename ClosureHip , typename ClosureDpcpp >
void gko::Executor::run |
( |
const ClosureOmp & | op_omp, |
|
|
const ClosureCuda & | op_cuda, |
|
|
const ClosureHip & | op_hip, |
|
|
const ClosureDpcpp & | op_dpcpp ) const |
|
inline |
Runs one of the passed in functors, depending on the Executor type.
- Template Parameters
-
ClosureOmp | type of op_omp |
ClosureCuda | type of op_cuda |
ClosureHip | type of op_hip |
ClosureDpcpp | type of op_dpcpp |
- Parameters
-
◆ run() [2/3]
virtual void gko::Executor::run |
( |
const Operation & | op | ) |
const |
|
virtual |
◆ run() [3/3]
template<typename ClosureReference , typename ClosureOmp , typename ClosureCuda , typename ClosureHip , typename ClosureDpcpp >
void gko::Executor::run |
( |
std::string | name, |
|
|
const ClosureReference & | op_ref, |
|
|
const ClosureOmp & | op_omp, |
|
|
const ClosureCuda & | op_cuda, |
|
|
const ClosureHip & | op_hip, |
|
|
const ClosureDpcpp & | op_dpcpp ) const |
|
inline |
Runs one of the passed in functors, depending on the Executor type.
- Template Parameters
-
ClosureReference | type of op_ref |
ClosureOmp | type of op_omp |
ClosureCuda | type of op_cuda |
ClosureHip | type of op_hip |
ClosureDpcpp | type of op_dpcpp |
- Parameters
-
◆ synchronize()
void gko::OmpExecutor::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: