Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add mesh preprocessing to timing output #297

Merged
merged 1 commit into from
Nov 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion palace/utils/geodata.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ std::unique_ptr<mfem::ParMesh> ReadMesh(MPI_Comm comm, const IoData &iodata)
// If possible on root, read the serial mesh (converting format if necessary), and do all
// necessary serial preprocessing. When finished, distribute the mesh to all processes.
// Count disk I/O time separately for the mesh read from file.
BlockTimer bt0(Timer::MESH_PREPROCESS);

// If not doing any local adaptation, or performing conformal adaptation, we can use the
// mesh partitioner.
Expand Down Expand Up @@ -118,7 +119,7 @@ std::unique_ptr<mfem::ParMesh> ReadMesh(MPI_Comm comm, const IoData &iodata)

// Only one process per node reads the serial mesh.
{
BlockTimer bt(Timer::IO);
BlockTimer bt1(Timer::IO);
if ((use_mesh_partitioner && Mpi::Root(comm)) ||
(!use_mesh_partitioner && Mpi::Root(node_comm)))
{
Expand Down
2 changes: 2 additions & 0 deletions palace/utils/timer.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ class Timer
enum Index
{
INIT = 0,
MESH_PREPROCESS, // Preprocessing mesh
CONSTRUCT, // Space and operator construction
WAVE_PORT, // Wave port solver
KSP, // Linear solver
Expand All @@ -52,6 +53,7 @@ class Timer
// clang-format off
inline static const std::vector<std::string> descriptions{
"Initialization",
" Mesh Preprocessing",
"Operator Construction",
" Wave Ports",
"Linear Solve",
Expand Down
Loading