This is an archive of the discontinued LLVM Phabricator instance.

[HIP] Fix device only compilation
ClosedPublic

Authored by yaxunl on Nov 13 2018, 2:03 PM.

Details

Summary

Fix a bug causing host code being compiled when --cude-device-only is set.

Diff Detail

Repository
rC Clang

Event Timeline

yaxunl created this revision.Nov 13 2018, 2:03 PM
tra accepted this revision.Nov 13 2018, 2:54 PM

Do I understand it correctly that the bug appears to affect HIP compilation only?

This revision is now accepted and ready to land.Nov 13 2018, 2:54 PM
In D54496#1297710, @tra wrote:

Do I understand it correctly that the bug appears to affect HIP compilation only?

Yes. Only HIP.

This revision was automatically updated to reflect the committed changes.