This is an archive of the discontinued LLVM Phabricator instance.

[OpenMP] Add info for device table changes
ClosedPublic

Authored by jhuber6 on Apr 15 2021, 2:30 PM.

Details

Summary

This patch adds a feature to print information whenever the host-device pointer
mapping table is changed by inserting or removing an entry. This introduces a
new bit field for LIBOMPTARGET_INFO at position 0x8.

Diff Detail

Event Timeline

jhuber6 created this revision.Apr 15 2021, 2:30 PM
jhuber6 requested review of this revision.Apr 15 2021, 2:30 PM
jdoerfert accepted this revision.Apr 15 2021, 3:20 PM

LG, thx

This revision is now accepted and ready to land.Apr 15 2021, 3:20 PM
grokos added a subscriber: grokos.Apr 15 2021, 3:32 PM
grokos added inline comments.
openmp/libomptarget/src/device.cpp
267–271

Do you really want to use OMP_INFOTYPE_ALL here? Upon removal of elements, we use OMP_INFOTYPE_CHANGED.

jhuber6 added inline comments.Apr 15 2021, 3:33 PM
openmp/libomptarget/src/device.cpp
267–271

Thanks for catching that, I had an if statement there before but I removed it and forgot to change that part back.

This revision was automatically updated to reflect the committed changes.