Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
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. |
clang/test/Driver/hip-syntax-only.hip | ||
---|---|---|
8 | won't -fcuda-is-device be sufficient? that's option specific to device-side compilation. |
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. |
I'd include -target <GPU> and a comment describing that we're making sure that both host and device compilations are still executed.