Hi All,

Finally, I found the minimal condition of my problem.
Attached very simple code reproduce the problem.
You will get different result(fort.99) at time to time.

Essential point is combination of power operation(**)
and "omp do schedule(dynamic,chunk-size)".
If we have operation ** in a do loop parallelized
with schedule(dynamic),  result becomes unstable.
I don't know fundamental origin of this problem.
But, I believe this is unexpected abnormal behavior.

As I wrote, my mingw-w64 is a x86_64 package of msys2.
I have not tested other versions of  mingw-w64 yet.
So, I would be grateful if you could test on your system.

Any comments and suggestions will be appreciated.

Best,
Takashi

.SUFFIXES: .f .o

FORTRAN = gfortran
FFLAGS  = -fopenmp -O3 -Wall

PROG1 = demo.exe
OBJS1 = demo.o

$(PROG1) : $(OBJS1)
        $(FORTRAN) $(FFLAGS) $(OBJS1) $(LIBS) -o $(PROG1)

.f.o:
        $(FORTRAN) $(FFLAGS) -c $<

clean:
        rm -f *.o *~ *.exe
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to