tfel
Loading...
Searching...
No Matches
PointStatus.hxx File Reference

This file declares the status of the evaluation of a material property at a point, and its merge in the statistics of an evaluation. More...

#include "TFEL/Config/TFELConfig.hxx"
#include "MFront/GenericParallel/StatisticsKeys.hxx"
#include "MFront/GenericParallelMaterialProperty/MaterialProperty.h"

Classes

struct  mfront::gpmp::PointStatus
 status of the evaluation of a material property at a point, computed by the kernels. With atomic operations, it is merged in the statistics of the evaluation only if an event occurred, so that the cost of the reporting is null when the evaluation succeeds. The reductions merge the statuses of all the points. More...

Namespaces

namespace  mfront
 This namespace contains material used to build the MFront code generator.

Typedefs

using mfront::gpmp::atomic_size_type
 a simple alias

Functions

TFEL_HOST_DEVICE constexpr atomic_size_type mfront::gpmp::getCheck (const atomic_size_type k) noexcept
TFEL_HOST_DEVICE constexpr atomic_size_type mfront::gpmp::getPointIndex (const atomic_size_type k) noexcept
TFEL_HOST_DEVICE constexpr atomic_size_type mfront::gpmp::makeKey (const atomic_size_type i, const atomic_size_type c) noexcept

Variables

constexpr unsigned int mfront::gpmp::check_bits
 number of bits of the identifier of a check in a key. The other bits hold the index of the point.
constexpr atomic_size_type mfront::gpmp::maximal_number_of_checks
 maximal number of checks
constexpr atomic_size_type mfront::gpmp::maximal_number_of_points
 maximal number of points of a batch
constexpr atomic_size_type mfront::gpmp::no_event
 value of a key meaning that no event occurred

Detailed Description

This file declares the status of the evaluation of a material property at a point, and its merge in the statistics of an evaluation.

Date
08/10/2026

Function Documentation

◆ getCheck()

TFEL_HOST_DEVICE constexpr atomic_size_type mfront::generic_parallel::getCheck ( const atomic_size_type k)
nodiscardconstexprnoexcept
Returns
the identifier of the check of a key

◆ getPointIndex()

TFEL_HOST_DEVICE constexpr atomic_size_type mfront::generic_parallel::getPointIndex ( const atomic_size_type k)
nodiscardconstexprnoexcept
Returns
the index of the point of a key

◆ makeKey()

TFEL_HOST_DEVICE constexpr atomic_size_type mfront::generic_parallel::makeKey ( const atomic_size_type i,
const atomic_size_type c )
nodiscardconstexprnoexcept
Returns
the key of an event: the minimum of the keys gives the first point concerned, whatever the order of the computations
Parameters
[in]iindex of the point
[in]cidentifier of the check retained at this point