Skip to content

Commit

Permalink
Fixed cmake macro bug
Browse files Browse the repository at this point in the history
  • Loading branch information
ElisabethGiem committed Oct 24, 2024
1 parent 0808b03 commit 69ab561
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/resilience/openMP/OpenMPResParallel.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -117,15 +117,15 @@ class ParallelFor< FunctorType
using LaunchBounds = typename Policy::launch_bounds;
using Member = typename Policy::member_type;

//const FunctorType & m_functor;
const FunctorType m_functor;
const FunctorType & m_functor;
const Policy m_policy;

ParallelFor() = delete ;
ParallelFor & operator = ( const ParallelFor & ) = delete ;

using surrogate_policy = Kokkos::RangePolicy < Kokkos::OpenMP, WorkTag, LaunchBounds>;

#ifdef KR_ENABLE_WRAPPER
auto MakeWrapper (int64_t work_size, int64_t offset, const FunctorType &m_functor_0, const FunctorType &m_functor_1) const{
if constexpr (std::is_void_v<WorkTag>){
std::cout << "In MakeWrapper void WorkTag branch." << std::endl;
Expand Down Expand Up @@ -164,6 +164,7 @@ class ParallelFor< FunctorType
return wrapper_functor;
}
}
#endif

public:
inline void execute() const {
Expand Down Expand Up @@ -239,7 +240,7 @@ class ParallelFor< FunctorType


const auto start{std::chrono::steady_clock::now()};
KokkosResilience::inject_error_duplicates();
//KokkosResilience::inject_error_duplicates();
const auto stop{std::chrono::steady_clock::now()};
KokkosResilience::ETimer::elapsed_seconds = KokkosResilience::ETimer::elapsed_seconds + (std::chrono::duration_cast<std::chrono::nanoseconds>(stop - start));
KokkosResilience::ETimer::total_error_time = KokkosResilience::ETimer::total_error_time + KokkosResilience::ETimer::elapsed_seconds;
Expand Down

0 comments on commit 69ab561

Please sign in to comment.