ExaTN
Public Member Functions | List of all members
exatn::runtime::ExatensorNodeExecutor Class Reference
Inheritance diagram for exatn::runtime::ExatensorNodeExecutor:
exatn::runtime::TensorNodeExecutor exatn::Identifiable exatn::Cloneable< TensorNodeExecutor >

Public Member Functions

 ExatensorNodeExecutor (const ExatensorNodeExecutor &)=delete
 
ExatensorNodeExecutoroperator= (const ExatensorNodeExecutor &)=delete
 
 ExatensorNodeExecutor (ExatensorNodeExecutor &&) noexcept=delete
 
ExatensorNodeExecutoroperator= (ExatensorNodeExecutor &&) noexcept=delete
 
void initialize () override
 
int execute (numerics::TensorOpCreate &op, TensorOpExecHandle *exec_handle) override
 
int execute (numerics::TensorOpDestroy &op, TensorOpExecHandle *exec_handle) override
 
int execute (numerics::TensorOpTransform &op, TensorOpExecHandle *exec_handle) override
 
int execute (numerics::TensorOpAdd &op, TensorOpExecHandle *exec_handle) override
 
int execute (numerics::TensorOpContract &op, TensorOpExecHandle *exec_handle) override
 
bool sync (TensorOpExecHandle op_handle, int *error_code, bool wait=false) override
 
std::shared_ptr< talsh::Tensor > getLocalTensor (const numerics::Tensor &tensor, const std::vector< std::pair< DimOffset, DimExtent >> &slice_spec) override
 
const std::string name () const override
 
const std::string description () const override
 
std::shared_ptr< TensorNodeExecutorclone () override
 
- Public Member Functions inherited from exatn::Cloneable< TensorNodeExecutor >
virtual ~Cloneable ()
 

Member Function Documentation

◆ execute()

int exatn::runtime::ExatensorNodeExecutor::execute ( numerics::TensorOpCreate op,
TensorOpExecHandle *  exec_handle 
)
overridevirtual

Executes the tensor operation found in a DAG node asynchronously, returning the execution handle in exec_handle that can later be used for testing for completion of the operation execution. Returns an integer error code (0:Success).

Implements exatn::runtime::TensorNodeExecutor.

◆ getLocalTensor()

std::shared_ptr< talsh::Tensor > exatn::runtime::ExatensorNodeExecutor::getLocalTensor ( const numerics::Tensor tensor,
const std::vector< std::pair< DimOffset, DimExtent >> &  slice_spec 
)
overridevirtual

Returns a local copy of a given tensor slice.

Implements exatn::runtime::TensorNodeExecutor.

◆ initialize()

void exatn::runtime::ExatensorNodeExecutor::initialize ( )
overridevirtual

Explicitly initializes the underlying numerical service, if needed

Implements exatn::runtime::TensorNodeExecutor.

◆ sync()

bool exatn::runtime::ExatensorNodeExecutor::sync ( TensorOpExecHandle  op_handle,
int *  error_code,
bool  wait = false 
)
overridevirtual

Synchronizes the execution of a previously submitted tensor operation.

Implements exatn::runtime::TensorNodeExecutor.


The documentation for this class was generated from the following files: