backend based on the parallel algorithms of the C++ standard library.
More...
#include </home/runner/work/tfel/tfel/mfront/include/MFront/GenericParallel/ParallelSTLBackend.hxx>
|
|
| ParallelSTLBackend () |
| | default constructor
|
| | ParallelSTLBackend (const tfel::utilities::DataMap &) |
| | constructor
|
| std::string | getName () const override |
| std::string | getSourceFileExtension () const override |
| void | writeSpecificIncludes (std::ostream &) const override |
| | 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
|
| std::string | getApply () const override |
| std::string | getMemorySpace () const override |
| std::string | getExecutionPolicyType () const override |
|
| ~ParallelSTLBackend () noexcept override |
| | destructor
|
| 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 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
|
backend based on the parallel algorithms of the C++ standard library.
Options:
- execution_policy: sequenced_policy (or seq), unsequenced_policy (or unseq), parallel_policy (or par) or parallel_unsequenced_policy (or par_unseq, default).
- device_stack_size: minimal stack size, in bytes, of the threads of the device when the parallel algorithms are offloaded to a GPU by nvc++ -stdpar=gpu (ignored otherwise). The default stack size of CUDA threads (1024 bytes) is too small for some kernels.
◆ ParallelSTLBackend()
◆ getApply()
| std::string mfront::generic_parallel::ParallelSTLBackend::getApply |
( |
| ) |
const |
|
nodiscardoverridevirtual |
◆ getExecutionPolicyType()
| std::string mfront::generic_parallel::ParallelSTLBackend::getExecutionPolicyType |
( |
| ) |
const |
|
nodiscardoverridevirtual |
◆ getMemorySpace()
| std::string mfront::generic_parallel::ParallelSTLBackend::getMemorySpace |
( |
| ) |
const |
|
nodiscardoverridevirtual |
◆ getName()
| std::string mfront::generic_parallel::ParallelSTLBackend::getName |
( |
| ) |
const |
|
nodiscardoverridevirtual |
◆ getSourceFileExtension()
| std::string mfront::generic_parallel::ParallelSTLBackend::getSourceFileExtension |
( |
| ) |
const |
|
nodiscardoverridevirtual |
◆ writeSpecificIncludes()
| void mfront::generic_parallel::ParallelSTLBackend::writeSpecificIncludes |
( |
std::ostream & | | ) |
const |
|
overridevirtual |
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
- Parameters
-
Implements mfront::generic_parallel::AbstractBackend.
The documentation for this struct was generated from the following file: