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

Standardize hipBLAS documentation builds to use the rocm-docs-core template #566

Merged
merged 25 commits into from
Mar 10, 2023
Merged
Show file tree
Hide file tree
Changes from 24 commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
4887ac5
Changing Documentation Template
SergiyKostrov Dec 8, 2022
a429319
Changing Documentation Template
SergiyKostrov Dec 8, 2022
72c2b83
Merge branch 'develop' into rtd
samjwu Mar 8, 2023
f7c195c
hipBLAS documentation refactored for pitchfork
samjwu Mar 8, 2023
b746f10
Remove old rocm logo
samjwu Mar 8, 2023
610f97f
Reorganize sections to match swab-documentation for reference libraries
samjwu Mar 8, 2023
90c1595
Moving files around
saadrahim Mar 8, 2023
d0077b6
Renaming conf.py to sphix_conf.py
saadrahim Mar 8, 2023
e9f9825
Recompile requirements.txt
samjwu Mar 8, 2023
59986cf
Fix typo
samjwu Mar 8, 2023
6bcbd7f
Merge branch 'rtd' of github.com:ROCmSoftwarePlatform/hipBLAS into rtd
samjwu Mar 8, 2023
6a7c69e
Renaming back
saadrahim Mar 8, 2023
ddb13f3
Update requirements
samjwu Mar 8, 2023
75fa959
Point requirements to rocm-docs-core
samjwu Mar 8, 2023
91e5c9c
updating yml
saadrahim Mar 8, 2023
829a7e7
final move for conf.py
saadrahim Mar 9, 2023
967858f
Update toc file entries
samjwu Mar 9, 2023
9492496
Renaming folders
saadrahim Mar 9, 2023
a30cb5a
Merge branch 'rtd' of github.com:ROCmSoftwarePlatform/hipBLAS into rtd
saadrahim Mar 9, 2023
914eeb7
Updating rtd yaml with new folder structure
saadrahim Mar 9, 2023
0611db6
Rename sphinx and doxygen folders
samjwu Mar 9, 2023
3cb5b9f
Merge branch 'rtd' of github.com:ROCmSoftwarePlatform/hipBLAS into rtd
samjwu Mar 9, 2023
9bb70be
Remove extra header
samjwu Mar 9, 2023
6fa3ac2
Build html only
samjwu Mar 9, 2023
1d56661
Add section on how to build documentation locally
samjwu Mar 10, 2023
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
7 changes: 7 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,10 @@ build*
.\#*
\#*\#
*~

# documentation artifacts
_build/
_images/
_static/
_templates/
_toc.yml
8 changes: 4 additions & 4 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@
version: 2

sphinx:
configuration: docs/source/conf.py
configuration: docs/conf.py

formats: all
formats: [htmlzip]

python:
version: "3.7"
version: "3.8"
install:
- requirements: docs/source/requirements.txt
- requirements: docs/.sphinx/requirements.txt
2 changes: 1 addition & 1 deletion docs/Doxyfile → docs/.doxygen/Doxyfile
Original file line number Diff line number Diff line change
Expand Up @@ -775,7 +775,7 @@ WARN_LOGFILE =
# spaces. See also FILE_PATTERNS and EXTENSION_MAPPING
# Note: If this tag is empty the current directory is searched.

INPUT = ../library/include
INPUT = ../../library/include

# This tag can be used to specify the character encoding of the source files
# that doxygen parses. Internally doxygen uses the UTF-8 encoding. Doxygen uses
Expand Down
4 changes: 4 additions & 0 deletions docs/.doxygen/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Doxygen Instructions

