[PATCH] D45441: [HIP] Add predefined macros __HIPCC__ and __HIP_DEVICE_COMPILE__

Yaxun Liu via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Apr 17 08:30:39 PDT 2018


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 are defined in the official HIP documentation

https://github.com/ROCm-Developer-Tools/HIP/blob/master/docs/markdown/hip_porting_guide.md


https://reviews.llvm.org/D45441





More information about the cfe-commits mailing list