Skip to content

Commit 69becfc

Browse files
authored
SWDEV-514685 - Update documentation 2025-02-11 (#25)
Co-authored-by: Istvan Kiss <[email protected]>
1 parent 5eeebdb commit 69becfc

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+3320
-1881
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
.*
22
!.gitignore
3+
!.spellcheck.local.yaml
34
*.o
45
*.exe
56
*.swp

.spellcheck.local.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
matrix:
2+
- name: Markdown
3+
sources:
4+
- ['!docs/doxygen/mainpage.md']
5+
- name: reST
6+
sources:
7+
- []
8+
- name: Cpp
9+
sources:
10+
- ['include/hip/*']

.wordlist.txt

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,19 @@ APUs
77
AQL
88
AXPY
99
asm
10-
Asynchrony
10+
asynchrony
1111
backtrace
1212
Bitcode
1313
bitcode
1414
bitcodes
15+
blockDim
16+
blockIdx
1517
builtins
1618
Builtins
1719
CAS
1820
clr
1921
compilable
22+
constexpr
2023
coroutines
2124
Ctx
2225
cuBLASLt
@@ -51,6 +54,7 @@ FNUZ
5154
fp
5255
gedit
5356
GPGPU
57+
gridDim
5458
GROMACS
5559
GWS
5660
hardcoded
@@ -87,6 +91,7 @@ iteratively
8791
Lapack
8892
latencies
8993
libc
94+
libhipcxx
9095
libstdc
9196
lifecycle
9297
linearizing
@@ -97,6 +102,7 @@ makefile
97102
Malloc
98103
malloc
99104
MALU
105+
maxregcount
100106
MiB
101107
memset
102108
multicore
@@ -118,13 +124,15 @@ overindexing
118124
oversubscription
119125
overutilized
120126
parallelizable
127+
parallelized
121128
pixelated
122129
pragmas
123130
preallocated
124131
preconditioners
125132
predefining
126133
prefetched
127134
preprocessor
135+
printf
128136
profilers
129137
PTX
130138
PyHIP
@@ -137,6 +145,7 @@ rocgdb
137145
ROCm's
138146
rocTX
139147
roundtrip
148+
rst
140149
RTC
141150
RTTI
142151
rvalue
@@ -149,10 +158,12 @@ sinewave
149158
SOMA
150159
SPMV
151160
structs
161+
struct's
152162
SYCL
153163
syntaxes
154164
texel
155165
texels
166+
threadIdx
156167
tradeoffs
157168
templated
158169
toolkits
@@ -167,5 +178,6 @@ unregister
167178
upscaled
168179
variadic
169180
vulkan
181+
warpSize
170182
WinGDB
171183
zc

README.md

Lines changed: 16 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ Key features include:
1212

1313
New projects can be developed directly in the portable HIP C++ language and can run on either NVIDIA or AMD platforms. Additionally, HIP provides porting tools which make it easy to port existing CUDA codes to the HIP layer, with no loss of performance as compared to the original CUDA application. HIP is not intended to be a drop-in replacement for CUDA, and developers should expect to do some manual coding and performance tuning work to complete the port.
1414

15+
> [!NOTE]
16+
> The published documentation is available at [HIP documentation](https://rocm.docs.amd.com/projects/HIP/en/latest/index.html) in an organized, easy-to-read format, with search and a table of contents. The documentation source files reside in the `HIP/docs` folder of this GitHub repository. As with all ROCm projects, the documentation is open source. For more information on contributing to the documentation, see [Contribute to ROCm documentation](https://rocm.docs.amd.com/en/latest/contribute/contributing.html).
17+
1518
## DISCLAIMER
1619

1720
The information presented in this document is for informational purposes only and may contain technical inaccuracies, omissions, and typographical errors. The information contained herein is subject to change and may be rendered inaccurate for many reasons, including but not limited to product and roadmap changes, component and motherboard versionchanges, new model and/or product releases, product differences between differing manufacturers, software changes, BIOS flashes, firmware upgrades, or the like. Any computer system has risks of security vulnerabilities that cannot be completely prevented or mitigated.AMD assumes no obligation to update or otherwise correct or revise this information. However, AMD reserves the right to revise this information and to make changes from time to time to the content hereof without obligation of AMD to notify any person of such revisions or changes.THIS INFORMATION IS PROVIDED ‘AS IS.” AMD MAKES NO REPRESENTATIONS OR WARRANTIES WITH RESPECT TO THE CONTENTS HEREOF AND ASSUMES NO RESPONSIBILITY FOR ANY INACCURACIES, ERRORS, OR OMISSIONS THAT MAY APPEAR IN THIS INFORMATION. AMD SPECIFICALLY DISCLAIMS ANY IMPLIED WARRANTIES OF NON-INFRINGEMENT, MERCHANTABILITY, OR FITNESS FOR ANY PARTICULAR PURPOSE. IN NO EVENT WILL AMD BE LIABLE TO ANY PERSON FOR ANY RELIANCE, DIRECT, INDIRECT, SPECIAL, OR OTHER CONSEQUENTIAL DAMAGES ARISING FROM THE USE OF ANY INFORMATION CONTAINED HEREIN, EVEN IF AMD IS EXPRESSLY ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. AMD, the AMD Arrow logo, and combinations thereof are trademarks of Advanced Micro Devices, Inc. Other product names used in this publication are for identification purposes only and may be trademarks of their respective companies.
@@ -39,24 +42,24 @@ HIP releases are typically naming convention for each ROCM release to help diffe
3942
* [HIP FAQ](docs/faq.rst)
4043
* [HIP C++ Language Extensions](docs/reference/cpp_language_extensions.rst)
4144
* [HIP Porting Guide](docs/how-to/hip_porting_guide.md)
42-
* [HIP Porting Driver Guide](docs/how-to/hip_porting_driver_api.md)
43-
* [HIP Programming Guide](docs/how-to/programming_manual.md)
45+
* [HIP Porting Driver Guide](docs/how-to/hip_porting_driver_api.rst)
46+
* [HIP Programming Guide](docs/programming_guide.rst)
4447
* [HIP Logging](docs/how-to/logging.rst)
4548
* [Building HIP From Source](docs/install/build.rst)
4649
* [HIP Debugging](docs/how-to/debugging.rst)
4750
* [HIP RTC](docs/how-to/hip_rtc.md)
4851
* [HIP Terminology](docs/reference/terms.md) (including Rosetta Stone of GPU computing terms across CUDA/HIP/OpenCL)
4952
* [HIPIFY](https://github.com/ROCm/HIPIFY/blob/amd-staging/README.md)
5053
* Supported CUDA APIs:
51-
* [Runtime API](https://github.com/ROCm/HIPIFY/blob/amd-staging/docs/tables/CUDA_Runtime_API_functions_supported_by_HIP.md)
52-
* [Driver API](https://github.com/ROCm/HIPIFY/blob/amd-staging/docs/tables/CUDA_Driver_API_functions_supported_by_HIP.md)
53-
* [cuComplex API](https://github.com/ROCm/HIPIFY/blob/amd-staging/docs/tables/cuComplex_API_supported_by_HIP.md)
54-
* [Device API](https://github.com/ROCm/HIPIFY/blob/amd-staging/docs/tables/CUDA_Device_API_supported_by_HIP.md)
55-
* [cuBLAS](https://github.com/ROCm/HIPIFY/blob/amd-staging/docs/tables/CUBLAS_API_supported_by_ROC.md)
56-
* [cuRAND](https://github.com/ROCm/HIPIFY/blob/amd-staging/docs/tables/CURAND_API_supported_by_HIP.md)
57-
* [cuDNN](https://github.com/ROCm/HIPIFY/blob/amd-staging/docs/tables/CUDNN_API_supported_by_HIP.md)
58-
* [cuFFT](https://github.com/ROCm/HIPIFY/blob/amd-staging/docs/tables/CUFFT_API_supported_by_HIP.md)
59-
* [cuSPARSE](https://github.com/ROCm/HIPIFY/blob/amd-staging/docs/tables/CUSPARSE_API_supported_by_HIP.md)
54+
* [Runtime API](https://github.com/ROCm/HIPIFY/blob/amd-staging/docs/reference/tables/CUDA_Runtime_API_functions_supported_by_HIP.md)
55+
* [Driver API](https://github.com/ROCm/HIPIFY/blob/amd-staging/docs/reference/tables/CUDA_Driver_API_functions_supported_by_HIP.md)
56+
* [cuComplex API](https://github.com/ROCm/HIPIFY/blob/amd-staging/reference/docs/tables/cuComplex_API_supported_by_HIP.md)
57+
* [Device API](https://github.com/ROCm/HIPIFY/blob/amd-staging/docs/reference/tables/CUDA_Device_API_supported_by_HIP.md)
58+
* [cuBLAS](https://github.com/ROCm/HIPIFY/blob/amd-staging/docs/reference/tables/CUBLAS_API_supported_by_ROC.md)
59+
* [cuRAND](https://github.com/ROCm/HIPIFY/blob/amd-staging/docs/reference/tables/CURAND_API_supported_by_HIP.md)
60+
* [cuDNN](https://github.com/ROCm/HIPIFY/blob/amd-staging/docs/reference/tables/CUDNN_API_supported_by_HIP.md)
61+
* [cuFFT](https://github.com/ROCm/HIPIFY/blob/amd-staging/docs/reference/tables/CUFFT_API_supported_by_HIP.md)
62+
* [cuSPARSE](https://github.com/ROCm/HIPIFY/blob/amd-staging/docs/reference/tables/CUSPARSE_API_supported_by_HIP.md)
6063
* [Developer/CONTRIBUTING Info](CONTRIBUTING.md)
6164
* [Release Notes](RELEASE.md)
6265

@@ -124,19 +127,9 @@ provides source portability to either platform. HIP provides the _hipcc_ compi
124127

125128
## Examples and Getting Started
126129

127-
* A sample and [blog](https://github.com/ROCm/hip-tests/tree/develop/samples/0_Intro/square) that uses any of [HIPIFY](https://github.com/ROCm/HIPIFY/blob/amd-staging/README.md) tools to convert a simple app from CUDA to HIP:
128-
129-
```shell
130-
cd samples/01_Intro/square
131-
# follow README / blog steps to hipify the application.
132-
```
133-
134-
* Guide to [Porting a New Cuda Project](https://rocm.docs.amd.com/projects/HIP/en/latest/how-to/hip_porting_guide.html#porting-a-new-cuda-project)
135-
136-
## More Examples
130+
* The [ROCm-examples](https://github.com/ROCm/rocm-examples) repository includes many examples with explanations that help users getting started with HIP, as well as providing advanced examples for HIP and its libraries.
137131

138-
The GitHub repository [HIP-Examples](https://github.com/ROCm/HIP-Examples) contains a hipified version of benchmark suite.
139-
Besides, there are more samples in Github [HIP samples](https://github.com/ROCm/hip-tests/tree/develop/samples), showing how to program with different features, build and run.
132+
* HIP's documentation includes a guide for [Porting a New Cuda Project](https://rocm.docs.amd.com/projects/HIP/en/latest/how-to/hip_porting_guide.html#porting-a-new-cuda-project).
140133

141134
## Tour of the HIP Directories
142135

docs/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@
66
/doxygen/html
77
/doxygen/xml
88
/sphinx/_toc.yml
9+
__pycache__

docs/conf.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
# https://www.sphinx-doc.org/en/master/usage/configuration.html
66

77
import re
8+
import sys
9+
from pathlib import Path
810
from typing import Any, Dict, List
911

1012
from rocm_docs import ROCmDocs
@@ -38,7 +40,10 @@
3840
for sphinx_var in ROCmDocs.SPHINX_VARS:
3941
globals()[sphinx_var] = getattr(docs_core, sphinx_var)
4042

41-
extensions += ["sphinxcontrib.doxylink"]
43+
# Add the _extensions directory to Python's search path
44+
sys.path.append(str(Path(__file__).parent / 'extension'))
45+
46+
extensions += ["sphinxcontrib.doxylink", "custom_directive"]
4247

4348
cpp_id_attributes = ["__global__", "__device__", "__host__", "__forceinline__", "static"]
4449
cpp_paren_attributes = ["__declspec"]
@@ -50,5 +55,6 @@
5055
exclude_patterns = [
5156
"doxygen/mainpage.md",
5257
"understand/glossary.md",
53-
'how-to/debugging_env.rst'
58+
'how-to/debugging_env.rst',
59+
"data/env_variables_hip.rst"
5460
]

0 commit comments

Comments
 (0)