hiplibrarygetmodule Interface Reference

hiplibrarygetmodule Interface Reference#

hipFORT API Reference: hipfort::hiplibrarygetmodule Interface Reference
hipfort::hiplibrarygetmodule Interface Reference

Get the module handle backing a library. More...

Public Member Functions

integer(c_int) function hiplibrarygetmodule_ (pmod, library)
 

Detailed Description

Get the module handle backing a library.

Returns the hipModule_t that library was loaded into, so a library can be consumed by the module-based APIs

Parameters
[out]pModPointer to receive the module handle.
[in]libraryInput hip library handle to retrieve module from.
Returns
hipSuccess, hipErrorInvalidValue, hipErrorInvalidResourceHandle, hipErrorNotFound
Note
The returned module is owned by library and stays valid until hipLibraryUnload(). Do not release it with hipModuleUnload(), which returns hipErrorNotPermitted for such a handle.
See also
hipLibraryLoadData, hipLibraryLoadFromFile, hipLibraryUnload, hipModuleGetFunction, hipModuleUnload

Member Function/Subroutine Documentation

◆ hiplibrarygetmodule_()

integer(c_int) function hipfort::hiplibrarygetmodule::hiplibrarygetmodule_ ( type(c_ptr)  pmod,
type(c_ptr), value  library 
)

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