From 6798169f4d33114f5ed213d305fa07c9fd9efc02 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/hip commit: 8c0860df88e6507e0e3989aade5d322dd8ad5f14] --- projects/hip/docs/markdown/hip_porting_guide.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/projects/hip/docs/markdown/hip_porting_guide.md b/projects/hip/docs/markdown/hip_porting_guide.md index f7d5d34bd3..2487d16e09 100644 --- a/projects/hip/docs/markdown/hip_porting_guide.md +++ b/projects/hip/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