Visible to Intel only — GUID: GUID-3CD16C85-131E-423C-A7F4-378F16EE1070
Visible to Intel only — GUID: GUID-3CD16C85-131E-423C-A7F4-378F16EE1070
oneapi::mkl::sparse::release_matmat_descr
Releases oneapi::mkl::sparse::matmat_descr_t object and sets it to NULL.
Description
The oneapi::mkl::sparse::release_matmat_descr routine releases the oneapi::mkl::sparse::matmat_descr_t object and sets it to NULL.
A common usage model for the matmat descriptor is the following
using namespace oneapi::mkl; sparse::matmat_descr_t descr = nullptr; sparse::init_matmat_descr(&descr); // example descriptor for general // C = A * B sparse::matrix_view_descr viewA = sparse::matrix_view_descr::general; sparse::matrix_view_descr viewB = sparse::matrix_view_descr::general; sparse::matrix_view_descr viewC = sparse::matrix_view_descr::general; transpose opA = transpose::nontrans; transpose opB = transpose::nontrans; sparse::set_matmat_data(descr, viewA, opA, viewB, opB, viewC); // use descr in sparse::matmat() api sparse::release_matmat_descr(&descr);
API
Syntax
namespace oneapi::mkl::sparse { void release_matmat_descr ( oneapi::mkl::sparse::matmat_descr_t *p_descr ); }
Include Files
oneapi/mkl/spblas.hpp
Input Parameters
- p_descr
-
The address of an initialized matmat descriptor object (previously allocated in sparse::init_matmat_descr()) to be deallocated in this routine.
Output Parameters
- p_descr
-
On return, the address will be updated to point to a null sparse::matmat_descr_t; the matmat descriptor object that was previously pointed to, will have been deallocated.