Skip to content

Commit

Permalink
Avoid use of valgrind/verrou.h in performance test
Browse files Browse the repository at this point in the history
  • Loading branch information
lathuili committed Jan 24, 2024
1 parent fd70cef commit cdec08f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions unitTest/testPerf/stencil.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
#include <iostream>
#include <fstream>
#include <iomanip>
#include "valgrind/verrou.h"
//#include "valgrind/verrou.h"
//#include "stencil_ispc.h"
//using namespace ispc;

Expand Down Expand Up @@ -233,11 +233,11 @@ int main(int argc, char *argv[]) {

reset_and_start_timer();
// VERROU_PRINT_PROFILING_EXACT;
VERROU_START_INSTRUMENTATION;
//VERROU_START_INSTRUMENTATION;
loop_stencil_serial(0, 6, width, Nx-width, width, Ny - width,
width, Nz - width, Nx, Ny, Nz, coeff, vsq,
Aserial[0], Aserial[1]);
VERROU_STOP_INSTRUMENTATION;
//VERROU_STOP_INSTRUMENTATION;
// VERROU_PRINT_PROFILING_EXACT;
double dt = get_elapsed_sec();
printf("@time of serial run:\t\t\t[%.3f] secondes\n", dt);
Expand Down

0 comments on commit cdec08f

Please sign in to comment.