Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Programming interface #3532

Draft
wants to merge 29 commits into
base: docs/develop
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
dbcc8c3
Update C++ language extensions
neon60 May 31, 2024
3c99e54
Update hip_porting_driver_api.md
randyh62 Jun 4, 2024
0041c51
Update documentation requirements
neon60 Jun 7, 2024
66b5a8e
Change target-branch to docs/develop in dependabot.yml
neon60 Jun 8, 2024
9048e93
fix reference, though not broken, and remove extra space
randyh62 Jun 14, 2024
cde07c8
Add MathiasMagnus SAXPY tutorial
neon60 Jun 25, 2024
0690d62
Add Unified Memory
matyas-streamhpc Jun 17, 2024
e1a8491
Update Unified Memory
neon60 Jun 27, 2024
037c162
Rename kernel_language to cpp_language_extensions
neon60 Jul 8, 2024
84f2531
Add HIP Basic examples link to HIP repository
neon60 Jul 5, 2024
1f8446d
Minor fix
neon60 Jul 12, 2024
5982405
Update note and warning
neon60 Jul 11, 2024
95bf65a
Add reduction tutorial
neon60 Jul 23, 2024
4c860aa
Fix surface functions
neon60 Jul 23, 2024
57f5eb4
Remove unused llvm math header from doxy generated documentation.
neon60 Jul 23, 2024
c419ac3
Minor fix in toc.yml reduction.md -> reduction
neon60 Jul 23, 2024
ec3d200
Move Math API to separate page
neon60 Jul 29, 2024
5de8efd
add C++ language support documentation
parbenc Jun 5, 2024
1a58096
Update C++ language support page
neon60 Jul 31, 2024
955c344
Add Cooperative Groups reference, how-to and tutorial
neon60 Aug 1, 2024
4285de9
Replace title case with sentence case
neon60 Aug 2, 2024
1de8593
Minor documentation styling and grammar fix
neon60 Aug 9, 2024
91f60b6
Combine programming_model and programming_model_reference
neon60 Aug 7, 2024
1b94970
Add virtual memory guide
neon60 Aug 14, 2024
845316e
Fix the documentation build
neon60 Aug 19, 2024
36708aa
Update documentation requirements
samjwu Aug 9, 2024
24f6ce1
Update documentation requirements
samjwu Sep 9, 2024
73e3005
Update doxygen version for readthedocs build
neon60 Jul 5, 2024
7ea85a1
Add programming interface
neon60 Sep 20, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,6 @@ updates:
- "documentation"
- "dependencies"
- "ci:docs-only"
target-branch: "docs/develop"
reviewers:
- "samjwu"
20 changes: 10 additions & 10 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,28 +6,28 @@ version: 2
sphinx:
configuration: docs/conf.py

formats: [htmlzip, pdf, epub]
formats: []

python:
install:
- requirements: docs/sphinx/requirements.txt

conda:
environment: docs/environment.yml # needed until ubuntu ships doxygen >= 1.9.8

