This page contains proposed changes for a future release of ROCm. Read the latest Linux release of ROCm documentation for your production environments.

rocsparse_create_handle Interface Reference

rocsparse_create_handle Interface Reference#

HIPFORT API Reference: hipfort_rocsparse::rocsparse_create_handle Interface Reference
hipfort_rocsparse::rocsparse_create_handle Interface Reference

Create a rocsparse handle. More...

Public Member Functions

integer(kind(rocsparse_status_success)) function rocsparse_create_handle_ (handle)
 

Detailed Description

Create a rocsparse handle.

rocsparse_create_handle creates the rocSPARSE library context. It must be initialized before any other rocSPARSE API function is invoked and must be passed to all subsequent library function calls. The handle should be destroyed at the end using rocsparse_destroy_handle().

Parameters
[out]handlethe pointer to the handle to the rocSPARSE library context.
Return values
rocsparse_status_successthe initialization succeeded.
rocsparse_status_invalid_handlehandle pointer is invalid.
rocsparse_status_internal_erroran internal error occurred.

Member Function/Subroutine Documentation

◆ rocsparse_create_handle_()

integer(kind(rocsparse_status_success)) function hipfort_rocsparse::rocsparse_create_handle::rocsparse_create_handle_ ( type(c_ptr)  handle)

The documentation for this interface was generated from the following file: