Shamrock
2025.10.0
Astrophysical Code
Loading...
Searching...
No Matches
shammodels
common
include
shammodels
common
timestep_report.hpp
Go to the documentation of this file.
1
// -------------------------------------------------------//
2
//
3
// SHAMROCK code for hydrodynamics
4
// Copyright (c) 2021-2026 Timothée David--Cléris <tim.shamrock@proton.me>
5
// SPDX-License-Identifier: CeCILL Free Software License Agreement v2.1
6
// Shamrock is licensed under the CeCILL 2.1 License, see LICENSE for more information
7
//
8
// -------------------------------------------------------//
9
10
#pragma once
11
19
#include "
shambase/aliases_float.hpp
"
20
#include "
shambase/aliases_int.hpp
"
21
#include "
shamsys/system_metrics.hpp
"
22
#include <optional>
23
#include <string>
24
25
namespace
shammodels
{
26
27
std::string report_perf_timestep(
28
f64
rate,
29
u64
nobj,
30
u64
npatch,
31
f64
tcompute,
32
f64
mpi_timer,
33
f64
alloc_time_device,
34
f64
alloc_time_host,
35
size_t
max_mem_device,
36
size_t
max_mem_host,
37
shamsys::SystemMetrics
system_metrics = {},
38
bool
report_power_usage =
false
);
39
40
}
// namespace shammodels
aliases_float.hpp
f64
double f64
Alias for double.
Definition
aliases_float.hpp:20
aliases_int.hpp
u64
std::uint64_t u64
64 bit unsigned integer
Definition
aliases_int.hpp:26
shammodels
namespace for models
Definition
AMRBlock.hpp:26
shamsys::SystemMetrics
Definition
system_metrics.hpp:78
system_metrics.hpp
Generated on Wed May 13 2026 13:21:49 for Shamrock by
1.9.8