options

gmx_mpi - 2024-08-02 14:15:25 - MAQAO 2.20.7

Help is available by moving the cursor above any symbol or by checking MAQAO website.

Strategizer  

[ 4 / 4 ] Enough time of the experiment time spent in analyzed loops (35.96%)

If the time spent in analyzed loops is less than 30%, standard loop optimizations will have a limited impact on application performances.

[ 4 / 4 ] Loop profile is not flat

At least one loop coverage is greater than 4% (12.31%), representing an hotspot for the application

[ 4 / 4 ] Enough time of the experiment time spent in analyzed innermost loops (30.35%)

If the time spent in analyzed innermost loops is less than 15%, standard innermost loop optimizations such as vectorisation will have a limited impact on application performances.

[ 3 / 3 ] Less than 10% (0.00%) is spend in BLAS1 operations

It could be more efficient to inline by hand BLAS1 operations

[ 3 / 3 ] Cumulative Outermost/In between loops coverage (5.62%) lower than cumulative innermost loop coverage (30.35%)

Having cumulative Outermost/In between loops coverage greater than cumulative innermost loop coverage will make loop optimization more complex

[ 0 / 2 ] More than 10% (20.19%) is spend in Libm/SVML (special functions)

The application is heavily using special math functions (powers, exp, sin etc…) proper library version have to be used. Exact accuracy needs have to be evaluated. Perform input value profiling, first count how many different input values. Using AOCC you should link your application with the AMD math library with -lamdlibm -lm. To use the vector version of the library (and potentially enable vectorization of loops calling math functions)you also need to compile with the -fveclib=AMDLIBM option. If you wish to use the fastest version (may lower precision) you need to compile with -Ofast -fsclrlib=AMDLIBM and link with -lamdlibmfast -lamdlibm -lm options.

[ 2 / 2 ] Less than 10% (0.00%) is spend in BLAS2 operations

BLAS2 calls usually could make a poor cache usage and could benefit from inlining.

Optimizer

