This is an archive of the discontinued LLVM Phabricator instance.

[AMDGPU][Libomptarget] Delete g_atmi_initialized
ClosedPublic

Authored by pdhaliwal on May 20 2021, 8:11 AM.

Details

Summary

This patch drops g_atmi_initialized and inlines the Initialize &
Finalize methods from Runtime class.

Diff Detail

Event Timeline

pdhaliwal created this revision.May 20 2021, 8:11 AM
pdhaliwal requested review of this revision.May 20 2021, 8:11 AM
Herald added a project: Restricted Project. · View Herald TranscriptMay 20 2021, 8:11 AM
pdhaliwal added inline comments.May 20 2021, 8:13 AM
openmp/libomptarget/plugins/amdgpu/impl/machine.cpp
16

This was redundant.

openmp/libomptarget/plugins/amdgpu/impl/rt.h
57–62

This needs to move to D102692.

openmp/libomptarget/plugins/amdgpu/impl/system.cpp
186

This check is always true.

openmp/libomptarget/plugins/amdgpu/impl/rt.h
57–62

looks like a separate thing - can we reduce this patch to deleting the variable and the dead branches on it, and shuffle code around + inline things in a separate one?

Removed inlining from this patch and rebased.

JonChesterfield accepted this revision.May 25 2021, 1:22 AM

Great, thanks!

This revision is now accepted and ready to land.May 25 2021, 1:22 AM
foad removed a subscriber: foad.May 25 2021, 2:00 AM
This revision was landed with ongoing or failed builds.May 26 2021, 3:47 AM
This revision was automatically updated to reflect the committed changes.