[Openmp-commits] [PATCH] D39890: [OMPT] Fix assertion for OpenMP code generated with outdated compilers

Joachim Protze via Phabricator via Openmp-commits openmp-commits at lists.llvm.org
Fri Nov 10 05:31:44 PST 2017


protze.joachim added inline comments.


================
Comment at: runtime/src/kmp_csupport.cpp:1777
+        if(!singleWarning){
+          __kmp_printf("OMPT Warning: The used compiler is outdated! The provided kind of worksharing event in OMPT is not reliable.\n");
+          singleWarning=1;
----------------
Hahnfeld wrote:
> omalyshe wrote:
> > I'd suggest using KMP_WARNING to emit standard RTL warning. 
> > The message (in the message catalog) could be the following: "Cannot determine workshare type; using the default (loop) instead".
> > 
> > Also, it would be enough if only one thread emitted the warning. 
> > 
> In addition I think it would also be enough to diagnose in `__kmp_for_static_init`: The compiler will either generate the information for both calls or not at all.
Is there a standard approach to only provide a single warning? Looking at other warnings, they are not filtered at all.


https://reviews.llvm.org/D39890





More information about the Openmp-commits mailing list