This revision was automatically updated to reflect the committed changes.
yaxunl marked an inline comment as done.
Closed by commit rC330824: [HIP] Add predefined macros __HIPCC__ and
__HIP_DEVICE_COMPILE__ (authored by yaxunl, committed by ).
Changed prior to commit:
yaxunl marked an inline comment as done.
yaxunl added inline comments.
Comment at: lib/Frontend/InitPreprocessor.cpp:473
+ Builder.defineMacro("__HIP_DEVICE_COMPILE__");
+ }
}
rjmccall wrote:
> I assume these names are defined by the HIP spec.
Yes these
rjmccall accepted this revision.
rjmccall added a comment.
This revision is now accepted and ready to land.
If so, LGTM.
Comment at: lib/Frontend/InitPreprocessor.cpp:473
+ Builder.defineMacro("__HIP_DEVICE_COMPILE__");
+ }
}
I assume these names are
yaxunl created this revision.
yaxunl added a reviewer: tra.
also disable `__CUDA_ARCH__` for HIP.
This patch depends on https://reviews.llvm.org/D44984
https://reviews.llvm.org/D45441
Files:
lib/Frontend/InitPreprocessor.cpp
test/Preprocessor/predefined-macros.c
Index: