1.2.1-allow-gcc-openmp.patch 926 B

123456789101112131415161718192021
  1. --- source/xfft.f.orig 2008-08-03 00:36:52.000000000 -0700
  2. +++ source/xfft.f 2008-08-03 00:37:06.000000000 -0700
  3. @@ -514,7 +514,7 @@
  4. LOGICAL QHERM
  5. DOUBLE PRECISION XRCELL(9), MAPR
  6. C local
  7. -!$ integer omp_get_max_threads, kmp_get_stacksize
  8. +!$ integer omp_get_max_threads
  9. LOGICAL DONE
  10. DOUBLE PRECISION ZERO
  11. PARAMETER (ZERO=0.0D0)
  12. @@ -537,7 +537,7 @@
  13. NBPP=1
  14. ! The following command is only relevant for the ifort compiler (if -openmp option is used).
  15. ! If your compiler is not ifort, and gives an error, just comment the next line out:
  16. -!$ if (kmp_get_stacksize().lt.2**23) call kmp_set_stacksize(2**23)
  17. +! if (kmp_get_stacksize().lt.2**23) call kmp_set_stacksize(2**23)
  18. ! Explanation: the default KMP_STACKSIZE of ifort is 2**21 bytes (2Mb) for 32bit,
  19. ! and 2**22 bytes (4Mb) for 64bit.
  20. ! This may be low for big structures, which leads to segmentation faults!