hiplibrarygetglobal Interface Reference

hiplibrarygetglobal Interface Reference#

hipFORT API Reference: hipfort::hiplibrarygetglobal Interface Reference
hipfort::hiplibrarygetglobal Interface Reference

Get device pointer to a __device__ global variable defined in a library. More...

Public Member Functions

integer(kind(hipsuccess)) function hiplibrarygetglobal_ (dptr, bytes, library, name)
 

Detailed Description

Get device pointer to a __device__ global variable defined in a library.

Returns the device pointer and size of the named global symbol within the library's code object. Mirrors CUDA's cuLibraryGetGlobal / cudaLibraryGetGlobal. Either dptr or bytes (but not both) may be NULL.

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

Member Function/Subroutine Documentation

◆ hiplibrarygetglobal_()

integer(kind(hipsuccess)) function hipfort::hiplibrarygetglobal::hiplibrarygetglobal_ ( type(c_ptr)  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: