[Bug libgomp/28898] OpenMP-parallelized program crashes after a parallel for loop

2006-08-30 Thread stefan dot lankes at rwth-aachen dot de
--- 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

[Bug libgomp/28898] OpenMP-parallelized program crashes after a parallel for loop

2006-08-30 Thread stefan dot lankes at rwth-aachen dot de
--- 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

[Bug libgomp/28898] New: OpenMP-parallelized program crashes after a parallel for loop

2006-08-30 Thread stefan dot lankes at rwth-aachen dot de
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