NVPL Sparse Management API

The NVPL Sparse functions for managing the library are described in this section.


nvpl_sparse_create()

nvpl_sparse_status_t
nvpl_sparse_create(nvpl_sparse_handle_t *handle)

This function initializes the NVPL Sparse library and creates a handle on the NVPL Sparse context. It must be called before any other NVPL Sparse API function is invoked.

Param.

In/out

Meaning

handle

IN

The pointer to the handle to the NVPL Sparse context

See nvpl_sparse_status_t for the description of the return status


nvpl_sparse_destroy()

nvpl_sparse_status_t
nvpl_sparse_destroy(nvpl_sparse_handle_t handle)

This function releases CPU resources used by the NVPL Sparse library.

Param.

In/out

Meaning

handle

IN

The handle to the NVPL Sparse context

See nvpl_sparse_status_t for the description of the return status


nvpl_sparse_get_version()

nvpl_sparse_status_t
nvpl_sparse_get_version(nvpl_sparse_handle_t handle,
                        int*                 version)

This function returns the version number of the NVPL Sparse library.

Param.

In/out

Meaning

handle

IN

NVPL Sparse handle

version

OUT

The version number of the library

See nvpl_sparse_status_t for the description of the return status