Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
tic
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wenyuanbo
tic
Commits
6731f660
Commit
6731f660
authored
Mar 06, 2018
by
nhynes
Committed by
Tianqi Chen
Mar 06, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add SGX runtime (#963)
parent
3e543bd0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
7 deletions
+26
-7
apps/sgx/tvm_runtime_pack.cc
+1
-7
sgx/sgx_runtime.cc
+25
-0
No files found.
apps/sgx/tvm_runtime_pack.cc
View file @
6731f660
...
...
@@ -5,13 +5,7 @@
* Please refer to the Makefile (rule lib/tvm_runtime_pack.o) for how to build.
*
*/
#include "../../src/runtime/c_runtime_api.cc"
#include "../../src/runtime/cpu_device_api.cc"
#include "../../src/runtime/workspace_pool.cc"
#include "../../src/runtime/module_util.cc"
#include "../../src/runtime/module.cc"
#include "../../src/runtime/registry.cc"
#include "../../src/runtime/system_lib_module.cc"
#include "../../sgx/sgx_runtime.cc"
#ifndef _LIBCPP_SGX_CONFIG
#include "../../src/runtime/file_util.cc"
#endif
sgx/sgx_runtime.cc
0 → 100644
View file @
6731f660
/*!
* Copyright (c) 2018 by Contributors
* \file sgx_runtime.cc
*/
#include "../../src/runtime/c_runtime_api.cc"
#include "../../src/runtime/cpu_device_api.cc"
#include "../../src/runtime/workspace_pool.cc"
#include "../../src/runtime/module_util.cc"
#include "../../src/runtime/module.cc"
#include "../../src/runtime/registry.cc"
#include "../../src/runtime/system_lib_module.cc"
// dummy parallel runtime
int
TVMBackendParallelLaunch
(
FTVMParallelLambda
flambda
,
void
*
cdata
,
int
num_task
)
{
TVMAPISetLastError
(
"Parallel is not (yet) supported in SGX runtime"
);
return
-
1
;
}
int
TVMBackendParallelBarrier
(
int
task_id
,
TVMParallelGroupEnv
*
penv
)
{
return
0
;
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment