rocsparse_set_pointer_mode Interface Reference

rocsparse_set_pointer_mode Interface Reference#

HIPFORT API Reference: hipfort_rocsparse::rocsparse_set_pointer_mode Interface Reference
hipfort_rocsparse::rocsparse_set_pointer_mode Interface Reference

Specify pointer mode. More...

Public Member Functions

integer(kind(rocsparse_status_success)) function rocsparse_set_pointer_mode_ (handle, pointer_mode)
 

Detailed Description

Specify pointer mode.

rocsparse_set_pointer_mode specifies the pointer mode to be used by the rocSPARSE library context and all subsequent function calls. By default, all values are passed by reference on the host. Valid pointer modes are rocsparse_pointer_mode_host or rocsparse_pointer_mode_device.

Parameters
[in]handlethe handle to the rocSPARSE library context.
[in]pointer_modethe pointer mode to be used by the rocSPARSE library context.
Return values
rocsparse_status_successthe operation completed successfully.
rocsparse_status_invalid_handlehandle is invalid.

Member Function/Subroutine Documentation

◆ rocsparse_set_pointer_mode_()

integer(kind(rocsparse_status_success)) function hipfort_rocsparse::rocsparse_set_pointer_mode::rocsparse_set_pointer_mode_ ( type(c_ptr), value  handle,
integer(kind(rocsparse_pointer_mode_host)), value  pointer_mode 
)

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