[Solved] ifort / OpenMP / Critical sections : curious bug

[Solved] ifort / OpenMP / Critical sections : curious bug

Hello everybody,

I'm facing a curious bug (it takes one year to find it with my colleague). Here an example:

program main
  implicit none
  !$OMP CRITICAL (TOTO)
  print *, 'Hello World...'
  !$OMP END CRITICAL (TOTO)
end program main



One year ago, I was using intel 10.1.022 and now we are using intel 11.1.056. This program run. But when I change it like that:

program main
  implicit none
  !$OMP CRITICAL (WRITE)
  print *, 'Hello World...'
  !$OMP END CRITICAL (WRITE)
end program main





It bugs with a message: "Segmentation Fault occured".

It seems to be corrected in the last version (11.1.069). I just want to report it.

Best Regards,

1 post / 0 new
For more complete information about compiler optimizations, see our Optimization Notice.