|
Nektar++
|
#include <CompressibleFlowSolverRedesign/RiemannSolvers/Profilers/ProfilerRiemannOps.hpp>#include <LibUtilities/BasicUtils/StringUtils.hpp>Go to the source code of this file.
Functions | |
| int | main (int argc, char *argv[]) |
| main program of the profiler | |
| int main | ( | int | argc, |
| char * | argv[] | ||
| ) |
main program of the profiler
Functions:
Benchmark/profile the elemental operators and print out the performance statistics, e.g. elapsed time, throughput, ndofs. Users can customize which operators and data types(float, doubule) to be profiled.
Usage:
Examples:
# So far We can only launch one GPU:
./ProfilerRiemannOps mesh.xml --opExecSpace=Device --solverinfo
Method=HLLC -P Ntest=100 -P order=5 -verbose
# To squeeze all the performance of CPU, typically we launch as many
# processes as the number of cores on a machine:
mpirun -np 12 ./ProfilerRiemannOps mesh.xml --opExecSpace=Serial
--solverinfo Method=HLLC -P Ntest=200 -P order=3
# Launch likwid and use 18 processes per socket(CPU package), MEM_DP
# tells likwid to measure memory and flops performance, This is
# usually for a roofline analysis:
likwid-mpirun -nperdomain S:18 -m -g MEM_DP ./ProfilerRiemannOps
--opExecSpace=Serial --solverinfo Method=HLLC
mesh.xmlDefinition at line 107 of file ProfilerRiemannOps.cpp.
References Nektar::MemoryManager< DataType >::AllocateSharedPtr(), Nektar::LibUtilities::SessionReader::CreateInstance(), Nektar::Collections::eNoCollection, graph, LIKWID_MARKER_CLOSE, LIKWID_MARKER_INIT, LIKWID_MARKER_THREADINIT, Nektar::PrintDeviceProperties(), Nektar::SpatialDomains::MeshGraphIO::Read(), session, Nektar::StringUtils::Split(), and Nektar::StringUtils::Trim().