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

refactor rocALUTION documentation #211

Merged
merged 27 commits into from
Apr 23, 2024
Merged

refactor rocALUTION documentation #211

merged 27 commits into from
Apr 23, 2024

Conversation

SwRaw
Copy link
Contributor

@SwRaw SwRaw commented Mar 29, 2024

Refactoring all libraries to adhere to the documentation standards that includes following home page format, index style, language improvements, link fixes, navigation, and overall content readability improvements.

-------------
Prerequisites
-------------

- A ROCm enabled platform. `ROCm Documentation <https://rocm.docs.amd.com/>`_ has more information on
supported GPUs, Linux distributions, and Windows SKUs. It also has information on how to install ROCm.
A ROCm enabled platform. For information on supported GPUs, Linux distributions, ROCm installation, and Windows SKUs, refer to `ROCm Documentation <https://rocm.docs.amd.com/>`_.

-----------------------------
Installing pre-built packages
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"rocALUTION can be installed from AMD ROCm repository <https://rocm.docs.amd.com/projects/install-on-linux/en/latest/tutorial/quick-start.html>_. " The link doesn't look right.

directory. Only use these two installed files when needed in user code.

----------------------------------
Building and Installing rocALUTION
Building and installing rocALUTION
----------------------------------

Building from source is not necessary, as rocALUTION can be used after installing the pre-built packages as described above.
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"The rocALUTION source code, which is the same as for the ROCm linux distributions, is available at the rocALUTION github page <https://github.com/ROCmSoftwarePlatform/rocSPARSE>_." Is this link correct?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

@@ -147,7 +152,7 @@ When the parallel manager, global matrix or global vector are writing to a file,
rhs.dat.rank.2
rhs.dat.rank.3

Parallel Manager
Parallel manager
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

.. doxygenfunction:: rocalution::ParallelManager::GetGlobalSize
and
.. doxygenfunction:: rocalution::ParallelManager::GetLocalSize
can't be traced in the doxy file. Need to check the correct syntax.

@@ -147,7 +152,7 @@ When the parallel manager, global matrix or global vector are writing to a file,
rhs.dat.rank.2
rhs.dat.rank.3

Parallel Manager
Parallel manager
----------------
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

.. doxygenfunction:: rocalution::ParallelManager::SetGlobalSize
and
.. doxygenfunction:: rocalution::ParallelManager::SetLocalSize
can't be traced in the doxy file, Need to check the correct syntax.

=============================

The :cpp:func:`rocalution::Solver::Clear` function clears all the data which is in the solver, including the associated preconditioner. Thus, the solver is not anymore associated with this preconditioner.

.. note:: The preconditioner is not deleted (via destructor), only a :cpp:func:`rocalution::Preconditioner::Clear` is called.
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"rocalution::Preconditioner::Clear()" cannot be resolved.

================

.. doxygenclass:: rocalution::RugeStuebenAMG
.. doxygenfunction:: rocalution::RugeStuebenAMG::SetCouplingStrength
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"rocalution::RugeStuebenAMG::SetCouplingStrength" cannot be resolved.

.. note:: If the input matrix is not a CSR matrix, an internal conversion will be performed to CSR format, followed by a back conversion to the previous format after the operation.
In this case, a warning message on verbosity level 2 will be printed.
.. note:: If the input matrix is not a CSR matrix, an internal conversion is performed to CSR format, followed by a back conversion to the previous format after the operation.
In this case, a warning message on verbosity level 2 is printed.

==================================================================================== =============================================================================== ======== =======
**LocalMatrix function** **Comment** **Host** **HIP**
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Set​Random​Normal and ExclusiveScan cannot be resolved.

@SwRaw SwRaw marked this pull request as ready for review April 9, 2024 14:51
@SwRaw SwRaw requested review from a team, YvanMokwinski and jsandham as code owners April 9, 2024 14:51
@@ -336,11 +345,11 @@ File I/O
Access
======

.. doxygenfunction:: rocalution::LocalVector::operator[](int)
.. doxygenfunction:: rocalution::LocalVector::&operator[](int)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

rocalution::LocalVector::&operator cannot be resolved.

@SwRaw
Copy link
Contributor Author

SwRaw commented Apr 10, 2024

There is a lot of repetition of API content. As we call the same doxyfunction at many places. The solvers and preconditioners are individual files while being a part of API as well. I tried to remove the solvers and preconditioners from API library with a reference to the respective file but then realized that there are many cross-references to the solvers/preconditioners in the API library. Removing these would lead to many broken links so I am keeping them. I still feel the entire documentation needs a lot of rework to remove/reduce redundant content. Instead of calling the doxyfunction, call them at one place and add links to all other places where they are needed.

@cgmb cgmb changed the title refactor rocALUTION refactor rocALUTION documentation Apr 10, 2024
@SwRaw
Copy link
Contributor Author

SwRaw commented Apr 11, 2024

@lpaoletti Please review.

@SwRaw SwRaw requested a review from lpaoletti April 11, 2024 05:36
@jsandham
Copy link
Contributor

This is a great start. Approved.

@yhuiYH yhuiYH added the noCI Don't run CI on this PR label Apr 19, 2024
@ntrost57 ntrost57 merged commit c71fbd2 into ROCm:develop Apr 23, 2024
16 checks passed
yhuiYH pushed a commit that referenced this pull request May 23, 2024
* refactor rocALUTION

* refactor

* refactor

* refactor

* refactor

* Update clients.rst

* Update singlenode.rst

* refactor

* Update singlenode.rst

* refactor

* refactor

* Update singlenode.rst

* Update singlenode.rst

* Update singlenode.rst

* Update singlenode.rst

* Update singlenode.rst

* refactor

* Update singlenode.rst

* Update linux-installation.rst

* refactor

* Update windows-installation.rst

* refactor doc

* refactor doc

* Update linux-installation.rst

* refactor doc review

* Update _toc.yml.in

* Update LICENSE.md
yhuiYH added a commit that referenced this pull request May 23, 2024
* Update links (#238)

* Update links

* Update Linux_Install_Guide.rst

* refactor rocALUTION documentation (#211)

* refactor rocALUTION

* refactor

* refactor

* refactor

* refactor

* Update clients.rst

* Update singlenode.rst

* refactor

* Update singlenode.rst

* refactor

* refactor

* Update singlenode.rst

* Update singlenode.rst

* Update singlenode.rst

* Update singlenode.rst

* Update singlenode.rst

* refactor

* Update singlenode.rst

* Update linux-installation.rst

* refactor

* Update windows-installation.rst

* refactor doc

* refactor doc

* Update linux-installation.rst

* refactor doc review

* Update _toc.yml.in

* Update LICENSE.md

---------

Co-authored-by: Lisa <lisajdelaney@gmail.com>
Co-authored-by: srawat <120587655+SwRaw@users.noreply.github.com>
@SwRaw SwRaw deleted the swat_rocks branch June 1, 2024 13:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
noCI Don't run CI on this PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants