Skip to content
Snippets Groups Projects
Commit e380c8a4 authored by nhynes's avatar nhynes Committed by Tianqi Chen
Browse files

Use single-threaded SGX parallel (#975)

parent 7742123a
No related branches found
No related tags found
No related merge requests found
......@@ -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) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment