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

Olga Malysheva via Phabricator via Openmp-commits openmp-commits at lists.llvm.org
Fri Nov 10 05:00:48 PST 2017


omalyshe 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;
----------------
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. 



https://reviews.llvm.org/D39890





More information about the Openmp-commits mailing list