fix typo in hip_porting_guide
Change-Id: I42553d9a4de2901dfdd57384b52a04e8fb22edde
Этот коммит содержится в:
@@ -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 doesnt represent the feature capability of the target device.
|
||||
|
||||
Ссылка в новой задаче
Block a user