This is an archive of the discontinued LLVM Phabricator instance.

[OpenMP] Don't set device runtime debugging flags if using '-nogpulib'
ClosedPublic

Authored by jhuber6 on May 10 2022, 7:00 AM.

Details

Summary

We use globals to configure debugging at compile-time for the device
runtime. Because these are only used by the OpenMP runtime we shouldn't
define them if we aren't using the device runtime. When a user passes in
'-nogpulib' this indicates that we are not using the device runtime, so
we should check for the precense of this flag and not emit these globals
if used.

Diff Detail

Event Timeline

jhuber6 created this revision.May 10 2022, 7:00 AM
Herald added a project: Restricted Project. · View Herald TranscriptMay 10 2022, 7:00 AM
jhuber6 requested review of this revision.May 10 2022, 7:00 AM
Herald added a project: Restricted Project. · View Herald TranscriptMay 10 2022, 7:00 AM

Not actually tested, is it?

Not actually tested, is it?

Should be, we already have a test for not emitting these when the host-or file path is empty, I just reused the same tests but set the flags to use nogpulib instead

This revision is now accepted and ready to land.May 10 2022, 9:20 AM