hipmodulegetglobal Interface Reference

hipmodulegetglobal Interface Reference#

HIPFORT API Reference: hipfort::hipmodulegetglobal Interface Reference
hipfort::hipmodulegetglobal Interface Reference

Returns a global pointer from a module. More...

Public Member Functions

integer(kind(hipsuccess)) function hipmodulegetglobal_ (dptr, bytes, hmod, name)
 

Detailed Description

Returns a global pointer from a module.

Returns in *dptr and *bytes the pointer and size of the global of name name located in module hmod. If no variable of that name exists, it returns hipErrorNotFound. Both parameters dptr and bytes are optional. If one of them is NULL, it is ignored and hipSuccess is returned.

Parameters
[out]dptr- Returns global device pointer
[out]bytes- Returns global size in bytes
[in]hmod- Module to retrieve global from
[in]name- Name of global to retrieve
Returns
hipSuccess, hipErrorInvalidValue, hipErrorNotFound, hipErrorInvalidContext

Member Function/Subroutine Documentation

◆ hipmodulegetglobal_()

integer(kind(hipsuccess)) function hipfort::hipmodulegetglobal::hipmodulegetglobal_ ( type(c_ptr)  dptr,
integer(c_size_t)  bytes,
type(c_ptr), value  hmod,
type(c_ptr), value  name 
)

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