28 #ifndef TVM_RUNTIME_C_BACKEND_API_H_
29 #define TVM_RUNTIME_C_BACKEND_API_H_
52 int dtype_code_hint,
int dtype_bits_hint);
TVM_RUNTIME_DLL int TVMBackendParallelLaunch(FTVMParallelLambda flambda, void *cdata, int num_task)
Backend function for running parallel jobs.
TVM_RUNTIME_DLL int TVMBackendParallelBarrier(int task_id, TVMParallelGroupEnv *penv)
BSP barrrier between parallel threads.
int(* FTVMParallelLambda)(int task_id, TVMParallelGroupEnv *penv, void *cdata)
The callback function to execute a parallel lambda.
Definition: c_backend_api.h:84
TVM_RUNTIME_DLL void * TVMBackendAllocWorkspace(int device_type, int device_id, uint64_t nbytes, int dtype_code_hint, int dtype_bits_hint)
Backend function to allocate temporal workspace.
TVM_RUNTIME_DLL int TVMBackendFreeWorkspace(int device_type, int device_id, void *ptr)
Backend function to free temporal workspace.
constexpr const char * device_id
The allocation device for global malloc in host.
Definition: stmt.h:994
constexpr const char * device_type
The device type.
Definition: stmt.h:998
#define TVM_RUNTIME_DLL
Definition: base.h:92
Environment for TVM parallel task.
Definition: c_backend_api.h:69
void * sync_handle
Auxiliary used for synchronization.
Definition: c_backend_api.h:73
int32_t num_task
total amount of task
Definition: c_backend_api.h:75