Commit e380c8a4 by nhynes Committed by Tianqi Chen

Use single-threaded SGX parallel (#975)

parent 7742123a
...@@ -10,13 +10,13 @@ ...@@ -10,13 +10,13 @@
#include "../../src/runtime/registry.cc" #include "../../src/runtime/registry.cc"
#include "../../src/runtime/system_lib_module.cc" #include "../../src/runtime/system_lib_module.cc"
// dummy parallel runtime // dummy parallel runtime (for now)
int TVMBackendParallelLaunch( int TVMBackendParallelLaunch(
FTVMParallelLambda flambda, FTVMParallelLambda flambda,
void* cdata, void* cdata,
int num_task) { int num_task) {
TVMAPISetLastError("Parallel is not (yet) supported in SGX runtime"); TVMParallelGroupEnv env = { nullptr /* sync_handle */, 1 /* num_task */ };
return -1; return flambda(0 /* task_id */, &env, cdata);
} }
int TVMBackendParallelBarrier(int task_id, TVMParallelGroupEnv* penv) { 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