build:
os: ubuntu-22.04
tools:
python: "3.10"
python: "mambaforge-22.9" # needed until ubuntu ships doxygen >= 1.9.8
apt_packages:
- "doxygen"
- "gfortran" # For pre-processing fortran sources
- "graphviz" # For dot graphs in doxygen
jobs:
post_checkout:
- if [ -d ../llvm-project ]; then rmdir ../llvm-project; fi
- if [ -d ../clr ]; then rmdir ../clr; fi
- if [ -d ../ROCR-Runtime ]; then rmdir ../ROCR-Runtime; fi
- git clone --depth=1 --single-branch --branch rocdoc-195 https://github.com/StreamHPC/llvm-project.git ../llvm-project
- git clone --depth=1 --single-branch --branch develop https://github.com/ROCm/clr.git ../clr
- git clone --depth=1 --single-branch --branch master https://github.com/ROCm/ROCR-Runtime.git ../ROCR-Runtime
- if [ -d ../clr ]; then rm -rf ../clr; fi
- if [ -d ../ROCR-Runtime ]; then rm -rf ../ROCR-Runtime; fi
- git clone --depth=1 --single-branch --branch docs/develop https://github.com/ROCm/clr.git ../clr
- git clone --depth=1 --single-branch --branch master https://github.com/ROCm/ROCR-Runtime.git ../ROCR-Runtime
post_build:
- rm -rf ../clr
- rm -rf ../llvm-project
- rm -rf ../ROCR-Runtime
34 changes: 33 additions & 1 deletion .wordlist.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@ ALU
ALUs
AmgX
APU
APUs
AQL
AXPY
Asynchrony
backtrace
Bitcode
Expand All @@ -12,24 +14,33 @@ builtins
Builtins
CAS
clr
coroutines
cuBLASLt
cuCtx
CUDA's
neon60 marked this conversation as resolved.
Show resolved Hide resolved
cuDNN
dataflow
deallocate
decompositions
denormal
Dereferencing
dll
DirectX
EIGEN
EIGEN's
enqueue
enqueues
entrypoint
entrypoints
enum
embeded
extern
fatbinary
foundationally
frontends
gedit
GPGPU
GWS
hardcoded
HC
HIP's
Expand All @@ -40,12 +51,17 @@ hipother
HIPRTC
hcBLAS
icc
IILE
iGPU
inlined
inplace
interop
Interoperation
interoperate
Intrinsics
intrinsics
IPC
IPs
isa
Lapack
latencies
Expand All @@ -62,31 +78,47 @@ malloc
multicore
multigrid
multithreading
MALU
NCCL
NDRange
nonnegative
NOP
Numa
Nsight
overindex
overindexing
oversubscription
pragmas
preconditioners
prefetched
preprocessor
PTX
PyHIP
queryable
prefetching
readonly
representable
RMW
ROCm's
rocTX
RTC
RTTI
rvalue
SAXPY
scalarizing
sceneries
shaders
SIMT
SOMA
SPMV
structs
SYCL
syntaxes
tradeoffs
templated
typedefs
UMM
unmap
variadic
WinGDB
zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz
zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ HIP releases are typically naming convention for each ROCM release to help diffe

* [Installation](docs/install/install.rst)
* [HIP FAQ](docs/how-to/faq.md)
* [HIP Kernel Language](docs/reference/kernel_language.rst)
* [HIP C++ Language Extensions](docs/reference/cpp_language_extensions.rst)
* [HIP Porting Guide](docs/how-to/hip_porting_guide.md)
* [HIP Porting Driver Guide](docs/how-to/hip_porting_driver_api.md)
* [HIP Programming Guide](docs/how-to/programming_manual.md)
Expand Down Expand Up @@ -88,7 +88,7 @@ hipMemcpy(C_h, C_d, Nbytes, hipMemcpyDeviceToHost);

The HIP kernel language defines builtins for determining grid and block coordinates, math functions, short vectors,
atomics, and timer functions.
It also specifies additional defines and keywords for function types, address spaces, and optimization controls (See the [HIP Kernel Language](docs/reference/kernel_language.rst) for a full description).
It also specifies additional defines and keywords for function types, address spaces, and optimization controls (See the [HIP C++ Language Extensions](docs/reference/cpp_language_extensions.rst) for a full description).
Here's an example of defining a simple 'vector_square' kernel.

```cpp
Expand Down
2 changes: 1 addition & 1 deletion docs/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
/_templates
/doxygen/html
/doxygen/xml
/sphinx/_toc.yml
/sphinx/_toc.yml
9 changes: 8 additions & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,11 @@
cpp_id_attributes = ["__global__", "__device__", "__host__", "__forceinline__", "static"]
cpp_paren_attributes = ["__declspec"]

suppress_warnings = ["etoc.toctree"]
suppress_warnings = ["etoc.toctree"]

numfig = False

exclude_patterns = [
"doxygen/mainpage.md",
"understand/glossary.md"
]
Loading