This is an archive of the discontinued LLVM Phabricator instance.

[OpenMP][libomptarget] Fix __tgt_rtl_run_target_team_region_async API with missing parameter
ClosedPublic

Authored by carlo.bertolli on Dec 16 2021, 9:47 AM.

Details

Summary

I missed the async info parameter in the first version of this API.

Diff Detail

Event Timeline

carlo.bertolli created this revision.Dec 16 2021, 9:47 AM
carlo.bertolli requested review of this revision.Dec 16 2021, 9:47 AM
JonChesterfield accepted this revision.Dec 16 2021, 9:49 AM

LG. Bit surprised the previous version built cleanly, extern C function type different to header should have been rejected

This revision is now accepted and ready to land.Dec 16 2021, 9:49 AM
openmp/libomptarget/plugins/amdgpu/src/rtl.cpp
2289

Ah, that's why. No extern C here so no error checking, just defined an unrelated function

It looks like https://reviews.llvm.org/D115823 will take a bit longer to be merged. I will merge this in to fix the API error, as it can go in first.

Herald added a project: Restricted Project. · View Herald TranscriptDec 17 2021, 7:59 AM

Yep, I need to revise that patch. Don't like how easy it is to misspell or mistype these functions, going to look for a fix for that