Skip to content

Commit 17f3f8f

Browse files
author
Amr Akmal Moustafa Abouelmagd
committed
TESTING only: enforce larger time span for kernel execution
1 parent cda4247 commit 17f3f8f

2 files changed

Lines changed: 8 additions & 2 deletions

File tree

src/stream/TRIAD-Hip.cpp

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,14 +84,19 @@ void TRIAD::runHipVariantImpl(VariantID vid)
8484
} else if ( vid == RAJA_HIP ) {
8585

8686
startTimer();
87+
8788
for (RepIndex_type irep = 0; irep < run_reps; ++irep) {
8889

8990
RAJA::forall< RAJA::hip_exec<block_size, true /*async*/> >( res,
9091
RAJA::RangeSegment(ibegin, iend), [=] __device__ (Index_type i) {
91-
TRIAD_BODY;
92-
});
9392

93+
for (RepIndex_type extra_rep = 0; extra_rep < extra_kernel_repe_count; ++extra_rep) {
94+
TRIAD_BODY;
95+
}
96+
97+
});
9498
}
99+
95100
stopTimer();
96101

97102
} else {

src/stream/TRIAD.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
#define TRIAD_BODY \
2727
a[i] = b[i] + alpha * c[i] ;
2828

29+
constexpr int extra_kernel_repe_count = 5;
2930

3031
#include "common/KernelBase.hpp"
3132

0 commit comments

Comments
 (0)