also disable __CUDA_ARCH__ for HIP.
This patch depends on https://reviews.llvm.org/D44984
Paths
| Differential D45441
[HIP] Add predefined macros __HIPCC__ and __HIP_DEVICE_COMPILE__ ClosedPublic Authored by yaxunl on Apr 9 2018, 7:49 AM.
Details
Diff Detail Event TimelineComment Actions If so, LGTM.
This revision is now accepted and ready to land.Apr 14 2018, 6:21 AM yaxunl added inline comments.
yaxunl added a parent revision: D44984: [HIP] Add hip input kind and codegen for kernel launching.Apr 17 2018, 12:51 PM Closed by commit rC330824: [HIP] Add predefined macros __HIPCC__ and __HIP_DEVICE_COMPILE__ (authored by yaxunl). · Explain WhyApr 25 2018, 6:36 AM This revision was automatically updated to reflect the committed changes. yaxunl marked an inline comment as done.
Revision Contents
Diff 141648 lib/Frontend/InitPreprocessor.cpp
test/Preprocessor/predefined-macros.c
|
I assume these names are defined by the HIP spec.