|
tfel
|
base class of the backends of the generic-parallel interfaces. More...
#include </home/runner/work/tfel/tfel/mfront/include/MFront/GenericParallel/AbstractBackend.hxx>
Public Member Functions | |
| virtual std::string | getName () const =0 |
| virtual std::string | getSourceFileExtension () const =0 |
| virtual void | writeSpecificIncludes (std::ostream &) const =0 |
| write the headers required by the backend: the header of its primitive (MFront/GenericParallel/<name>.hxx) and, if the backend has functions specific to the runtime of the interface, their header | |
| void | writeSymbols (std::ostream &, std::string_view) const |
| write the symbols describing the generated library: name of the backend (<f>_generic_parallel_backend), memory space in which the fields must be located (<f>_generic_parallel_memory_space), identifier of the execution policy (<f>_generic_parallel_execution_policy), and version of the data structures exchanged with the generated functions (<f>_generic_parallel_api_version, see MFRONT_GPMP_API_VERSION) | |
| virtual std::string | getApply () const =0 |
| virtual std::string | getMemorySpace () const =0 |
| virtual std::string | getExecutionPolicyType () const =0 |
| virtual void | writeCall (std::ostream &, std::string_view, std::string_view, std::string_view) const |
| write the statement returning the result of a function of the runtime of the interface, for instance evaluateBatch of MFront/GenericParallelMaterialProperty/Evaluate.hxx. The primitive of the backend is appended to the given arguments. | |
| virtual | ~AbstractBackend () noexcept |
| destructor | |
base class of the backends of the generic-parallel interfaces.
The computations on a batch are implemented by function templates of the runtime of an interface (MFront/GenericParallelMaterialProperty, namespace mfront::gpmp, for the material properties), which take the primitive of a backend as last argument (see MFront/GenericParallel/Batch.hxx). A backend selects its headers and writes the expression building its primitive.
|
nodiscardpure virtual |
Implemented in mfront::generic_parallel::GPUBackend, mfront::generic_parallel::ParallelSTLBackend, and mfront::generic_parallel::SYCLBackend.
|
nodiscardpure virtual |
Implemented in mfront::generic_parallel::CUDABackend, mfront::generic_parallel::HIPBackend, mfront::generic_parallel::ParallelSTLBackend, and mfront::generic_parallel::SYCLBackend.
|
nodiscardpure virtual |
Implemented in mfront::generic_parallel::GPUBackend, mfront::generic_parallel::ParallelSTLBackend, and mfront::generic_parallel::SYCLBackend.
|
nodiscardpure virtual |
Implemented in mfront::generic_parallel::CUDABackend, mfront::generic_parallel::HIPBackend, mfront::generic_parallel::ParallelSTLBackend, and mfront::generic_parallel::SYCLBackend.
|
nodiscardpure virtual |
Implemented in mfront::generic_parallel::CUDABackend, mfront::generic_parallel::HIPBackend, mfront::generic_parallel::ParallelSTLBackend, and mfront::generic_parallel::SYCLBackend.
|
virtual |
write the statement returning the result of a function of the runtime of the interface, for instance evaluateBatch of MFront/GenericParallelMaterialProperty/Evaluate.hxx. The primitive of the backend is appended to the given arguments.
| [out] | os | output stream |
| [in] | f | name of the function |
| [in] | status | name of the output status, which is the first argument |
| [in] | arguments | other arguments |
Reimplemented in mfront::generic_parallel::SYCLBackend.
|
pure virtual |
write the headers required by the backend: the header of its primitive (MFront/GenericParallel/<name>.hxx) and, if the backend has functions specific to the runtime of the interface, their header
| [out] | os | output stream |
Implemented in mfront::generic_parallel::GPUBackend, mfront::generic_parallel::HIPBackend, mfront::generic_parallel::ParallelSTLBackend, and mfront::generic_parallel::SYCLBackend.
| void mfront::generic_parallel::AbstractBackend::writeSymbols | ( | std::ostream & | , |
| std::string_view | ) const |
write the symbols describing the generated library: name of the backend (<f>_generic_parallel_backend), memory space in which the fields must be located (<f>_generic_parallel_memory_space), identifier of the execution policy (<f>_generic_parallel_execution_policy), and version of the data structures exchanged with the generated functions (<f>_generic_parallel_api_version, see MFRONT_GPMP_API_VERSION)
| [out] | os | output stream |
| [in] | f | basis of the names of the symbols |