This is an archive of the discontinued LLVM Phabricator instance.

[OpenMP] Use the new OpenMP device static library when doing LTO
ClosedPublic

Authored by jhuber6 on May 10 2022, 12:59 PM.

Details

Summary

The previous patches allowed us to create a static library containing
all the device code. This patch uses that library to perform the device
runtime linking late when performing LTO. This in addition to
simplifying the libraries, allows us to transparently handle the runtime
library as-needed without needing Clang to manually pass the necessary
library in the linker wrapper job.

Depends on D125315

Diff Detail

Event Timeline

jhuber6 created this revision.May 10 2022, 12:59 PM
Herald added a project: Restricted Project. · View Herald TranscriptMay 10 2022, 12:59 PM
jhuber6 requested review of this revision.May 10 2022, 12:59 PM
Herald added a project: Restricted Project. · View Herald TranscriptMay 10 2022, 12:59 PM
jdoerfert accepted this revision.May 13 2022, 7:37 AM

LG, nice!

This revision is now accepted and ready to land.May 13 2022, 7:37 AM