Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
neon60 committed May 23, 2024
1 parent 849003d commit 9444143
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions docs/how-to/hip_porting_guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -156,22 +156,22 @@ Unlike `__CUDA_ARCH__`, the `__HIP_DEVICE_COMPILE__` value is 1 or undefined, an
### Compiler Defines: Summary
|Define | HIP-Clang | nvcc | Other (GCC, ICC, Clang, etc.)
|--- | --- | --- |---|
|HIP-related defines:|
|`__HIP_PLATFORM_AMD__`| Defined | Undefined | Defined if targeting AMD platform; undefined otherwise |
|`__HIP_PLATFORM_NVIDIA__`| Undefined | Defined | Defined if targeting NVIDIA platform; undefined otherwise |
|`__HIP_DEVICE_COMPILE__` | 1 if compiling for device; undefined if compiling for host |1 if compiling for device; undefined if compiling for host | Undefined
|`__HIPCC__` | Defined | Defined | Undefined
|`__HIP_ARCH_*` |0 or 1 depending on feature support (see below) | 0 or 1 depending on feature support (see below) | 0
|nvcc-related defines:|
|`__CUDACC__` | Defined if source code is compiled by nvcc; undefined otherwise | Undefined
|`__NVCC__` | Undefined | Defined | Undefined
|`__CUDA_ARCH__` | Undefined | Unsigned representing compute capability (e.g., "130") if in device code; 0 if in host code | Undefined
|Define | HIP-Clang | NVCC | Other (GCC, ICC, Clang, etc.)
|--- | --- | --- |--- |
|HIP-related defines: |
|`__HIP_PLATFORM_AMD__` | Defined | Undefined | Defined if targeting AMD platform; undefined otherwise |
|`__HIP_PLATFORM_NVIDIA__` | Undefined | Defined | Defined if targeting NVIDIA platform; undefined otherwise |
|`__HIP_DEVICE_COMPILE__` | 1 if compiling for device; undefined if compiling for host | 1 if compiling for device; undefined if compiling for host | Undefined
|`__HIPCC__` | Defined | Defined | Undefined

Check failure on line 165 in docs/how-to/hip_porting_guide.md

View workflow job for this annotation

GitHub Actions / Documentation / Markdown

Hard tabs

docs/how-to/hip_porting_guide.md:165:13 MD010/no-hard-tabs Hard tabs [Column: 13] https://github.com/DavidAnson/markdownlint/blob/v0.28.2/doc/md010.md
|`__HIP_ARCH_*` | 0 or 1 depending on feature support (see below) | 0 or 1 depending on feature support (see below) | 0
|nvcc-related defines: |
|`__CUDACC__` | Defined if source code is compiled by nvcc; undefined otherwise | Undefined

Check failure on line 168 in docs/how-to/hip_porting_guide.md

View workflow job for this annotation

GitHub Actions / Documentation / Markdown

Hard tabs

docs/how-to/hip_porting_guide.md:168:15 MD010/no-hard-tabs Hard tabs [Column: 15] https://github.com/DavidAnson/markdownlint/blob/v0.28.2/doc/md010.md
|`__NVCC__` | Undefined | Defined | Undefined

Check failure on line 169 in docs/how-to/hip_porting_guide.md

View workflow job for this annotation

GitHub Actions / Documentation / Markdown

Hard tabs

docs/how-to/hip_porting_guide.md:169:13 MD010/no-hard-tabs Hard tabs [Column: 13] https://github.com/DavidAnson/markdownlint/blob/v0.28.2/doc/md010.md
|`__CUDA_ARCH__` | Undefined | Unsigned representing compute capability (e.g., "130") if in device code; 0 if in host code | Undefined

Check failure on line 170 in docs/how-to/hip_porting_guide.md

View workflow job for this annotation

GitHub Actions / Documentation / Markdown

Hard tabs

docs/how-to/hip_porting_guide.md:170:17 MD010/no-hard-tabs Hard tabs [Column: 17] https://github.com/DavidAnson/markdownlint/blob/v0.28.2/doc/md010.md
|hip-clang-related defines:|
|`__HIP__` | Defined | Undefined | Undefined
|HIP-Clang common defines:|
|`__clang__` | Defined | Defined | Undefined | Defined if using Clang; otherwise undefined
|`__HIP__` | Defined | Undefined | Undefined

Check failure on line 172 in docs/how-to/hip_porting_guide.md

View workflow job for this annotation

GitHub Actions / Documentation / Markdown

Hard tabs

docs/how-to/hip_porting_guide.md:172:13 MD010/no-hard-tabs Hard tabs [Column: 13] https://github.com/DavidAnson/markdownlint/blob/v0.28.2/doc/md010.md
|HIP-Clang common defines: |
|`__clang__` | Defined | Defined | Undefined | Defined if using Clang; otherwise undefined

Check failure on line 174 in docs/how-to/hip_porting_guide.md

View workflow job for this annotation

GitHub Actions / Documentation / Markdown

Hard tabs

docs/how-to/hip_porting_guide.md:174:13 MD010/no-hard-tabs Hard tabs [Column: 13] https://github.com/DavidAnson/markdownlint/blob/v0.28.2/doc/md010.md
## Identifying Architecture Features
Expand Down

0 comments on commit 9444143

Please sign in to comment.