Function TVMBackendParallelLaunch#
Defined in File c_backend_api.h
Function Documentation#
-
int TVMBackendParallelLaunch(FTVMParallelLambda flambda, void *cdata, int num_task)#
Backend function for running parallel jobs.
- Parameters:
flambda – The parallel function to be launched.
cdata – The closure data.
num_task – Number of tasks to launch, can be 0, means launch with all available threads.
- Returns:
0 when no error is thrown, -1 when failure happens