Skip to content

AISPARSE-766: publish rocsparse_handle_create/destroy reference - #12206

Merged
kliegeois merged 1 commit into
developfrom
users/kliegeois/rocsparse-handle-create-docs
Sep 16, 2026
Merged

kliegeois merged 1 commit into
developfrom
users/kliegeois/rocsparse-handle-create-docs

Conversation

@kliegeois

@kliegeois kliegeois commented Sep 16, 2026 •

Copy link
Copy Markdown
Contributor

rocsparse_handle_create and rocsparse_handle_destroy were added to the public header in #8083 with complete Doxygen comments, but no Breathe directive ever referenced them. Because Breathe only renders functions that are explicitly listed, neither function appears anywhere on the documentation site: a search for rocsparse_handle_create on rocm.docs.amd.com returns nothing, and users instead land on rocsparse_create_handle, which is a different function with a different signature. This was raised by a user who could not find the documentation.

JIRA ID: AISPARSE-766

Changes

  • docs/reference/auxiliary.rst: add doxygenfunction sections for both functions, with rocsparse_handle_create_ / rocsparse_handle_destroy_ labels. Ordering follows the header, so each new function sits next to its older counterpart.
  • docs/reference/api.rst: list both functions in the auxiliary exported-function table.
  • docs/how-to/using-rocsparse.rst: describe the stream-ordered alternative in the handle management section, including the restriction against HIP graph stream capture.

Documentation only; no library code is touched.

Validation

Both functions are guarded by #ifdef ROCSPARSE_WITH_HANDLE_CREATE, but that does not hide them from Doxygen: the CMake option ROCSPARSE_ENABLE_HANDLE_CREATE defaults to ON, and #8083 already added the macro to PREDEFINED in the Doxyfile.

  • Ran Doxygen over the tree and confirmed both symbols appear in the generated XML (rocsparse-auxiliary_8h.xml and index.xml).
  • Built the three PR RST pages through Breathe. The rendered HTML has heading anchors #rocsparse-handle-create and #rocsparse-handle-destroy, full signatures rocsparse_handle_create(rocsparse_handle*, hipStream_t, rocsparse_error*) and rocsparse_handle_destroy(rocsparse_handle, rocsparse_error*), both names in the exported-function table, and working user-guide links. origin/develop still has zero doxygenfunction entries for these APIs.

rocsparse_handle_create and rocsparse_handle_destroy were added to the
public header with complete Doxygen comments, but no Breathe directive
ever referenced them, so they never appeared on the documentation site.
Users searching for the stream-ordered handle constructor found nothing.

Add the missing doxygenfunction sections to the auxiliary reference, list
both functions in the exported-function table, and describe the
stream-ordered alternative in the handle management section of the user
guide.

Co-authored-by: Cursor <cursoragent@cursor.com>

@YvanMokwinski YvanMokwinski left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thank you for doing this.

@therock-pr-bot

therock-pr-bot Bot commented Sep 16, 2026 •

Copy link
Copy Markdown

✅ All Checks Passed — Ready for Review

Check Status Details
📝 PR Description ✅ Pass —
⛔ Forbidden Files ✅ Pass —
🧪 Unit Test ✅ Pass PR does not contain code files — Unit Test auto-passed
🔎 pre-commit ✅ Pass —
🚫 Draft PR 🔜 To Be Enabled —
🚩 Feature Flag 🔜 To Be Enabled —
📊 Code Coverage 🔜 To Be Enabled —
🤖 therock-pr-bot ✅ Pass —

🎉 All checks passed! This PR is ready for review.

📖 Need help? See the Policy FAQ for details on every check and how to fix failures.

🙋 Wish to Override Policy?

@therock-pr-bot

Copy link
Copy Markdown

🎉 All checks passed! This PR is ready for review.

@kliegeois kliegeois changed the title docs(rocsparse): publish rocsparse_handle_create/destroy reference AISPARSE-766: publish rocsparse_handle_create/destroy reference Sep 16, 2026
@kliegeois
kliegeois merged commit e23f0ee into develop Sep 16, 2026
47 of 49 checks passed
@kliegeois
kliegeois deleted the users/kliegeois/rocsparse-handle-create-docs branch September 16, 2026 21:22
assistant-librarian Bot pushed a commit to ROCm/rocSPARSE that referenced this pull request Sep 16, 2026
AISPARSE-766: publish rocsparse_handle_create/destroy
 reference (#12206)

`rocsparse_handle_create` and `rocsparse_handle_destroy` were added to
the public header in #8083 with complete Doxygen comments, but no
Breathe directive ever referenced them. Because Breathe only renders
functions that are explicitly listed, neither function appears anywhere
on the documentation site: a search for `rocsparse_handle_create` on
rocm.docs.amd.com returns nothing, and users instead land on
`rocsparse_create_handle`, which is a different function with a
different signature. This was raised by a user who could not find the
documentation.

JIRA ID: AISPARSE-766

## Changes

- `docs/reference/auxiliary.rst`: add `doxygenfunction` sections for
both functions, with `rocsparse_handle_create_` /
`rocsparse_handle_destroy_` labels. Ordering follows the header, so each
new function sits next to its older counterpart.
- `docs/reference/api.rst`: list both functions in the auxiliary
exported-function table.
- `docs/how-to/using-rocsparse.rst`: describe the stream-ordered
alternative in the handle management section, including the restriction
against HIP graph stream capture.

Documentation only; no library code is touched.

## Validation

Both functions are guarded by `#ifdef ROCSPARSE_WITH_HANDLE_CREATE`, but
that does not hide them from Doxygen: the CMake option
`ROCSPARSE_ENABLE_HANDLE_CREATE` defaults to `ON`, and #8083 already
added the macro to `PREDEFINED` in the Doxyfile.

- Ran Doxygen over the tree and confirmed both symbols appear in the
generated XML (`rocsparse-auxiliary_8h.xml` and `index.xml`).
- Built the three PR RST pages through Breathe. The rendered HTML has
heading anchors `#rocsparse-handle-create` and
`#rocsparse-handle-destroy`, full signatures
`rocsparse_handle_create(rocsparse_handle*, hipStream_t,
rocsparse_error*)` and `rocsparse_handle_destroy(rocsparse_handle,
rocsparse_error*)`, both names in the exported-function table, and
working user-guide links. `origin/develop` still has zero
`doxygenfunction` entries for these APIs.

Co-authored-by: Cursor <cursoragent@cursor.com>
@assistant-librarian

Copy link
Copy Markdown
Contributor

TheRock Submodule Bump Activity

Newest first

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants