Measurement
StokesProblem<dim>::run()
{
- std::map<std::string, unsigned long long> cycle_count;
+ std::map<std::string, std::uint64_t> cycle_count;
{
std::vector<unsigned int> subdivisions(dim, 1);
triangulation.refine_global(4 - dim);
break;
case TestingEnvironment::medium:
- /* fallthrough */
+ DEAL_II_FALLTHROUGH;
case TestingEnvironment::heavy:
triangulation.refine_global(5 - dim);
break;
triangulation.refine_global(6);
break;
case TestingEnvironment::medium:
- /* fallthrough */
+ DEAL_II_FALLTHROUGH;
case TestingEnvironment::heavy:
triangulation.refine_global(7);
break;
Measurement
Step3::run()
{
- std::map<std::string, unsigned long long> cycle_count;
+ std::map<std::string, std::uint64_t> cycle_count;
callgrind_wrapper::start_instrumentation();
make_grid();
/**
* The Measurement type returned by perform_single_measurement(). We
* support returning a <code>std::vector<double></code> for timings or a
- * <code>std::vector<unsigned long long></code> for instruction counts.
+ * <code>std::vector<std::uint64_t></code> for instruction counts.
*
* Note that the following could be improved using std::variant once we
* switch to C++17.
: timing(results)
{}
- Measurement(std::initializer_list<unsigned long long> results)
+ Measurement(std::initializer_list<std::uint64_t> results)
: instruction_count(results)
{}
- std::vector<double> timing;
- std::vector<unsigned long long> instruction_count;
+ std::vector<double> timing;
+ std::vector<std::uint64_t> instruction_count;
};
break;
case Metric::instruction_count:
- const unsigned long long x = measurements[0].instruction_count[i];
+ const std::uint64_t x = measurements[0].instruction_count[i];
pout << names[i] << "\t" << x << "\n";
break;
}
triangulation.refine_global(5 - dim);
break;
case TestingEnvironment::medium:
- /* fallthrough */
+ DEAL_II_FALLTHROUGH;
case TestingEnvironment::heavy:
triangulation.refine_global(6 - dim);
break;
triangulation.refine_global(9);
break;
case TestingEnvironment::medium:
- /* fallthrough */
+ DEAL_II_FALLTHROUGH;
case TestingEnvironment::heavy:
triangulation.refine_global(10);
break;
CALLGRIND_DUMP_STATS_AT("callgrind-wrapper-token");
CALLGRIND_STOP_INSTRUMENTATION;
- std::ifstream callgrind_output("callgrind.out");
- std::string token;
- unsigned long long cycles = 0ull;
- bool found_token = false;
- unsigned long found_pid = 0;
+ std::ifstream callgrind_output("callgrind.out");
+ std::string token;
+ std::uint64_t cycles = 0ull;
+ bool found_token = false;
+ unsigned long found_pid = 0;
while (callgrind_output)
{
* executed since the last start_instrumentation() call.
*/
DEAL_II_ALWAYS_INLINE
- inline unsigned long long
+ inline std::uint64_t
stop_instrumentation()
{
CALLGRIND_DUMP_STATS;
CALLGRIND_STOP_INSTRUMENTATION;
- std::ifstream callgrind_output("callgrind.out");
- std::string token;
- unsigned long long cycles = 0ull;
+ std::ifstream callgrind_output("callgrind.out");
+ std::string token;
+ std::uint64_t cycles = 0ull;
while (callgrind_output)
{