Commit e380c8a4 by nhynes Committed by Tianqi Chen

Use single-threaded SGX parallel (#975)

parent 7742123a
......@@ -10,13 +10,13 @@
#include "../../src/runtime/registry.cc"
#include "../../src/runtime/system_lib_module.cc"
// dummy parallel runtime
// dummy parallel runtime (for now)
int TVMBackendParallelLaunch(
FTVMParallelLambda flambda,
void* cdata,
int num_task) {
TVMAPISetLastError("Parallel is not (yet) supported in SGX runtime");
return -1;
TVMParallelGroupEnv env = { nullptr /* sync_handle */, 1 /* num_task */ };
return flambda(0 /* task_id */, &env, cdata);
}
int TVMBackendParallelBarrier(int task_id, TVMParallelGroupEnv* penv) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment