hiplibrarygetmanaged_ Interface Reference

hiplibrarygetmanaged_ Interface Reference#

hipFORT API Reference: hipfort::hiplibrarygetmanaged_ Interface Reference
hipfort::hiplibrarygetmanaged_ Interface Reference

Get host pointer to a __managed__ variable defined in a library. More...

Public Member Functions

integer(c_int) function hiplibrarygetmanaged_ (dptr, bytes, library, name)
 

Detailed Description

Get host pointer to a __managed__ variable defined in a library.

Returns the host-accessible managed pointer and size of the named managed symbol within the library's code object. Mirrors CUDA's cuLibraryGetManaged / cudaLibraryGetManaged. Either dptr or bytes (but not both) may be NULL. Returns hipErrorNotFound if the symbol does not exist or is not a __managed__ variable.

Parameters
[out]dptrPointer to receive the managed host pointer, may be NULL.
[out]bytesPointer to receive the size in bytes, may be NULL.
[in]libraryInput hip library handle.
[in]nameName of the managed symbol to look up.
Returns
hipSuccess, hipErrorInvalidValue, hipErrorInvalidResourceHandle, hipErrorNotFound

Constructor & Destructor Documentation

◆ hiplibrarygetmanaged_()

integer(c_int) function hipfort::hiplibrarygetmanaged_::hiplibrarygetmanaged_ ( type(c_ptr), value  dptr,
type(c_ptr), value  bytes,
type(c_ptr), value  library,
type(c_ptr), value  name 
)

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