X-Git-Url: http://git.euphorik.ch/?p=GPU.git;a=blobdiff_plain;f=WCudaMSE%2FStudent_OMP%2Fsrc%2Fcpp%2Fcore%2Fomp%2F02_pi%2F02_pi_entrelacer_promotionTab.cpp;h=12b85773de02f77e06f7c78f6b0d4ce4949c4adc;hp=db48e25d37dde32af6363cc81ce057f03b3c484a;hb=d8613c8e60ee8b1f79466d0427d865138d29761f;hpb=1ad82fc988adf2f8837584ec26873953a83dc7b8 diff --git a/WCudaMSE/Student_OMP/src/cpp/core/omp/02_pi/02_pi_entrelacer_promotionTab.cpp b/WCudaMSE/Student_OMP/src/cpp/core/omp/02_pi/02_pi_entrelacer_promotionTab.cpp index db48e25..12b8577 100755 --- a/WCudaMSE/Student_OMP/src/cpp/core/omp/02_pi/02_pi_entrelacer_promotionTab.cpp +++ b/WCudaMSE/Student_OMP/src/cpp/core/omp/02_pi/02_pi_entrelacer_promotionTab.cpp @@ -1,4 +1,7 @@ #include + +#include + #include "00_pi_tools.h" #include "OmpTools.h" @@ -48,6 +51,7 @@ double piOMPEntrelacerPromotionTab(int n) const int NB_THREAD = OmpTools::setAndGetNaturalGranularity(); double* tabSums = new double[NB_THREAD]; + memset(tabSums, 0, NB_THREAD * sizeof(double)); const double DX = 1.0/(double)n;