This is an archive of the discontinued LLVM Phabricator instance.

[OpenMP] Introduce new flags to assert thread and team usage in the runtime
ClosedPublic

Authored by jhuber6 on Oct 7 2021, 12:47 PM.

Details

Summary

This patch adds two flags to be supported for the new runtime. The flags
are -fopenmp-assume-threads-oversubscription and
-fopenmp-assume-teams-oversubscription`. These add global values that
can be checked by the work sharing runtime functions to make better
judgements about how to distribute work between the threads.

Diff Detail

Event Timeline

jhuber6 created this revision.Oct 7 2021, 12:47 PM
jhuber6 requested review of this revision.Oct 7 2021, 12:47 PM
Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptOct 7 2021, 12:47 PM
jdoerfert accepted this revision.Oct 7 2021, 6:39 PM

LG, one nit wrt. spelling

clang/include/clang/Basic/LangOptions.def
247–248
This revision is now accepted and ready to land.Oct 7 2021, 6:39 PM
clang/lib/Frontend/CompilerInvocation.cpp