Library management functions

Library management functions#

hipSPARSELt: Library management functions
Library management functions

Functions

hipsparseStatus_t hipsparseLtGetVersion (const hipsparseLtHandle_t *handle, int *version)
 Retrieve the version number of the hipSPARSELt library. More...
 
hipsparseStatus_t hipsparseLtGetProperty (hipLibraryPropertyType propertyType, int *value)
 Retrieve the value of the requested property. More...
 
hipsparseStatus_t hipsparseLtInit (hipsparseLtHandle_t *handle)
 Create a hipSPARSELt handle. More...
 
hipsparseStatus_t hipsparseLtDestroy (const hipsparseLtHandle_t *handle)
 Destroy a hipSPARSELt handle. More...
 

Detailed Description

Provides the library handle.

Function Documentation

◆ hipsparseLtDestroy()

hipsparseStatus_t hipsparseLtDestroy ( const hipsparseLtHandle_t handle)

Destroy a hipSPARSELt handle.

hipsparseLtDestroy destroys the hipSPARSELt library context and releases all resources used by the hipSPARSELt library.

Parameters
[in]handlehipsparselt library handle
Return values
HIPSPARSE_STATUS_SUCCESSthe operation completed successfully.
HIPSPARSE_STATUS_NOT_INITIALIZEDthe handle is invalid.

◆ hipsparseLtGetProperty()

hipsparseStatus_t hipsparseLtGetProperty ( hipLibraryPropertyType  propertyType,
int *  value 
)

Retrieve the value of the requested property.

hipsparseLtGetProperty returns the value of the requested property.

Parameters
[in]propertyTypehipLibraryPropertyType property type (as defined in library_types.h).
[out]valuevalue of the requested property.
Return values
HIPSPARSE_STATUS_SUCCESS

◆ hipsparseLtGetVersion()

hipsparseStatus_t hipsparseLtGetVersion ( const hipsparseLtHandle_t handle,
int *  version 
)

Retrieve the version number of the hipSPARSELt library.

hipsparseLtGetVersion returns the version number of the hipSPARSELt library.

Parameters
[in]handlehipsparselt library handle.
[out]versionthe version number of the library.
Return values
HIPSPARSE_STATUS_SUCCESS
HIPSPARSE_STATUS_INVALID_VALUEthe handle is invalid.

◆ hipsparseLtInit()

hipsparseStatus_t hipsparseLtInit ( hipsparseLtHandle_t handle)

Create a hipSPARSELt handle.

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

Parameters
[out]handlehipsparselt library handle.
Return values
HIPSPARSE_STATUS_SUCCESSthe initialization succeeded.
HIPSPARSE_STATUS_INVALID_VALUEthe handle is invalid.