This is an archive of the discontinued LLVM Phabricator instance.

Shutdown library on Windows if possible for better OMPT behavior.
ClosedPublic

Authored by hbae on Sep 27 2018, 1:10 PM.

Details

Summary

On Windows, child workers are terminated by the parent during the normal
program exit process (ExitProcess()) and they are not able to finish generating
their OpenMP events. We can force manual library shut down in __kmpc_end() to
fix this at least for the cases where __kmpc_end() is properly inserted.

Diff Detail

Repository
rL LLVM

Event Timeline

hbae created this revision.Sep 27 2018, 1:10 PM
This revision is now accepted and ready to land.Sep 28 2018, 8:40 AM
This revision was automatically updated to reflect the committed changes.