This is an archive of the discontinued LLVM Phabricator instance.

[driver][hip] Skip bundler if host action is nothing.
ClosedPublic

Authored by hliao on Oct 8 2019, 9:40 AM.

Diff Detail

Event Timeline

hliao created this revision.Oct 8 2019, 9:40 AM
Herald added a project: Restricted Project. · View Herald TranscriptOct 8 2019, 9:40 AM
Herald added a subscriber: cfe-commits. · View Herald Transcript
tra accepted this revision.Oct 8 2019, 10:49 AM
tra added inline comments.
clang/test/Driver/hip-syntax-only.hip
8

I'd include -target <GPU> and a comment describing that we're making sure that both host and device compilations are still executed.

This revision is now accepted and ready to land.Oct 8 2019, 10:49 AM
hliao marked an inline comment as done.Oct 8 2019, 10:51 AM
hliao added inline comments.
clang/test/Driver/hip-syntax-only.hip
8

won't -fcuda-is-device be sufficient? that's option specific to device-side compilation.

This revision was automatically updated to reflect the committed changes.
tra added inline comments.Oct 8 2019, 2:06 PM
clang/test/Driver/hip-syntax-only.hip
8

It's sufficient, but we're currently comparing sort of apples (-fcuda-is-device) and oranges (-triple FOO) on these two lines. Changing it into -triple GPU -fcuda-is-device vs. -triple HOST would make it easier to understand what's the intent here.