This is the Executor subclass which represents the CUDA device.
More...
#include <ginkgo/core/base/executor.hpp>
|
class | ExecutorBase< CudaExecutor > |
|
This is the Executor subclass which represents the CUDA device.
◆ create()
static std::shared_ptr<CudaExecutor> gko::CudaExecutor::create |
( |
int |
device_id, |
|
|
std::shared_ptr< Executor > |
master |
|
) |
| |
|
static |
Creates a new CudaExecutor.
- Parameters
-
device_id | the CUDA device id of this device |
master | an executor on the host that is used to invoke the device kernels |
◆ get_cublas_handle()
cublasContext* gko::CudaExecutor::get_cublas_handle |
( |
| ) |
const |
|
inline |
Get the cublas handle for this executor.
- Returns
- the cublas handle (cublasContext*) for this executor
◆ get_cusparse_handle()
cusparseContext* gko::CudaExecutor::get_cusparse_handle |
( |
| ) |
const |
|
inline |
Get the cusparse handle for this executor.
- Returns
- the cusparse handle (cusparseContext*) for this executor
◆ get_master() [1/2]
std::shared_ptr<Executor> gko::CudaExecutor::get_master |
( |
| ) |
|
|
overridevirtualnoexcept |
◆ get_master() [2/2]
std::shared_ptr<const Executor> gko::CudaExecutor::get_master |
( |
| ) |
const |
|
overridevirtualnoexcept |
◆ run()
void gko::CudaExecutor::run |
( |
const Operation & |
op | ) |
const |
|
overridevirtual |
The documentation for this class was generated from the following file: