flow 1.4.0
Kokkos cut-cell IBM incompressible Navier-Stokes solver + pnm pore extraction
Loading...
Searching...
No Matches
p0bench Namespace Reference

Classes

struct  Stat

Typedefs

using VReal = float
using FV = Kokkos::View<VReal*, pf::CCMem>
using FVC = Kokkos::View<const VReal*, pf::CCMem>

Functions

int runRbgs (int N, int K)
template<class Exec = pf::CCExec>
void smoothPeeledFp64 (pf::CCField phi, pf::CCConst b, pf::FPC AC, pf::FPC AFX, pf::FPC AFY, pf::FPC AFZ, pf::C3 e, pf::C3 n, pf::C3 og, int g, int color)
template<class Exec = pf::CCExec>
void checkPeeled (pf::CCField xa, pf::CCField xb, pf::CCConst b, pf::FPC AC, pf::FPC AFX, pf::FPC AFY, pf::FPC AFZ, pf::C3 e, pf::C3 n, pf::C3 og, int g)
template<class XV, class BV, class WV>
void smoothLiteCell (const XV &x, const BV &b, const WV &WX, const WV &WY, const WV &WZ, long i, long sx, long sy, long sz, const pf::CcNbrs &w)
template<class XV, class BV, class WV>
void smoothFp32Cell (const XV &x, const BV &b, const WV &WX, const WV &WY, const WV &WZ, long i, long sx, long sy, long sz, const pf::CcNbrs &w)
template<bool Fp32, class XV, class BV, class WV>
void fluxCell (const XV &x, const BV &b, const WV &WX, const WV &WY, const WV &WZ, long i, long sx, long sy, long sz, const pf::CcNbrs &w)
template<bool Fp32, class XV, class BV>
void smoothFluxPass (XV x, BV b, FVC WX, FVC WY, FVC WZ, pf::C3 e, pf::C3 n, pf::C3 og, int g, int color)
void loadavg (const char *tag)
Stat stats (std::vector< double > v)
int runP0 (int rounds, int passes)
int runC0 (int rounds, int launches)

Variables

constexpr bool kHost = std::is_same_v<pf::CCMem, Kokkos::HostSpace>

Typedef Documentation

◆ VReal

using p0bench::VReal = float

Definition at line 39 of file bench_rbgs.cpp.

◆ FV

using p0bench::FV = Kokkos::View<VReal*, pf::CCMem>

Definition at line 40 of file bench_rbgs.cpp.

◆ FVC

using p0bench::FVC = Kokkos::View<const VReal*, pf::CCMem>

Definition at line 41 of file bench_rbgs.cpp.

Function Documentation

◆ runRbgs()

int p0bench::runRbgs ( int N,
int K )

Definition at line 43 of file bench_rbgs.cpp.

References N, and peclet::flow::poisSweep().

Referenced by main().

◆ smoothPeeledFp64()

template<class Exec = pf::CCExec>
void p0bench::smoothPeeledFp64 ( pf::CCField phi,
pf::CCConst b,
pf::FPC AC,
pf::FPC AFX,
pf::FPC AFY,
pf::FPC AFZ,
pf::C3 e,
pf::C3 n,
pf::C3 og,
int g,
int color )

◆ checkPeeled()

template<class Exec = pf::CCExec>
void p0bench::checkPeeled ( pf::CCField xa,
pf::CCField xb,
pf::CCConst b,
pf::FPC AC,
pf::FPC AFX,
pf::FPC AFY,
pf::FPC AFZ,
pf::C3 e,
pf::C3 n,
pf::C3 og,
int g )

Definition at line 124 of file bench_rbgs.cpp.

References AC, peclet::flow::cutcellSmoothColorFaceWrap(), and smoothPeeledFp64().

Referenced by runP0().

◆ smoothLiteCell()

template<class XV, class BV, class WV>
void p0bench::smoothLiteCell ( const XV & x,
const BV & b,
const WV & WX,
const WV & WY,
const WV & WZ,
long i,
long sx,
long sy,
long sz,
const pf::CcNbrs & w )

Definition at line 141 of file bench_rbgs.cpp.

Referenced by fluxCell().

◆ smoothFp32Cell()

template<class XV, class BV, class WV>
void p0bench::smoothFp32Cell ( const XV & x,
const BV & b,
const WV & WX,
const WV & WY,
const WV & WZ,
long i,
long sx,
long sy,
long sz,
const pf::CcNbrs & w )

Definition at line 158 of file bench_rbgs.cpp.

Referenced by fluxCell().

◆ fluxCell()

template<bool Fp32, class XV, class BV, class WV>
void p0bench::fluxCell ( const XV & x,
const BV & b,
const WV & WX,
const WV & WY,
const WV & WZ,
long i,
long sx,
long sy,
long sz,
const pf::CcNbrs & w )

Definition at line 172 of file bench_rbgs.cpp.

References smoothFp32Cell(), and smoothLiteCell().

Referenced by smoothFluxPass().

◆ smoothFluxPass()

template<bool Fp32, class XV, class BV>
void p0bench::smoothFluxPass ( XV x,
BV b,
FVC WX,
FVC WY,
FVC WZ,
pf::C3 e,
pf::C3 n,
pf::C3 og,
int g,
int color )

Definition at line 184 of file bench_rbgs.cpp.

References peclet::flow::ccWrapNbrs(), fluxCell(), kHost, and PECLET_FLOW_OMP_SIMD.

Referenced by runP0().

◆ loadavg()

void p0bench::loadavg ( const char * tag)

Definition at line 217 of file bench_rbgs.cpp.

Referenced by runC0(), and runP0().

◆ stats()

Stat p0bench::stats ( std::vector< double > v)

Definition at line 231 of file bench_rbgs.cpp.

Referenced by runC0(), and runP0().

◆ runP0()

int p0bench::runP0 ( int rounds,
int passes )

◆ runC0()

int p0bench::runC0 ( int rounds,
int launches )

Definition at line 397 of file bench_rbgs.cpp.

References peclet::flow::ccReduce3(), peclet::flow::ccReduce3Lanes(), loadavg(), N, stats(), and val().

Referenced by main().

Variable Documentation

◆ kHost

bool p0bench::kHost = std::is_same_v<pf::CCMem, Kokkos::HostSpace>
constexpr

Definition at line 76 of file bench_rbgs.cpp.

Referenced by runP0(), and smoothFluxPass().