cubecl_hip_sys

Function hipModuleLoad

Source
pub unsafe extern "C" fn hipModuleLoad(
    module: *mut hipModule_t,
    fname: *const c_char,
) -> hipError_t
Expand description

ยง@} / /**


@defgroup Module Module Management @{ @ingroup API This section describes the module management functions of HIP runtime API.

/ /** @brief Loads code object from file into a module the currrent context.

@param [in] fname Filename of code object to load

@param [out] module Module

@warning File/memory resources allocated in this function are released only in hipModuleUnload.

@returns #hipSuccess, #hipErrorInvalidValue, #hipErrorInvalidContext, #hipErrorFileNotFound, #hipErrorOutOfMemory, #hipErrorSharedObjectInitFailed, #hipErrorNotInitialized