Please run the following command to build the doxygen based documentation.
```doxygen Doxyfile```
13 changes: 13 additions & 0 deletions docs/.sphinx/_toc.yml.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Anywhere {branch} is used, the branch name will be substituted.
# These comments will also be removed.
root: index
subtrees:
- numbered: False
entries:
- file: designdoc
- file: install
- file: orga
- file: api
- file: functions
- file: deprecation
- file: contributing
1 change: 1 addition & 0 deletions docs/.sphinx/requirements.in
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
git+https://github.com/RadeonOpenCompute/rocm-docs-core.git
275 changes: 275 additions & 0 deletions docs/.sphinx/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,275 @@
#
# This file is autogenerated by pip-compile with Python 3.8
# by the following command:
#
# pip-compile docs/sphinx/requirements.in
#
accessible-pygments==0.0.3
# via pydata-sphinx-theme
alabaster==0.7.12
# via sphinx
asttokens==2.2.0
# via stack-data
attrs==22.1.0
# via
# jsonschema
# jupyter-cache
babel==2.10.3
# via
# pydata-sphinx-theme
# sphinx
backcall==0.2.0
# via ipython
beautifulsoup4==4.11.1
# via pydata-sphinx-theme
breathe==4.34.0
# via rocm-docs-core
certifi==2022.6.15
# via requests
cffi==1.15.1
# via pynacl
charset-normalizer==2.1.0
# via requests
click==8.1.3
# via
# jupyter-cache
# sphinx-external-toc
debugpy==1.6.4
# via ipykernel
decorator==5.1.1
# via ipython
deprecated==1.2.13
# via pygithub
docutils==0.16
# via
# breathe
# myst-parser
# pydata-sphinx-theme
# rocm-docs-core
# sphinx
entrypoints==0.4
# via jupyter-client
executing==1.2.0
# via stack-data
fastjsonschema==2.16.2
# via nbformat
gitdb==4.0.10
# via gitpython
gitpython==3.1.31
# via rocm-docs-core
greenlet==2.0.1
# via sqlalchemy
idna==3.3
# via requests
imagesize==1.4.1
# via sphinx
importlib-metadata==5.1.0
# via
# jupyter-cache
# myst-nb
importlib-resources==5.10.4
# via
# jsonschema
# rocm-docs-core
ipykernel==6.17.1
# via myst-nb
ipython==8.7.0
# via
# ipykernel
# myst-nb
jedi==0.18.2
# via ipython
jinja2==3.1.2
# via
# myst-parser
# sphinx
jsonschema==4.17.3
# via nbformat
jupyter-cache==0.5.0
# via myst-nb
jupyter-client==7.4.7
# via
# ipykernel
# nbclient
jupyter-core==5.1.0
# via
# jupyter-client
# nbformat
linkify-it-py==1.0.3
# via myst-parser
markdown-it-py==2.1.0
# via
# mdit-py-plugins
# myst-parser
markupsafe==2.1.1
# via jinja2
matplotlib-inline==0.1.6
# via
# ipykernel
# ipython
mdit-py-plugins==0.3.1
# via myst-parser
mdurl==0.1.2
# via markdown-it-py
myst-nb==0.17.1
# via rocm-docs-core
myst-parser[linkify]==0.18.1
# via
# myst-nb
# rocm-docs-core
nbclient==0.5.13
# via
# jupyter-cache
# myst-nb
nbformat==5.7.0
# via
# jupyter-cache
# myst-nb
# nbclient
nest-asyncio==1.5.6
# via
# ipykernel
# jupyter-client
# nbclient
packaging==21.3
# via
# ipykernel
# pydata-sphinx-theme
# sphinx
parso==0.8.3
# via jedi
pexpect==4.8.0
# via ipython
pickleshare==0.7.5
# via ipython
pkgutil-resolve-name==1.3.10
# via jsonschema
platformdirs==2.5.4
# via jupyter-core
prompt-toolkit==3.0.33
# via ipython
psutil==5.9.4
# via ipykernel
ptyprocess==0.7.0
# via pexpect
pure-eval==0.2.2
# via stack-data
pycparser==2.21
# via cffi
pydata-sphinx-theme==0.13.1
# via sphinx-book-theme
pygithub==1.57
# via rocm-docs-core
pygments==2.12.0
# via
# accessible-pygments
# ipython
# pydata-sphinx-theme
# sphinx
pyjwt==2.6.0
# via pygithub
pynacl==1.5.0
# via pygithub
pyparsing==3.0.9
# via packaging
pyrsistent==0.19.2
# via jsonschema
python-dateutil==2.8.2
# via jupyter-client
pytz==2022.1
# via babel
pyyaml==6.0
# via
# jupyter-cache
# myst-nb
# myst-parser
# sphinx-external-toc
pyzmq==24.0.1
# via
# ipykernel
# jupyter-client
requests==2.28.1
# via
# pygithub
# sphinx
rocm-docs-core @ git+https://github.com/RadeonOpenCompute/rocm-docs-core.git
# via -r docs/sphinx/requirements.in
six==1.16.0
# via
# asttokens
# python-dateutil
smmap==5.0.0
# via gitdb
snowballstemmer==2.2.0
# via sphinx
soupsieve==2.3.2.post1
# via beautifulsoup4
sphinx==4.3.1
# via
# breathe
# myst-nb
# myst-parser
# pydata-sphinx-theme
# rocm-docs-core
# sphinx-book-theme
# sphinx-copybutton
# sphinx-design
# sphinx-external-toc
sphinx-book-theme==1.0.0rc2
# via rocm-docs-core
sphinx-copybutton==0.5.1
# via rocm-docs-core
sphinx-design==0.3.0
# via rocm-docs-core
sphinx-external-toc==0.3.1
# via rocm-docs-core
sphinxcontrib-applehelp==1.0.2
# via sphinx
sphinxcontrib-devhelp==1.0.2
# via sphinx
sphinxcontrib-htmlhelp==2.0.0
# via sphinx
sphinxcontrib-jsmath==1.0.1
# via sphinx
sphinxcontrib-qthelp==1.0.3
# via sphinx
sphinxcontrib-serializinghtml==1.1.5
# via sphinx
sqlalchemy==1.4.44
# via jupyter-cache
stack-data==0.6.2
# via ipython
tabulate==0.9.0
# via jupyter-cache
tornado==6.2
# via
# ipykernel
# jupyter-client
traitlets==5.6.0
# via
# ipykernel
# ipython
# jupyter-client
# jupyter-core
# matplotlib-inline
# nbclient
# nbformat
typing-extensions==4.4.0
# via
# myst-nb
# myst-parser
uc-micro-py==1.0.1
# via linkify-it-py
urllib3==1.26.11
# via requests
wcwidth==0.2.5
# via prompt-toolkit
wrapt==1.15.0
# via deprecated
zipp==3.11.0
# via
# importlib-metadata
# importlib-resources

