This is an archive of the discontinued LLVM Phabricator instance.

[HIP] Remove workaround in __clang_hip_runtime_wrapper.h
ClosedPublic

Authored by yaxunl on Jul 15 2021, 8:18 AM.

Details

Summary

Remove the workaround for -fopenmp in __clang_hip_runtime_wrapper.h
since it causes device functions in HIP wrapper headers disabled when
compiling HIP program with -fopenmp.

Diff Detail

Event Timeline

yaxunl requested review of this revision.Jul 15 2021, 8:18 AM
yaxunl created this revision.

Since this is not easily tested with lit tests, I added a test to llvm-test-suite: https://reviews.llvm.org/D106069

My understanding is that OpenMP no longer uses __clang_hip_runtime_wrapper.h, so we should be able to remove this workaround.

OK from the openmp gpu side as far as I can tell. This is probably another instance of where we really wanted _OPENMP_TARGET or similar.

ashi1 accepted this revision.Jul 15 2021, 9:33 AM

LGTM!

This revision is now accepted and ready to land.Jul 15 2021, 9:33 AM
This revision was landed with ongoing or failed builds.Jul 21 2021, 12:16 PM
This revision was automatically updated to reflect the committed changes.
Herald added a project: Restricted Project. · View Herald TranscriptJul 21 2021, 12:16 PM