@@ -3,11 +3,11 @@ implementation of Powell's derivative-free optimization solvers.
33
44N.B.:
55
6- 0. In real applications , if the dimension of the problem is big (e.g., more than 100), then
7- compilers should be instructed to compile PRIMA with the automatic arrays allocated on the heap.
8- Otherwise, those arrays may be allocated on the stack, which may lead to stack overflow. Since
9- PRIMA is designed to solve problems with expensive function evaluations, we do not worry about
10- the performance of heap arrays.
6+ 0. In production , if the dimension of the problem is big (e.g., more than 100), then compilers
7+ should be instructed to compile PRIMA with the automatic arrays allocated on the heap. Otherwise,
8+ those arrays may be allocated on the stack, which may lead to stack overflow. Since PRIMA is
9+ designed to solve problems with expensive function evaluations, we do not worry about the
10+ performance of heap arrays.
1111
1212The compiler flags for heap arrays are as follows:
1313- AMD AOCC Flang: -fno-stack-arrays
@@ -17,8 +17,10 @@ The compiler flags for heap arrays are as follows:
1717- GNU gfortran: -fno-stack-arrays
1818- Intel ifx: -heap-arrays
1919- Intel ifort: -heap-arrays
20- - NAG Fortran Compiler: NO (unknown)
2120- NVIDIA nvfortran: -Mnostack_arrays
21+ - NAG Fortran Compiler: Not needed. According to the NAG support, "the behaviour of nagfor is for
22+ small fixed-size arrays to go on the stack, and for variable-size arrays and fixed-size arrays to
23+ go on the heap".
2224
2325If ever a segmentation fault occurs, check whether the above flags are used in the compilation.
2426
@@ -47,8 +49,8 @@ compliant with Fortran 2008 and above.
4749- GNU gfortran 14.2
4850- Intel ifx 2025.3
4951- Intel ifort 2021.11.1
50- - NAG Fortran Compiler Release 7.2(Shin-Urayasu) Build 7231
5152- NVIDIA nvfortran 26.1
53+ - NAG Fortran Compiler Release 7.2(Shin-Urayasu) Build 7231
5254The following discontinued compilers are not supported: Absoft af95, g95, Oracle sunf95.
5355
5456Coded by Zaikun ZHANG (www.zhangzk.net).
0 commit comments