diff options
Diffstat (limited to 'Microbenchmarks/STREAM/dpu/copyw.c')
-rw-r--r-- | Microbenchmarks/STREAM/dpu/copyw.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/Microbenchmarks/STREAM/dpu/copyw.c b/Microbenchmarks/STREAM/dpu/copyw.c index eff7a3b..66dd319 100644 --- a/Microbenchmarks/STREAM/dpu/copyw.c +++ b/Microbenchmarks/STREAM/dpu/copyw.c @@ -18,12 +18,16 @@ __host dpu_results_t DPU_RESULTS[NR_TASKLETS]; // Copy static void copyw_dpu(T *bufferB, T *bufferA) { - +#if UNROLL #pragma unroll for (unsigned int i = 0; i < BLOCK_SIZE / sizeof(T); i++){ bufferB[i] = bufferA[i]; } - +#else + for (unsigned int i = 0; i < BLOCK_SIZE / sizeof(T); i++){ + bufferB[i] = bufferA[i]; + } +#endif } // Barrier |