Skip to main content

mcl_task_init

Function mcl_task_init 

Source
pub unsafe extern "C" fn mcl_task_init(
    prg_path: *mut c_char,
    kname: *mut c_char,
    nargs: u64,
    copts: *mut c_char,
    flags: c_ulong,
) -> *mut mcl_handle
Expand description

@brief Creates a new task and initializes it with the specified kernel @ingroup General

@param prg_path Path to .cl file containing the kernel @param kname The name of the kernel @param nargs Number of arguments @param copts Additional compiler flags @param flags 0 or MCL_FLAG_NO_RES @return mcl_handle