|
flow 1.4.0
Kokkos cut-cell IBM incompressible Navier-Stokes solver + pnm pore extraction
|
Timing probe of the direct pressure bottom's factor launch (mg_bottom_factor, doc/vof_step_performance_design.md §13.4.3, §14 H-1) on the bottom-direct test problems: walls-y (bottom 16x12x8, walls on y: P = 12, b = 128 – the bubble column's bottom) and periodic (16x12x8 all periodic: P = 16, b = 96, with the border). More...
#include <algorithm>#include <cmath>#include <cstdio>#include <cstdlib>#include <cstring>#include <Kokkos_Core.hpp>#include <random>#include <string>#include <type_traits>#include <vector>#include "mac_cutcell_mg.hpp"Go to the source code of this file.
Functions | |
| int | main (int argc, char **argv) |
Timing probe of the direct pressure bottom's factor launch (mg_bottom_factor, doc/vof_step_performance_design.md §13.4.3, §14 H-1) on the bottom-direct test problems: walls-y (bottom 16x12x8, walls on y: P = 12, b = 128 – the bubble column's bottom) and periodic (16x12x8 all periodic: P = 16, b = 96, with the border).
Not a correctness gate.
bench_bottom_factor [reps] [case: walls-y | periodic] [dump file] [T ...]
Per team size T (default 1 2 4 8 16 24; 0 = the production default): min / median ms over reps refactors of the same operator, and whether the factor's storage (Q, Y, e, s, stat) is bitwise identical to the first run's. A host backend times its host schedule, then the team algorithm (the device one, the host schedule's bitwise oracle) at the same sizes. With a dump file the first T's storage is written there (raw bytes, Q|Y|e|s|stat), so two builds can be compared with cmp.
This target is compiled with PECLET_FLOW_BOTTOM_PROBE (doc/vof_gpu_coarse_tail_design.md §5.2, P2): for the team algorithm it also prints the factor's phase split (clock ticks of team rank 0 between barriers, scaled to the median ms), and at the production team size the time of M alone (z = M(r), precondition-only) against the production solve (factor current).
Definition in file bench_bottom_factor.cpp.
| int main | ( | int | argc, |
| char ** | argv ) |
Definition at line 52 of file bench_bottom_factor.cpp.
References peclet::flow::BottomPlanes::b, peclet::flow::BottomPlanes::border, peclet::flow::CutcellMG::bottomForceForTest(), peclet::flow::CutcellMG::directApplyForTest(), peclet::flow::CutcellMG::directFactorForTest(), peclet::flow::CutcellMG::directPlanes(), peclet::flow::CutcellMG::directSolveForTest(), peclet::flow::CutcellMG::init(), peclet::flow::kBottomPivotTol, peclet::flow::CutcellMG::launchDirectFactor(), peclet::flow::CutcellMG::level(), peclet::flow::CutcellMG::nLevels(), peclet::flow::BottomPlanes::P, same(), peclet::flow::CutcellMG::setAgglomerationMode(), peclet::flow::CutcellMG::setBoundaryConditions(), peclet::flow::CutcellMG::setOpenness(), and U.