pub unsafe extern "C" fn hiprtcCreateProgram(
prog: *mut hiprtcProgram,
src: *const c_char,
name: *const c_char,
numHeaders: c_int,
headers: *mut *const c_char,
includeNames: *mut *const c_char,
) -> hiprtcResult
Expand description
@ingroup Runtime @brief Creates an instance of hiprtcProgram with the given input parameters, and sets the output hiprtcProgram prog with it.
@param [in, out] prog runtime compilation program instance. @param [in] src const char pointer to the program source. @param [in] name const char pointer to the program name. @param [in] numHeaders number of headers. @param [in] headers array of strings pointing to headers. @param [in] includeNames array of strings pointing to names included in program source. @returns #HIPRTC_SUCCESS
Any invalide input parameter, it will return #HIPRTC_ERROR_INVALID_INPUT or #HIPRTC_ERROR_INVALID_PROGRAM.
If failed to create the program, it will return #HIPRTC_ERROR_PROGRAM_CREATION_FAILURE.
@see hiprtcResult