This is an archive of the discontinued LLVM Phabricator instance.

[OpenMP][OMPT][NFC] Update tests for test lock
ClosedPublic

Authored by Thyre on Jun 15 2023, 7:45 AM.

Details

Summary

In issue #63261, it was discovered that the functions omp_test_lock and
omp_test_nest_lock dispatch the callbacks
ompt_callback_mutex_acquire and ompt_callback_mutex_acquired
incorrectly. Instead of the kinds ompt_mutex_test_lock /
ompt_mutex_test_nest_lock the kinds ompt_mutex_lock and
ompt_mutex_nest_lock are used.

As this is non-conforming with the OpenMP standard, the tests were
updated to reflect the OpenMP standard.

Diff Detail

Event Timeline

Thyre created this revision.Jun 15 2023, 7:45 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 15 2023, 7:45 AM
Thyre requested review of this revision.Jun 15 2023, 7:45 AM
protze.joachim accepted this revision.Jun 26 2023, 12:59 AM

The whole stack looks good to me. My only concern is that with separate patches, the first two patches will lead to failing test pipelines.

This revision is now accepted and ready to land.Jun 26 2023, 12:59 AM
protze.joachim closed this revision.Jul 7 2023, 5:56 AM

Looks like a single commit cannot close multiple reviews.