Skip to content

Commit

Permalink
Fix chrono and high_resolution_timer errors
Browse files Browse the repository at this point in the history
  • Loading branch information
aurianer committed Nov 28, 2023
1 parent c29c382 commit a356a6e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions examples/jacobi_smp/jacobi_nonuniform_omp.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@

#pragma once

#include <pika/chrono.hpp>

#include <pika/timing/high_resolution_timer.hpp>
#include <chrono>
#include <cstddef>
#include <cstdint>
#include <iostream>
Expand Down Expand Up @@ -39,7 +39,7 @@ namespace jacobi_smp {
std::swap(dst, src);
}

double time_elapsed = t.elapsed<seconds>();
double time_elapsed = t.elapsed<std::chrono::seconds>();
std::cout << dst->size() << " " << ((double(dst->size() * iterations) / 1e6) / time_elapsed)
<< " MLUPS/s\n"
<< std::flush;
Expand Down
2 changes: 1 addition & 1 deletion examples/jacobi_smp/jacobi_nonuniform_pika.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

#include "jacobi_nonuniform.hpp"

#include <pika/chrono.hpp>
#include <pika/timing/high_resolution_timer.hpp>
#include <pika/execution.hpp>
#include <pika/functional/bind_front.hpp>

Expand Down
2 changes: 1 addition & 1 deletion examples/jacobi_smp/jacobi_pika.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

#include "jacobi.hpp"

#include <pika/chrono.hpp>
#include <pika/timing/high_resolution_timer.hpp>
#include <pika/execution.hpp>
#include <pika/functional/bind_front.hpp>

Expand Down

0 comments on commit a356a6e

Please sign in to comment.