--- Comment #2 from stefan dot lankes at rwth-aachen dot de 2006-08-30
09:55 ---
If I compile my test program with the current gcc and set OMP_NUM_THREADS to 2,
the program calculates a wrong value for PI. If I use Intel's C compiler, the
program calculates the correct value. Doe
--- Comment #1 from stefan dot lankes at rwth-aachen dot de 2006-08-30
09:45 ---
I discovered that program works with OMP_NUM_THREADS<=2. If OMP_NUM_THREADS is
larger than 2, the program crashes.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28898
I am testing the OpenMP support of the current gcc and use the following test
program:
long long i, num_steps = 100;
double x, sum=0.0;
double step=1.0/(double) num_steps;
#pragma omp parallel for private(i,x) reduction(+:sum)
for(i=0; ihttp://gcc.gnu.org/bugzilla/show_bug.cgi?id=28898