From f4e9b51d35522236df7447734fd5a8b39d7a2be2 Mon Sep 17 00:00:00 2001 From: pensun Date: Wed, 8 Mar 2017 23:37:50 -0600 Subject: [PATCH] fix typo in hip_porting_guide Change-Id: I42553d9a4de2901dfdd57384b52a04e8fb22edde [ROCm/clr commit: 308638c9117883b79a97254e820194229aa68724] --- projects/clr/hipamd/docs/markdown/hip_porting_guide.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/clr/hipamd/docs/markdown/hip_porting_guide.md b/projects/clr/hipamd/docs/markdown/hip_porting_guide.md index 0acdc246f9..721a6fabd7 100644 --- a/projects/clr/hipamd/docs/markdown/hip_porting_guide.md +++ b/projects/clr/hipamd/docs/markdown/hip_porting_guide.md @@ -166,7 +166,7 @@ Both nvcc and hcc make two passes over the code: one for host code and one for d ``` // #ifdef __CUDA_ARCH__ -#ifdef __HIP_DEVICE_COMPILE__ && (__HIP_DEVICE_COMPILE__ == 1) +#if defined(__HIP_DEVICE_COMPILE__) && (__HIP_DEVICE_COMPILE__ == 1) ``` Unlike `__CUDA_ARCH__`, the `__HIP_DEVICE_COMPILE__` value is 0 or 1, and it doesn’t represent the feature capability of the target device.