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

Constructor & Destructor Documentation

◆ hipmodulegetglobal_()

integer(c_int) function hipfort::hipmodulegetglobal_::hipmodulegetglobal_ ( type(c_ptr), value  dptr,
type(c_ptr), value  bytes,
type(c_ptr), value  hmod,
type(c_ptr), value  name 
)

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