Function tvm_sys::ffi::TVMBackendParallelLaunch[][src]

pub unsafe extern "C" fn TVMBackendParallelLaunch(
    flambda: FTVMParallelLambda,
    cdata: *mut c_void,
    num_task: c_int
) -> c_int
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