[PATCH] D60620: [HIP] Support -offloading-target-id

2019-04-12 Thread Artem Belevich via Phabricator via cfe-commits
tra added a subscriber: arsenm. tra added a comment. @arsenm Matt, FYI, this patch seems to be a continuation of D59863 you've commented on. CHANGES SINCE LAST ACTION https://reviews.llvm.org/D60620/new/ https://reviews.llvm.org/D60620 ___

[PATCH] D60620: [HIP] Support -offloading-target-id

2019-04-12 Thread Artem Belevich via Phabricator via cfe-commits
tra added a subscriber: echristo. tra added a comment. It looks like you are solving two problems here. a) you want to create multiple device passes for the same GPU, but with different options. b) you may want to pass different compiler options to different device compilations. The patch effect

[PATCH] D60620: [HIP] Support -offloading-target-id

2019-04-12 Thread Yaxun Liu via Phabricator via cfe-commits
yaxunl created this revision. yaxunl added reviewers: tra, b-sumner, ashi1, scchan, t-tye. Herald added a subscriber: mgorny. This patch introduces a new option -offloading-target-id for HIP. Offloading target id is a generalization of CUDA/HIP GPU arch. It is a device name plus optional feature