# The following packages are considered to be unsafe in a requirements file:
# setuptools
File renamed without changes.
File renamed without changes.
14 changes: 14 additions & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Configuration file for the Sphinx documentation builder.
#
# This file only contains a selection of the most common options. For a full
# list see the documentation:
# https://www.sphinx-doc.org/en/master/usage/configuration.html

from rocm_docs import ROCmDocs

docs_core = ROCmDocs("hipBLAS Documentation")
docs_core.run_doxygen()
docs_core.setup()

for sphinx_var in ROCmDocs.SPHINX_VARS:
globals()[sphinx_var] = getattr(docs_core, sphinx_var)
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion docs/source/intro.rst → docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ AMD **ROCm** has two classification of libraries,
- **roc**\* : AMD GPU Libraries, written in `HIP <https://docs.amd.com/bundle/AMD_HIP_Programming_Guide/page/Introduction.html>`_.
- **hip**\* : AMD CPU library that is a thin interface to either AMD **roc*** or Nvidia **cu*** libraries.

Users targetting both CUDA and AMD devices must use the **hip*** libraries.
Users targeting both CUDA and AMD devices must use the **hip*** libraries.

hipBLAS is a BLAS marshaling library with multiple supported backends. It sits between the application and a 'worker' BLAS library, marshalling inputs into the backend library and marshalling results back to the application.
hipBLAS exports an interface that does not require the client to change, regardless of the chosen backend. Currently, it supports `rocBLAS <https://github.com/ROCmSoftwarePlatform/rocBLAS>`_ and `cuBLAS <https://developer.nvidia.com/cublas>`_ as backends.
File renamed without changes.
File renamed without changes.
15 changes: 0 additions & 15 deletions docs/run_doc.sh

This file was deleted.

10 changes: 0 additions & 10 deletions docs/run_doxygen.sh

This file was deleted.

Loading