tfel
Loading...
Searching...
No Matches
mfront::generic_parallel::HIPBackend Struct Referencefinal

HIP backend. More...

#include </home/runner/work/tfel/tfel/mfront/include/MFront/GenericParallel/GPUBackend.hxx>

Inheritance diagram for mfront::generic_parallel::HIPBackend:
mfront::generic_parallel::GPUBackend mfront::generic_parallel::AbstractBackend

Public Member Functions

std::string getName () const override
std::string getSourceFileExtension () const override
std::string getExecutionPolicyType () 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
 ~HIPBackend () noexcept override
 destructor
 GPUBackend (const tfel::utilities::DataMap &)
 constructor
Public Member Functions inherited from mfront::generic_parallel::GPUBackend
 GPUBackend (const tfel::utilities::DataMap &)
 constructor
std::string getApply () const override
std::string getMemorySpace () const override
 ~GPUBackend () noexcept override
 destructor
Public Member Functions inherited from mfront::generic_parallel::AbstractBackend
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

Additional Inherited Members

Protected Attributes inherited from mfront::generic_parallel::GPUBackend
int number_of_threads_per_block = 128
 number of threads per block

Detailed Description

HIP backend.

Member Function Documentation

◆ getExecutionPolicyType()

std::string mfront::generic_parallel::HIPBackend::getExecutionPolicyType ( ) const
nodiscardoverridevirtual
Returns
the type of the execution policy of the backend (see MFront/GenericParallel/AbstractBackendExecutionPolicy.hxx), checked by the generated functions. Its header is included by the header of the primitive of the backend (see writeSpecificIncludes).

Implements mfront::generic_parallel::AbstractBackend.

◆ getName()

std::string mfront::generic_parallel::HIPBackend::getName ( ) const
nodiscardoverridevirtual
Returns
the name of the backend, which is used as a suffix for the names of the generated library and files

Implements mfront::generic_parallel::AbstractBackend.

◆ getSourceFileExtension()

std::string mfront::generic_parallel::HIPBackend::getSourceFileExtension ( ) const
nodiscardoverridevirtual
Returns
the extension of the generated source file

Implements mfront::generic_parallel::AbstractBackend.

◆ GPUBackend()

constructor

Parameters
[in]optsoptions

◆ writeSpecificIncludes()

void mfront::generic_parallel::HIPBackend::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
[out]osoutput stream

Reimplemented from mfront::generic_parallel::GPUBackend.


The documentation for this struct was generated from the following file: