Debian Codegraph @

OPEN_ISSUES

raw
1
2 OPARI2 2.0.9 OPEN ISSUES
3 ========================
4 Effective: Mar 2025
5
6 This file lists known limitations and unimplemented features of
7 the OPARI2 component.
8
9 ------------------------------------------------------------------------------
10
11 * Platform support
12
13 - OPARI2 has been tested on the following platforms:
14 + HPE/Cray EX systems with PrgEnvs cray, intel, gnu, amd, aocc.
15 + various Linux (Intel, AMD, ARM) clusters with GNU, Intel,
16 NVIDIA, and AMD compilers. Note that some compilers are
17 based on Clang. Note that Fujitsu compilers haven't been tested
18 thoroughly, Fujitsu cross-compilers haven't been tested at all.
19 The provided configure options (see INSTALL) may provide a good
20 basis for building and testing the toolset on other systems.
21
22 - The following platforms have not been tested recently:
23 + Intel Xeon Phi (KNL)
24 + IBM Blue Gene and IBM Power systems
25 + Cray XC, XT, XE, XK
26 However the supplied build system might still work on these
27 systems.
28
29 - The following platforms have not been tested:
30 + NEC systems
31
32 --------------------------------------------------------------------------------
33
34 Known issues
35 ------------
36
37 - All languages
38
39 + OPARI2, per default, processes source files before the
40 compiler preprocessor, so macros and included files are not
41 processed. Conditionally compiled source code is also not
42 resolved and can therefore result in erroneous instrumentation
43 of partial OpenMP directives. These limitation can be resolved
44 by passing preprocessed code to OPARI2 using the
45 --preprocessed flag.
46
47 + The instrumented source files generated by OPARI2 may confuse
48 automatic dependency tracking by "make", "autotools", etc.
49 For autotools, configure with "--disable-dependency-tracking".
50
51 + Literal file-filter rules like "INCLUDE bt.f" for files that
52 will be processed by OPARI2 do not work, as OPARI2 changes the
53 file name (e.g., to bt.opari.f).
54
55 + Some OpenMP compilers (e.g. PGI) are non-standard-conforming
56 in the way they process OpenMP directives by not allowing
57 macro replacement of OpenMP directive parameters. This results
58 in error messages containing references to POMP_DLIST_#####
59 where ##### is a five-digit number. In this case, try to use
60 the OPARI2 option "--nodecl". This is unfortunately not a
61 perfect workaround, as this can trigger other errors in some
62 rare cases.
63
64 + When compiling with the PGI compiler version 10.1, local
65 variables that are defined after an OpenMP for directive share
66 the same memory address. This breaks the OPARI2
67 instrumentation for task tracking. Our recommendation is to
68 use a newer compiler version, According to our tests, later
69 compiler versions have fixed this issues. We tested with PGI
70 compiler version 11.7.
71
72 + Sometimes instrumentation of OpenMP source files work, but the
73 traces get enormously large because the application is using
74 large numbers (millions) of small OpenMP synchronization
75 operations like atomic, locks or flushes which are
76 instrumented by default. Also, in that case, the
77 instrumentation overhead might become excessive.
78
79 In that case, you can tell OPARI2 not to instrument these
80 directives by using the
81 "--disable=omp[:directive|group[:inner],...]" option. Valid
82 values for directive are:
83
84 atomic, critical, flush, locks, master, ordered, single
85
86 or "sync" which disables all of the above.
87
88 Of course, then these directives are not measured and you
89 should keep this in mind, when you analyze the results.
90 Although they do not show up in the analysis report that the
91 application might still have some performance problem
92 because. This may especially be the case, because of too many
93 OpenMP synchronization calls!
94
95 + Instrumented Intel Xeon-Phi offload regions cause compile
96 errors. You need to manually guard the instrumented POMP2
97 calls by "#ifndef __INTEL_OFFLOAD" preprocessor statements to
98 prevent them from being compiled. The next OPARI2 release will
99 automate this process.
100
101 + Object files created by the Intel compiler with interprocedural
102 optimization (-ipo) cannot be analyzed by nm for startup
103 initialization of the OpenMP region handles. Workaround is to
104 use only -ip during compilation or to use runtime initialization
105 of the OpenMP region handles inside of the analysis tool.
106
107 + The option --omp-tpd cannot be used on Fujitsu systems (K,
108 FX10, FX100).
109
110 + Parentheses used in chunksize calculations within a schedule
111 clause, e.g., schedule(dynamic, (a)*(b)), will cause a
112 compilation error. As a workaround, you can calculate the
113 chuncksize into a temporary variable prior to its usage in the
114 schedule clause.
115
116
117 + For combined constructs (like 'omp parallel <construct>'),
118 some clauses not yet handled by OPARI2 (such as 'simd') may be
119 incorrectly added to the 'omp parallel' clause during the
120 source-to-source translation. As a workaround, the combined
121 construct can be manually split into an 'omp parallel' region
122 and the remaining construct.
123
124 - Fortran:
125
126 + The !$OMP END DO and !$OMP END PARALLEL DO directives are required
127 (and are not optional as described in the OpenMP specification) for
128 F77 style do loops which end with a lable and continue statement.
129
130 + The atomic expression controlled by a !$OMP ATOMIC directive has
131 to be on a line all by itself in fixed form source files.
132
133 + The !$OMP END ATOMIC directive must not be used if it is
134 optional. This directive is optional except if the capture
135 clause is used. In this case the instrumentation of atomic
136 directives needs to be disabled via by passing
137 --disable=omp:atomic to opari2.
138
139 + The Fortran95 statement terminator (";") is not handled correctly
140 when it is used within parallel loops.
141
142 + If an #ifdef block is used at the beginning of the variable
143 definition part, instrumentation is incorrectly inserted within
144 the block and not compiled later when the evaluation is false.
145
146 + Some Fortran compilers (e.g., Sun) don't fully support C
147 preprocessor commands, especially the "#line" commands. In
148 case you track a compilation error on a OPARI2
149 modified/instrumented file down to such a statement, try using
150 "--nosrc" as this suppresses the generation of "#line"
151 statements. (With the Sun Fortran compiler, using "-xpp=cpp"
152 is a better workaround.)
153
154 + The first SECTION directive inside a SECTIONS workshare directive
155 is required (and is not optional as described in the OpenMP
156 specification).
157
158 + Fortran .f files are identified as Fortran77 files even if
159 they contain Fortran90 code. You need to manually add the
160 --f90 option to process these files successfully if renaming is
161 not an option.
162
163 + If you use a fixed form Fortran and override the fixed form
164 requirement by a compiler switch you might need to add
165 --free-form to the OPARI2 commandline to get a compilable
166 instrumentation. Use --fix-form analogously.
167
168 + OPARI2 requires that the program is included in a PROGRAM block.
169 Using the compilation unit as implicit PROGRAM block will result
170 in erroneous code.
171
172 + Compiler specific directives starting with "!DIR$" need to be
173 followed by a whitespace character before the directive keyword.
174
175 + The clauses 'num_threads' and 'if' to the parallel directive
176 must not reside as a sole clause on a line.
177
178 + OpenMP directives that span over several lines must not
179 contain preprocessor directives. This is a regression from
180 OPARI2 version 1.1.4.
181
182 + The default(none) clause to the parallel directive must not be
183 used in a continuation line but on the same line as the
184 parallel directive.
185
186 + Strings within a pair of parenthesis, e.g., (..., msg="my msg"),
187 must either appear on a single line or the closing parenthesis
188 needs to appear on a line following the end quotation mark of
189 the string. Otherwise, include statements might appear not at
190 the correct place.
191
192 + OPARI2 does not handle 'interface ... end interface'
193 correctly. If the name 'interface' (case-insensitive) appears
194 in a variable name, OPARI2 might produce non-functional
195 code. As a workaround, rename this variable.
196
197 + OPARI2 generates sources files containing COMMON
198 statements. COMMON statements are considered to be obsolescent
199 in Fortran 2018. Compilations using options that require
200 Fortran 2018, like gfortran's '-std=f2018', may fail. As a
201 workaround, omit the option.
202
203 + A multi-line USE statement that contains OPARI2-relevant
204 keywords in lines other than the first line are messed up by
205 OPARI2 and prevent compilation of the generated code. Please
206 keep the entire USE statement in a single line.
207
208 - C/C++:
209
210 + Structured blocks describing the extent of an OpenMP pragma
211 need to be either compound statements {....}, while loops, or
212 simple statements. In addition, for loops are supported after
213 <omp for> and <omp parallel for pragmas>. Complex statements
214 like if-then-else or do-while need to be enclosed in a block (
215 {....} ).
216 As an example: OPARI2 generates erroneous code for braceless
217 nested for-loops with if-else in the inner for-loop's body. As
218 a workaround, add braces around the body of the outer
219 for-loop.
220
221 + C99 6.10.9 _Pragma operators are not supported.
222
223 + Codes relying on the definition of macros to select specific
224 features from system header files, e.g., __STDC_CONSTANT_MACROS
225 or _GNU_SOURCE, need to define these macros on the compiler
226 command line rather than in header or source files.
227
228 It is planned to address these limitations in future releases.
229
230
231 --------------------------------------------------------------------------------
232
233 Please report bugs, wishes, and suggestions to <[email protected]>.