Loop IDAnalysisPenalty Score
Loop 839 - libgromacs_mpi.so.9.0.0+Execution Time: 12 % - Vectorization Ratio: 89.12 % - Vector Length Use: 82.65 %
Loop Computation Issues+256
+[SA] Presence of expensive FP instructions - Perform hoisting, change algorithm, use SVML or proper numerical library or perform value profiling (count the number of distinct input values). There are 64 issues (= instructions) costing 4 points each.256
Number of RCP instructions: 32
Number of RSQRT instructions: 32
Data Access Issues+49
[SA] Presence of constant non unit stride data access - Use array restructuring, perform loop interchange or use gather instructions to lower a bit the cost. There are 3 issues ( = data accesses) costing 2 point each.6
[SA] Presence of indirect accesses - Use array restructuring or gather instructions to lower the cost. There are 4 issues ( = indirect data accesses) costing 4 point each.16
+[SA] Presence of special instructions executing on a single port (INSERT/EXTRACT, BROADCAST) - Simplify data access and try to get stride 1 access. There are 25 issues (= instructions) costing 1 point each.25
Number of INSERT/EXTRACT instructions: 3
Number of ZMM BROADCAST instructions: 22
[SA] More than 20% of the loads are accessing the stack - Perform loop splitting to decrease pressure on registers. This issue costs 2 points.2
Vectorization Roadblocks+22
[SA] Presence of constant non unit stride data access - Use array restructuring, perform loop interchange or use gather instructions to lower a bit the cost. There are 3 issues ( = data accesses) costing 2 point each.6
[SA] Presence of indirect accesses - Use array restructuring or gather instructions to lower the cost. There are 4 issues ( = indirect data accesses) costing 4 point each.16
Inefficient Vectorization+27
+[SA] Presence of special instructions executing on a single port (INSERT/EXTRACT, BROADCAST) - Simplify data access and try to get stride 1 access. There are 25 issues (= instructions) costing 1 point each.25
Number of INSERT/EXTRACT instructions: 3
Number of ZMM BROADCAST instructions: 22
[SA] Inefficient vectorization: use of masked instructions - Simplify control structure. The issue costs 2 points.2
Loop 837 - libgromacs_mpi.so.9.0.0+Execution Time: 4 % - Vectorization Ratio: 88.34 % - Vector Length Use: 82.68 %
Loop Computation Issues+256
+[SA] Presence of expensive FP instructions - Perform hoisting, change algorithm, use SVML or proper numerical library or perform value profiling (count the number of distinct input values). There are 64 issues (= instructions) costing 4 points each.256
Number of RCP instructions: 32
Number of RSQRT instructions: 32
Data Access Issues+47
[SA] Presence of constant non unit stride data access - Use array restructuring, perform loop interchange or use gather instructions to lower a bit the cost. There are 4 issues ( = data accesses) costing 2 point each.8
[SA] Presence of indirect accesses - Use array restructuring or gather instructions to lower the cost. There are 3 issues ( = indirect data accesses) costing 4 point each.12
+[SA] Presence of special instructions executing on a single port (INSERT/EXTRACT, BROADCAST) - Simplify data access and try to get stride 1 access. There are 25 issues (= instructions) costing 1 point each.25
Number of INSERT/EXTRACT instructions: 3
Number of ZMM BROADCAST instructions: 22
[SA] More than 20% of the loads are accessing the stack - Perform loop splitting to decrease pressure on registers. This issue costs 2 points.2
Vectorization Roadblocks+20
[SA] Presence of constant non unit stride data access - Use array restructuring, perform loop interchange or use gather instructions to lower a bit the cost. There are 4 issues ( = data accesses) costing 2 point each.8
[SA] Presence of indirect accesses - Use array restructuring or gather instructions to lower the cost. There are 3 issues ( = indirect data accesses) costing 4 point each.12
Inefficient Vectorization+27
+[SA] Presence of special instructions executing on a single port (INSERT/EXTRACT, BROADCAST) - Simplify data access and try to get stride 1 access. There are 25 issues (= instructions) costing 1 point each.25
Number of INSERT/EXTRACT instructions: 3
Number of ZMM BROADCAST instructions: 22
[SA] Inefficient vectorization: use of masked instructions - Simplify control structure. The issue costs 2 points.2
Loop 14221 - libgromacs_mpi.so.9.0.0+Execution Time: 3 % - Vectorization Ratio: 8.33 % - Vector Length Use: 8.65 %
Loop Computation Issues+34
+[SA] Presence of expensive FP instructions - Perform hoisting, change algorithm, use SVML or proper numerical library or perform value profiling (count the number of distinct input values). There are 8 issues (= instructions) costing 4 points each.32
Number of DIV instructions: 7
Number of SQRT instructions: 1
[SA] Presence of a large number of scalar integer instructions - Simplify loop structure, perform loop splitting or perform unroll and jam. This issue costs 2 points.2
Control Flow Issues+14
[SA] Presence of calls - Inline either by compiler or by hand and use SVML for libm calls. There are 2 issues (= calls) costing 1 point each.2
[SA] Too many paths (8 paths) - Simplify control structure. There are 8 issues ( = paths) costing 1 point each with a malus of 4 points.12
Data Access Issues+6
+[SA] Presence of special instructions executing on a single port (BROADCAST) - Simplify data access and try to get stride 1 access. There are 4 issues (= instructions) costing 1 point each.4
Number of XMM BROADCAST instructions: 4
[SA] More than 20% of the loads are accessing the stack - Perform loop splitting to decrease pressure on registers. This issue costs 2 points.2
Vectorization Roadblocks+14
[SA] Presence of calls - Inline either by compiler or by hand and use SVML for libm calls. There are 2 issues (= calls) costing 1 point each.2
[SA] Too many paths (8 paths) - Simplify control structure. There are 8 issues ( = paths) costing 1 point each with a malus of 4 points.12
Inefficient Vectorization+4
+[SA] Presence of special instructions executing on a single port (BROADCAST) - Simplify data access and try to get stride 1 access. There are 4 issues (= instructions) costing 1 point each.4
Number of XMM BROADCAST instructions: 4
Loop 846 - libgromacs_mpi.so.9.0.0+Execution Time: 2 % - Vectorization Ratio: 87.82 % - Vector Length Use: 84.20 %
Loop Computation Issues+384
+[SA] Presence of expensive FP instructions - Perform hoisting, change algorithm, use SVML or proper numerical library or perform value profiling (count the number of distinct input values). There are 96 issues (= instructions) costing 4 points each.384
Number of RCP instructions: 64
Number of RSQRT instructions: 32
Data Access Issues+53
[SA] Presence of constant non unit stride data access - Use array restructuring, perform loop interchange or use gather instructions to lower a bit the cost. There are 6 issues ( = data accesses) costing 2 point each.12
[SA] Presence of indirect accesses - Use array restructuring or gather instructions to lower the cost. There are 1 issues ( = indirect data accesses) costing 4 point each.4
+[SA] Presence of special instructions executing on a single port (INSERT/EXTRACT, BROADCAST) - Simplify data access and try to get stride 1 access. There are 35 issues (= instructions) costing 1 point each.35
Number of INSERT/EXTRACT instructions: 3
Number of ZMM BROADCAST instructions: 32
[SA] More than 20% of the loads are accessing the stack - Perform loop splitting to decrease pressure on registers. This issue costs 2 points.2
Vectorization Roadblocks+16
[SA] Presence of constant non unit stride data access - Use array restructuring, perform loop interchange or use gather instructions to lower a bit the cost. There are 6 issues ( = data accesses) costing 2 point each.12
[SA] Presence of indirect accesses - Use array restructuring or gather instructions to lower the cost. There are 1 issues ( = indirect data accesses) costing 4 point each.4
Inefficient Vectorization+37
+[SA] Presence of special instructions executing on a single port (INSERT/EXTRACT, BROADCAST) - Simplify data access and try to get stride 1 access. There are 35 issues (= instructions) costing 1 point each.35
Number of INSERT/EXTRACT instructions: 3
Number of ZMM BROADCAST instructions: 32
[SA] Inefficient vectorization: use of masked instructions - Simplify control structure. The issue costs 2 points.2
Loop 17265 - libgromacs_mpi.so.9.0.0+Execution Time: 1 % - Vectorization Ratio: 65.71 % - Vector Length Use: 37.54 %
Loop Computation Issues+2
[SA] Presence of a large number of scalar integer instructions - Simplify loop structure, perform loop splitting or perform unroll and jam. This issue costs 2 points.2
Control Flow Issues+36
[SA] Too many paths (30 paths) - Simplify control structure. There are 30 issues ( = paths) costing 1 point each with a malus of 4 points.34
[SA] Non innermost loop (Outermost) - Collapse loop with innermost ones. This issue costs 2 points.2
Data Access Issues+56
+[SA] Presence of expensive instructions (GATHER/SCATTER) - Use array restructuring. There are 4 issues (= instructions) costing 4 points each.16
Number of ZMM GATHER/SCATTER instructions: 4
+[SA] Presence of special instructions executing on a single port (INSERT/EXTRACT, COMPRESS/EXPAND, SHUFFLE/PERM, BROADCAST) - Simplify data access and try to get stride 1 access. There are 38 issues (= instructions) costing 1 point each.38
Number of INSERT/EXTRACT instructions: 10
Number of ZMM COMPRESS/EXPAND instructions: 2
Number of XMM SHUFFLE/PERM instructions: 6
Number of ZMM SHUFFLE/PERM instructions: 5
Number of XMM BROADCAST instructions: 8
Number of YMM BROADCAST instructions: 1
Number of ZMM BROADCAST instructions: 6
[SA] More than 20% of the loads are accessing the stack - Perform loop splitting to decrease pressure on registers. This issue costs 2 points.2
Vectorization Roadblocks+36
[SA] Too many paths (30 paths) - Simplify control structure. There are 30 issues ( = paths) costing 1 point each with a malus of 4 points.34
[SA] Non innermost loop (Outermost) - Collapse loop with innermost ones. This issue costs 2 points.2
Inefficient Vectorization+56
[SA] Presence of expensive instructions (GATHER/SCATTER) - Use array restructuring. There are 4 issues (= instructions) costing 4 points each.16
+[SA] Presence of special instructions executing on a single port (INSERT/EXTRACT, COMPRESS/EXPAND, SHUFFLE/PERM, BROADCAST) - Simplify data access and try to get stride 1 access. There are 38 issues (= instructions) costing 1 point each.38
Number of INSERT/EXTRACT instructions: 10
Number of ZMM COMPRESS/EXPAND instructions: 2
Number of XMM SHUFFLE/PERM instructions: 6
Number of ZMM SHUFFLE/PERM instructions: 5
Number of XMM BROADCAST instructions: 8
Number of YMM BROADCAST instructions: 1
Number of ZMM BROADCAST instructions: 6
[SA] Inefficient vectorization: use of masked instructions - Simplify control structure. The issue costs 2 points.2
Loop 844 - libgromacs_mpi.so.9.0.0+Execution Time: 0 % - Vectorization Ratio: 88.67 % - Vector Length Use: 85.30 %
Loop Computation Issues+384
+[SA] Presence of expensive FP instructions - Perform hoisting, change algorithm, use SVML or proper numerical library or perform value profiling (count the number of distinct input values). There are 96 issues (= instructions) costing 4 points each.384
Number of RCP instructions: 64
Number of RSQRT instructions: 32
Data Access Issues+59
[SA] Presence of constant non unit stride data access - Use array restructuring, perform loop interchange or use gather instructions to lower a bit the cost. There are 4 issues ( = data accesses) costing 2 point each.8
[SA] Presence of indirect accesses - Use array restructuring or gather instructions to lower the cost. There are 3 issues ( = indirect data accesses) costing 4 point each.12
+[SA] Presence of special instructions executing on a single port (INSERT/EXTRACT, BROADCAST) - Simplify data access and try to get stride 1 access. There are 37 issues (= instructions) costing 1 point each.37
Number of INSERT/EXTRACT instructions: 3
Number of ZMM BROADCAST instructions: 34
[SA] More than 20% of the loads are accessing the stack - Perform loop splitting to decrease pressure on registers. This issue costs 2 points.2
Vectorization Roadblocks+20
[SA] Presence of constant non unit stride data access - Use array restructuring, perform loop interchange or use gather instructions to lower a bit the cost. There are 4 issues ( = data accesses) costing 2 point each.8
[SA] Presence of indirect accesses - Use array restructuring or gather instructions to lower the cost. There are 3 issues ( = indirect data accesses) costing 4 point each.12
Inefficient Vectorization+39
+[SA] Presence of special instructions executing on a single port (INSERT/EXTRACT, BROADCAST) - Simplify data access and try to get stride 1 access. There are 37 issues (= instructions) costing 1 point each.37
Number of INSERT/EXTRACT instructions: 3
Number of ZMM BROADCAST instructions: 34
[SA] Inefficient vectorization: use of masked instructions - Simplify control structure. The issue costs 2 points.2
Loop 834 - libgromacs_mpi.so.9.0.0+Execution Time: 0 % - Vectorization Ratio: 68.67 % - Vector Length Use: 41.67 %
Loop Computation Issues+6
[SA] Less than 10% of the FP ADD/SUB/MUL arithmetic operations are performed using FMA - Reorganize arithmetic expressions to exhibit potential for FMA. This issue costs 4 points.4
[SA] Presence of a large number of scalar integer instructions - Simplify loop structure, perform loop splitting or perform unroll and jam. This issue costs 2 points.2
Control Flow Issues+44
[SA] Too many paths (38 paths) - Simplify control structure. There are 38 issues ( = paths) costing 1 point each with a malus of 4 points.42
[SA] Non innermost loop (Outermost) - Collapse loop with innermost ones. This issue costs 2 points.2
Data Access Issues+62
+[SA] Presence of special instructions executing on a single port (INSERT/EXTRACT, COMPRESS/EXPAND, BLEND/MERGE, SHUFFLE/PERM, BROADCAST) - Simplify data access and try to get stride 1 access. There are 60 issues (= instructions) costing 1 point each.60
Number of INSERT/EXTRACT instructions: 12
Number of ZMM COMPRESS/EXPAND instructions: 3
Number of XMM BLEND/MERGE instructions: 1
Number of XMM SHUFFLE/PERM instructions: 4
Number of ZMM SHUFFLE/PERM instructions: 12
Number of XMM BROADCAST instructions: 1
Number of YMM BROADCAST instructions: 24
Number of ZMM BROADCAST instructions: 3
[SA] More than 20% of the loads are accessing the stack - Perform loop splitting to decrease pressure on registers. This issue costs 2 points.2
Vectorization Roadblocks+44
[SA] Too many paths (38 paths) - Simplify control structure. There are 38 issues ( = paths) costing 1 point each with a malus of 4 points.42
[SA] Non innermost loop (Outermost) - Collapse loop with innermost ones. This issue costs 2 points.2
Inefficient Vectorization+62
+[SA] Presence of special instructions executing on a single port (INSERT/EXTRACT, COMPRESS/EXPAND, BLEND/MERGE, SHUFFLE/PERM, BROADCAST) - Simplify data access and try to get stride 1 access. There are 60 issues (= instructions) costing 1 point each.60
Number of INSERT/EXTRACT instructions: 12
Number of ZMM COMPRESS/EXPAND instructions: 3
Number of XMM BLEND/MERGE instructions: 1
Number of XMM SHUFFLE/PERM instructions: 4
Number of ZMM SHUFFLE/PERM instructions: 12
Number of XMM BROADCAST instructions: 1
Number of YMM BROADCAST instructions: 24
Number of ZMM BROADCAST instructions: 3
[SA] Inefficient vectorization: use of masked instructions - Simplify control structure. The issue costs 2 points.2
Loop 17547 - libgromacs_mpi.so.9.0.0+Execution Time: 0 % - Vectorization Ratio: 80.17 % - Vector Length Use: 21.69 %
Loop Computation Issues+2
[SA] Presence of a large number of scalar integer instructions - Simplify loop structure, perform loop splitting or perform unroll and jam. This issue costs 2 points.2
Control Flow Issues+105
[SA] Too many paths (99 paths) - Simplify control structure. There are 99 issues ( = paths) costing 1 point each with a malus of 4 points.103
[SA] Non innermost loop (InBetween) - Collapse loop with innermost ones. This issue costs 2 points.2
Data Access Issues+22
+[SA] Presence of special instructions executing on a single port (INSERT/EXTRACT, BROADCAST) - Simplify data access and try to get stride 1 access. There are 20 issues (= instructions) costing 1 point each.20
Number of INSERT/EXTRACT instructions: 2
Number of XMM BROADCAST instructions: 18
[SA] More than 20% of the loads are accessing the stack - Perform loop splitting to decrease pressure on registers. This issue costs 2 points.2
Vectorization Roadblocks+105
[SA] Too many paths (99 paths) - Simplify control structure. There are 99 issues ( = paths) costing 1 point each with a malus of 4 points.103
[SA] Non innermost loop (InBetween) - Collapse loop with innermost ones. This issue costs 2 points.2
Inefficient Vectorization+22
+[SA] Presence of special instructions executing on a single port (INSERT/EXTRACT, BROADCAST) - Simplify data access and try to get stride 1 access. There are 20 issues (= instructions) costing 1 point each.20
Number of INSERT/EXTRACT instructions: 2
Number of XMM BROADCAST instructions: 18
[SA] Inefficient vectorization: use of masked instructions - Simplify control structure. The issue costs 2 points.2
Loop 840 - libgromacs_mpi.so.9.0.0+Execution Time: 0 % - Vectorization Ratio: 87.00 % - Vector Length Use: 81.10 %
Loop Computation Issues+256
+[SA] Presence of expensive FP instructions - Perform hoisting, change algorithm, use SVML or proper numerical library or perform value profiling (count the number of distinct input values). There are 64 issues (= instructions) costing 4 points each.256
Number of RCP instructions: 32
Number of RSQRT instructions: 32
Control Flow Issues+3
[SA] Several paths (3 paths) - Simplify control structure or force the compiler to use masked instructions. There are 3 issues ( = paths) costing 1 point each.3
Data Access Issues+45
[SA] Presence of constant non unit stride data access - Use array restructuring, perform loop interchange or use gather instructions to lower a bit the cost. There are 6 issues ( = data accesses) costing 2 point each.12
[SA] Presence of indirect accesses - Use array restructuring or gather instructions to lower the cost. There are 1 issues ( = indirect data accesses) costing 4 point each.4
+[SA] Presence of special instructions executing on a single port (INSERT/EXTRACT, BLEND/MERGE, BROADCAST) - Simplify data access and try to get stride 1 access. There are 27 issues (= instructions) costing 1 point each.27
Number of INSERT/EXTRACT instructions: 3
Number of ZMM BLEND/MERGE instructions: 1
Number of ZMM BROADCAST instructions: 23
[SA] More than 20% of the loads are accessing the stack - Perform loop splitting to decrease pressure on registers. This issue costs 2 points.2
Vectorization Roadblocks+19
[SA] Several paths (3 paths) - Simplify control structure or force the compiler to use masked instructions. There are 3 issues ( = paths) costing 1 point each.3
[SA] Presence of constant non unit stride data access - Use array restructuring, perform loop interchange or use gather instructions to lower a bit the cost. There are 6 issues ( = data accesses) costing 2 point each.12
[SA] Presence of indirect accesses - Use array restructuring or gather instructions to lower the cost. There are 1 issues ( = indirect data accesses) costing 4 point each.4
Inefficient Vectorization+29
+[SA] Presence of special instructions executing on a single port (INSERT/EXTRACT, BLEND/MERGE, BROADCAST) - Simplify data access and try to get stride 1 access. There are 27 issues (= instructions) costing 1 point each.27
Number of INSERT/EXTRACT instructions: 3
Number of ZMM BLEND/MERGE instructions: 1
Number of ZMM BROADCAST instructions: 23
[SA] Inefficient vectorization: use of masked instructions - Simplify control structure. The issue costs 2 points.2
Loop 17554 - libgromacs_mpi.so.9.0.0+Execution Time: 0 % - Vectorization Ratio: 8.66 % - Vector Length Use: 8.02 %
Control Flow Issues+493
[SA] Too many paths (487 paths) - Simplify control structure. There are 487 issues ( = paths) costing 1 point each with a malus of 4 points.491
[SA] Non innermost loop (InBetween) - Collapse loop with innermost ones. This issue costs 2 points.2
Data Access Issues+33
+[SA] Presence of special instructions executing on a single port (INSERT/EXTRACT, BLEND/MERGE, BROADCAST) - Simplify data access and try to get stride 1 access. There are 31 issues (= instructions) costing 1 point each.31
Number of INSERT/EXTRACT instructions: 21
Number of XMM BLEND/MERGE instructions: 6
Number of XMM BROADCAST instructions: 4
[SA] More than 20% of the loads are accessing the stack - Perform loop splitting to decrease pressure on registers. This issue costs 2 points.2
Vectorization Roadblocks+493
[SA] Too many paths (487 paths) - Simplify control structure. There are 487 issues ( = paths) costing 1 point each with a malus of 4 points.491
[SA] Non innermost loop (InBetween) - Collapse loop with innermost ones. This issue costs 2 points.2
Inefficient Vectorization+31
+[SA] Presence of special instructions executing on a single port (INSERT/EXTRACT, BLEND/MERGE, BROADCAST) - Simplify data access and try to get stride 1 access. There are 31 issues (= instructions) costing 1 point each.31
Number of INSERT/EXTRACT instructions: 21
Number of XMM BLEND/MERGE instructions: 6
Number of XMM BROADCAST instructions: 4
×