Change-Id: I42553d9a4de2901dfdd57384b52a04e8fb22edde
Этот коммит содержится в:
pensun
2017-03-08 23:37:50 -06:00
родитель 7488d8c7fa
Коммит 7290cb07ec
+1 -1
Просмотреть файл
@@ -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.