From 6a648b9d7f54ecd5c0bfb1e2d6f1f60626744c8d Mon Sep 17 00:00:00 2001 From: "Yaxun (Sam) Liu" Date: Tue, 28 Aug 2018 09:55:18 -0400 Subject: [PATCH] Fix documentation about hip-clang macros [ROCm/clr commit: 4335feba4764e132163486b1839eb176039381f8] --- projects/clr/hipamd/docs/markdown/hip_porting_guide.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/projects/clr/hipamd/docs/markdown/hip_porting_guide.md b/projects/clr/hipamd/docs/markdown/hip_porting_guide.md index f7d5d34bd3..2487d16e09 100644 --- a/projects/clr/hipamd/docs/markdown/hip_porting_guide.md +++ b/projects/clr/hipamd/docs/markdown/hip_porting_guide.md @@ -182,7 +182,7 @@ Unlike `__CUDA_ARCH__`, the `__HIP_DEVICE_COMPILE__` value is 1 or undefined, an ### Compiler Defines: Summary |Define | hcc | hip-clang | nvcc | Other (GCC, ICC, Clang, etc.) -|--- | --- | --- |---| +|--- | --- | --- | --- |---| |HIP-related defines:| |`__HIP_PLATFORM_HCC___`| Defined | Defined | Undefined | Defined if targeting hcc platform; undefined otherwise | |`__HIP_PLATFORM_NVCC___`| Undefined | Undefined | Defined | Defined if targeting nvcc platform; undefined otherwise | @@ -198,7 +198,6 @@ Unlike `__CUDA_ARCH__`, the `__HIP_DEVICE_COMPILE__` value is 1 or undefined, an |`__HCC_ACCELERATOR__` | Nonzero if in device code; otherwise undefined | Undefined | Undefined | Undefined |hip-clang-related defines:| |`__HIP__` | Undefined | Defined | Undefined | Undefined -|`__HCC_ACCELERATOR__` | Nonzero if in device code; otherwise undefined | Undefined | Undefined | Undefined |hcc/hip-clang common defines:| |`__clang__` | Defined | Defined | Undefined | Defined if using Clang; otherwise undefined