core 1.8.1
Shared MPI block decomposition, asynchronous ghost-layer exchange, SDF geometry, load balancing (header-only C++20)
Loading...
Searching...
No Matches
host_parallel.hpp File Reference
#include <utility>
#include "peclet/core/common/types.hpp"

Go to the source code of this file.

Namespaces

namespace  peclet
namespace  peclet::core

Macros

#define PECLET_CORE_HOST_PARALLEL_KOKKOS   0

Functions

bool peclet::core::hostParallelActive ()
 Is the parallel backend actually live for this process?
template<class Body>
void peclet::core::hostParFor (Index n, Body &&body)
 Parallel for (Index i = 0; i < n; ++i) body(i); over the Kokkos HOST execution space.
template<class Body>
void peclet::core::hostParScan (Index n, Body &&body)
 Exclusive integer scan over the host space: body(i, update, final) where update carries the running sum of everything BEFORE i when final is true.

Macro Definition Documentation

◆ PECLET_CORE_HOST_PARALLEL_KOKKOS

#define PECLET_CORE_HOST_PARALLEL_KOKKOS   0

Definition at line 52 of file host_parallel.hpp.