ALP User Documentation 0.7.0
Algebraic Programming User Documentation
Static Public Member Functions | List of all members
IMPLEMENTATION< BSP1D > Class Reference

This class collects configuration parameters that are specific to the grb::BSP1D and grb::hybrid backends. More...

#include <config.hpp>

Static Public Member Functions

static constexpr ALLOC_MODE defaultAllocMode ()
 
static grb::config::ALLOC_MODE sharedAllocMode () noexcept
 

Detailed Description

This class collects configuration parameters that are specific to the grb::BSP1D and grb::hybrid backends.

Note
The full set of implementation details are only visible within the developer documentation.

Member Function Documentation

◆ defaultAllocMode()

static constexpr ALLOC_MODE defaultAllocMode ( )
inlinestaticconstexpr
Returns
The default allocation strategy for private memory segments.

◆ sharedAllocMode()

static grb::config::ALLOC_MODE sharedAllocMode ( )
staticnoexcept
Returns
The default allocation strategy for shared memory regions.

By default, for the BSP1D backend, a shared memory-segment should use interleaved alloc only if is running one process per compute node. This implies a run-time component to this function, which is why for this backend this function is not constexpr.

Warning
This function does assume that the number of processes does not change over the life time of an ALP context.
Note
While the above may seem a reasonably safe assumption, the use of the launcher in MANUAL mode may, in fact, make this a realistic issue that could be encountered. In such cases the deduction should be re-initiated. If you encounter this problem, please report it so that such a fix can be implemented.

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