Function tvm::runtime::function::ffi::TVMBackendParallelLaunch [−][src]
pub unsafe extern "C" fn TVMBackendParallelLaunch(
flambda: Option<unsafe extern "C" fn(i32, *mut TVMParallelGroupEnv, *mut c_void) -> i32>,
cdata: *mut c_void,
num_task: i32
) -> i32
Expand description
\brief Backend function for running parallel jobs.
\param flambda The parallel function to be launched. \param cdata The closure data. \param num_task Number of tasks to launch, can be 0, means launch with all available threads.
\return 0 when no error is thrown, -1 when failure happens