tfel
Loading...
Searching...
No Matches
mfront::generic_parallel::BackendExecutionPolicyBase Struct Reference

base class of the execution policies of the backends using the common options More...

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

Inheritance diagram for mfront::generic_parallel::BackendExecutionPolicyBase:
mfront::generic_parallel::AbstractBackendExecutionPolicy mfront::generic_parallel::BackendExecutionCommonPolicy mfront::generic_parallel::CUDABackendExecutionPolicy mfront::generic_parallel::HIPBackendExecutionPolicy mfront::generic_parallel::ParallelSTLBackendExecutionPolicy mfront::generic_parallel::SyclBackendExecutionPolicy

Public Member Functions

 BackendExecutionPolicyBase (const BackendExecutionCommonPolicy &opts) noexcept
 constructor
Public Member Functions inherited from mfront::generic_parallel::AbstractBackendExecutionPolicy
virtual const char * getIdentifier () const noexcept=0
virtual ~AbstractBackendExecutionPolicy ()
 destructor

Additional Inherited Members

Public Attributes inherited from mfront::generic_parallel::BackendExecutionCommonPolicy
bool preserve_stack_size = false
 if true, the stack size of the threads of the device is never modified and an error is reported if it is too small. Otherwise, the stack size is increased if the kernel requires it. The stack size is a property of the context of the device, shared by the whole process (CUDA and HIP runtimes), and costs memory of the device: a code sharing the device with other libraries may set this option.
bool asynchronous = false
 if true, the generated function may return before the end of the computations, once they are submitted to the queue of the policy. The calling code then synchronizes the queue before reading the outputs and the statistics. An asynchronous computation requires statistics (invalid arguments otherwise). The stlpar backend, even when it computes on a device, and the sycl backend when it transfers data, compute synchronously.
Protected Member Functions inherited from mfront::generic_parallel::AbstractBackendExecutionPolicy
 AbstractBackendExecutionPolicy () noexcept=default
 default constructor
 AbstractBackendExecutionPolicy (const AbstractBackendExecutionPolicy &) noexcept=default
 copy constructor
 AbstractBackendExecutionPolicy (AbstractBackendExecutionPolicy &&) noexcept=default
 move constructor
AbstractBackendExecutionPolicy & operator= (const AbstractBackendExecutionPolicy &) noexcept=default
 copy assignment
AbstractBackendExecutionPolicy & operator= (AbstractBackendExecutionPolicy &&) noexcept=default
 move assignment

Detailed Description

base class of the execution policies of the backends using the common options

Constructor & Destructor Documentation

◆ BackendExecutionPolicyBase()

mfront::generic_parallel::BackendExecutionPolicyBase::BackendExecutionPolicyBase ( const BackendExecutionCommonPolicy & opts)
inlineexplicitnoexcept

constructor

Parameters
[in]optscommon options

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