fix typo in hip_porting_guide

Change-Id: I42553d9a4de2901dfdd57384b52a04e8fb22edde


[ROCm/clr commit: 308638c911]
This commit is contained in:
pensun
2017-03-08 23:37:50 -06:00
parent 3152223be6
commit f4e9b51d35
@@ -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.