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(c_int) 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

Constructor & Destructor Documentation

◆ hiplibrarygetglobal_()

integer(c_int) function hipfort::hiplibrarygetglobal_::hiplibrarygetglobal_ ( 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: