hipmoduleloaddata Interface Reference

hipmoduleloaddata Interface Reference#

HIPFORT API Reference: hipfort::hipmoduleloaddata Interface Reference
hipfort::hipmoduleloaddata Interface Reference

builds module from code object data which resides in host memory. More...

Public Member Functions

integer(kind(hipsuccess)) function hipmoduleloaddata_ (mymodule, image)
 

Detailed Description

builds module from code object data which resides in host memory.

The "image" is a pointer to the location of code object data. This data can be either a single code object or a fat binary (fatbin), which serves as the entry point for loading and launching device-specific kernel executions.

By default, the following command generates a fatbin:

"amdclang++ -O3 -c --offload-device-only --offload-arch=<GPU_ARCH> <input_file> -o <output_file>"

For more details, refer to: Kernel Compilation in the HIP kernel language C++ support, or HIP runtime compilation (HIP RTC).

Parameters
[in]imageThe pointer to the location of data
[out]moduleRetuned module
Returns
hipSuccess, hipErrorNotInitialized, hipErrorOutOfMemory, hipErrorNotInitialized

Member Function/Subroutine Documentation

◆ hipmoduleloaddata_()

integer(kind(hipsuccess)) function hipfort::hipmoduleloaddata::hipmoduleloaddata_ ( type(c_ptr)  mymodule,
type(c_ptr), value  image 
)

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