This is an archive of the discontinued LLVM Phabricator instance.

[OpenMP] Don't pass empty files to nvlink
ClosedPublic

Authored by jhuber6 on Jan 20 2022, 5:34 AM.

Details

Summary

This patch adds and exception to the nvlink wrapper tool to not pass
empty cubin files to the nvlink job. If an empty file is passed to
nvlink it will cause an error indicating that the file could not be
opened. This would occur if the user tried to link object files that
contained offloading code with a file that didnt. This will act as a
workaround until the new OpenMP offloading driver becomes the default.

Diff Detail

Event Timeline

jhuber6 created this revision.Jan 20 2022, 5:34 AM
jhuber6 requested review of this revision.Jan 20 2022, 5:34 AM
Herald added a project: Restricted Project. · View Herald TranscriptJan 20 2022, 5:34 AM
jhuber6 updated this revision to Diff 401646.Jan 20 2022, 8:11 AM

Adding test

This revision is now accepted and ready to land.Jan 20 2022, 8:14 AM
This revision was automatically updated to reflect the committed changes.