diff --git a/docs/markdown/hip_porting_guide.md b/docs/markdown/hip_porting_guide.md index fe1972e3b3..504f902c0c 100644 --- a/docs/markdown/hip_porting_guide.md +++ b/docs/markdown/hip_porting_guide.md @@ -147,11 +147,11 @@ directory names. ### Identifying HIP Target Platform All HIP projects target either AMD or NVIDIA platform. The platform affects which headers are included and which libraries are used for linking. -- `HIP_PLATFORM_AMD` is defined if the HIP platform targets AMD. -Note, `HIP_PLATFORM_HCC` was previously defined if the HIP platform targeted AMD, it is deprecated. +- `__HIP_PLATFORM_AMD__` is defined if the HIP platform targets AMD. +Note, `__HIP_PLATFORM_HCC__` was previously defined if the HIP platform targeted AMD, it is deprecated. -- `HIP_PLATFORM_NVDIA` is defined if the HIP platform targets NVIDIA. -Note, `HIP_PLATFORM_NVCC` was previously defined if the HIP platform targeted NVIDIA, it is deprecated. +- `__HIP_PLATFORM_NVDIA__` is defined if the HIP platform targets NVIDIA. +Note, `__HIP_PLATFORM_NVCC__` was previously defined if the HIP platform targeted NVIDIA, it is deprecated. ### Identifying the Compiler: hip-clang or nvcc Often, it's useful to know whether the underlying compiler is HIP-Clang or nvcc. This knowledge can guard platform-specific code or aid in platform-specific performance tuning.