#include "base/cs_defs.h"#include <utility>#include <cmath>#include "base/cs_assert.h"#include "base/cs_mem.h"
Include dependency graph for cs_dispatch.h:Go to the source code of this file.
Classes | |
| class | cs_dispatch_context_mixin< Derived > |
| class | cs_host_context |
| class | cs_void_context |
| class | cs_combined_context< Contexts > |
| class | cs_dispatch_context |
Macros | |
| #define | CS_DISPATCH_REDUCER_TYPE(type) type |
Enumerations | |
| enum | cs_dispatch_sum_type_t { CS_DISPATCH_SUM_SIMPLE , CS_DISPATCH_SUM_ATOMIC } |
Functions | |
| template<typename T > | |
| void | cs_dispatch_sum (T *dest, const T src, cs_dispatch_sum_type_t sum_type) |
| sum values using a chosen dispatch sum type. More... | |
| template<size_t dim, typename T > | |
| void | cs_dispatch_sum (T *dest, const T *src, cs_dispatch_sum_type_t sum_type) |
| sum values using a chosen dispatch sum type. More... | |
Dispatch computation using various runtimes (OpenMP, CUDA, ...)
| #define CS_DISPATCH_REDUCER_TYPE | ( | type | ) | type |
|
inline |
sum values using a chosen dispatch sum type.
This allows calling a unique function for assembly in lambda functions called by a dispatch context for interior or boundary faces.
| dim | array stride |
| T | array type |
| [in,out] | dest | destination values |
| [in] | src | source values |
| [in] | sum_type | sum type |
|
inline |
sum values using a chosen dispatch sum type.
This allows calling a unique function for assembly in lambda functions called by a dispatch context for interior or boundary faces.
| T | array type |
| [in,out] | dest | destination |
| [in] | src | source value |
| [in] | sum_type | sum type |