Skip to content

Commit

Permalink
rename 'handle' as 'p_handle' for init_matrix_handle and release_matr…
Browse files Browse the repository at this point in the history
…ix_handle routines.
  • Loading branch information
baeseung-intel committed Aug 3, 2023
1 parent dfb43d6 commit 1705b76
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 9 deletions.
23 changes: 21 additions & 2 deletions source/elements/oneMKL/source/domains/spblas/matrixinit.rst
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,29 @@ The oneapi::mkl::sparse::init_matrix_handle function initializes the
namespace oneapi::mkl::sparse {
void init_matrix_handle (oneapi::mkl::sparse::matrix_handle_t *handle);
void init_matrix_handle (oneapi::mkl::sparse::matrix_handle_t *p_handle);
}
.. container:: section

.. rubric:: Input parameter

p_handle
The address of the sparse::matrix_handle_t ``p_handle`` object to be initialized.
This initialization routine must only be called on an uninitialized matrix_handle_t object.


.. container:: section

.. rubric:: Output parameters

p_handle
On return, the address is updated to point to a newly allocated and initialized matrix_handle_t object
that can be filled and used to perform sparse BLAS operations.


.. container:: section

.. rubric:: Throws
Expand All @@ -50,4 +69,4 @@ The oneapi::mkl::sparse::init_matrix_handle function initializes the
.. container:: parentlink


**Parent topic:** :ref:`onemkl_spblas`
**Parent topic:** :ref:`onemkl_spblas`
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ before releasing any data in case of USM.
namespace oneapi::mkl::sparse {
sycl::event release_matrix_handle (sycl::queue &queue,
oneapi::mkl::sparse::matrix_handle_t *handle,
oneapi::mkl::sparse::matrix_handle_t *p_handle,
const std::vector<sycl::event> &dependencies = {});
}
Expand All @@ -40,21 +40,21 @@ before releasing any data in case of USM.
queue
The SYCL command queue which will be used for SYCL kernels execution.

handle
The address of the sparse::matrix_handle_t ``handle`` object to be released, containing sparse matrix and other internal
p_handle
The address of the sparse::matrix_handle_t ``p_handle`` object to be released, containing sparse matrix and other internal
data. Initialized with oneapi::mkl::sparse::init_matrix_handle routine, and filled with user data using one of the
oneapi::mkl::sparse::set_<sparse_matrix_type>_structure routines.

dependencies
List of events that ``handle`` depends on.
The call waits on the events(if any) before resetting the ``handle`` to default values.
List of events that ``p_handle`` depends on.
The call waits on the events(if any) before resetting the ``p_handle`` to default values.

.. container:: section

.. rubric:: Output parameters

handle
The address of the sparse::matrix_handle_t ``handle`` that will be scheduled to be updated to point to a null object
p_handle
The address of the sparse::matrix_handle_t ``p_handle`` that will be scheduled to be updated to point to a null object
and the passed in handle will be scheduled for deallocation and cleanup.

.. container:: section
Expand Down

0 comments on commit 1705b76

Please sign in to comment.