This file declares the statistics, the execution and the report of the computations on a batch of points, shared by the primitives of the backends of the generic-parallel interfaces.
More...
|
| TFEL_HOST_DEVICE constexpr atomic_size_type | mfront::generic_parallel::toOrderedKey (const double v) noexcept |
| template<typename Atomics, typename Statistics, typename real> |
| TFEL_HOST_DEVICE void | mfront::generic_parallel::updateStatistics (Statistics &s, const BatchStatistics< real > &r, const atomic_size_type rdt0) |
| | update the statistics shared by the threads with the statistics of a point or of a group of points, by atomic operations. The shared statistics are only accessed if an event occurred: a failure, an unreliable result, or a time step scaling factor lower than the initial one.
|
| template<typename OutputStatus> |
| int | mfront::generic_parallel::report (OutputStatus &s, const int status, const std::string_view msg) noexcept |
| | set the status and the error message of an output status
|
| template<typename OutputStatus, typename Initialize, typename Function> |
| int | mfront::generic_parallel::handleExceptions (OutputStatus *const s, const Initialize &initialize, Function &&f) noexcept |
| | call the body of a generated function of batches, so that no exception goes through its C interface: an exception is reported as an error of the backend (status -7). The output status is initialized before the call, and errno is restored on return: it may be modified by the runtimes of the backends and by the computations on the host.
|
This file declares the statistics, the execution and the report of the computations on a batch of points, shared by the primitives of the backends of the generic-parallel interfaces.
- Date
- 09/11/2026
- Copyright
- Copyright (C) 2006-2025 CEA/DEN, EDF R&D. All rights reserved. This project is publicly released under either the GNU GPL Licence with linking exception or the CECILL-A licence. A copy of thoses licences are delivered with the sources of TFEL. CEA or EDF may also distribute this project under specific licensing conditions.