Block-Structured AMR Software Framework
Loading...
Searching...
No Matches
AMReX_CompensatedSum.H File Reference
#include <AMReX_Config.H>
#include <AMReX_Extension.H>
#include <AMReX_GpuQualifiers.H>

Go to the source code of this file.

Namespaces

namespace  amrex
 

Functions

template<typename T , typename U >
__host__ __device__ void amrex::compensatedAdd (T &sum, T &compensation, U value) noexcept
 Add a value to a running sum with Kahan compensation.