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
54874e73
Commit
54874e73
authored
Jun 06, 2018
by
nhynes
Committed by
Tianqi Chen
Jun 06, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove SGX demo private key from repo (#1237)
parent
34630e81
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 additions
and
27 deletions
+1
-27
apps/sgx/Makefile
+1
-1
apps/sgx/prepare_test_libs.py
+0
-26
No files found.
apps/sgx/Makefile
View file @
54874e73
...
...
@@ -78,7 +78,7 @@ lib/test_addone.so: $(TVM_ROOT)/src/runtime/sgx/trusted/runtime.cc lib/tvm_t.o l
# The signed enclave
lib/test_addone.signed.so
:
lib/test_addone.so enclave_config.xml
$(sgx_enclave_signer)
sign
-key
enclave_privat
e.pem
-enclave
$<
-out
$@
-config
enclave_config.xml
$(sgx_enclave_signer)
sign
-key
lib/enclav
e.pem
-enclave
$<
-out
$@
-config
enclave_config.xml
clean
:
rm
-rf
lib
apps/sgx/prepare_test_libs.py
View file @
54874e73
"""Script to prepare test_addone_sys.o"""
from
os
import
path
as
osp
import
tvm
CWD
=
osp
.
dirname
(
osp
.
abspath
(
osp
.
expanduser
(
__file__
)))
def
prepare_test_libs
(
base_path
):
n
=
tvm
.
var
(
'n'
)
A
=
tvm
.
placeholder
((
n
,),
name
=
'A'
)
B
=
tvm
.
compute
(
A
.
shape
,
lambda
*
i
:
A
(
*
i
)
+
1
,
name
=
'B'
)
s
=
tvm
.
create_schedule
(
B
.
op
)
s
[
B
]
.
parallel
(
s
[
B
]
.
op
.
axis
[
0
])
print
(
tvm
.
lower
(
s
,
[
A
,
B
],
simple_mode
=
True
))
# Compile library in system library mode
fadd_syslib
=
tvm
.
build
(
s
,
[
A
,
B
],
'llvm --system-lib'
)
syslib_path
=
osp
.
join
(
base_path
,
'test_addone_sys.o'
)
fadd_syslib
.
save
(
syslib_path
)
def
main
():
prepare_test_libs
(
osp
.
join
(
CWD
,
'lib'
))
if
__name__
==
'__main__'
:
main
()
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