Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pass resnet50 sgx model test #1

Open
wants to merge 2 commits into
base: sgxdnnl
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion ODLA/platforms/dnnl/odla_dnnl.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1637,7 +1637,7 @@ odla_value odla_Gemm(odla_value lhs, odla_bool transpose_lhs, odla_value rhs,
auto ret_md = getMemoryDesc(output_dims, type);
auto ret_mem = dnnl::memory(ret_md, g_comp->eng);
// FIXME: alpha, beta, bias not handled.
op = [&]() {
op = [=]() {
int lda = lhs->shape.dims[1], ldb = rhs->shape.dims[1],
ldc = output_dims.dims[1];

Expand Down
19 changes: 15 additions & 4 deletions models/vision/classification/resnet/sgx/config.xml
Original file line number Diff line number Diff line change
@@ -1,11 +1,22 @@
<EnclaveConfiguration>
<ProdID>0</ProdID>
<ISVSVN>0</ISVSVN>
<StackMaxSize>0x40000</StackMaxSize>
<HeapMaxSize>0x100000</HeapMaxSize>
<TCSNum>10</TCSNum>
<StackMinSize>0x100000</StackMinSize>
<StackMaxSize>0x400000</StackMaxSize>
<HeapMinSize>1024000000</HeapMinSize>
<HeapMaxSize>2048000000</HeapMaxSize>
<HeapInitSize>1024000000</HeapInitSize>
<TCSNum>32</TCSNum>
<TCSMinPool>32</TCSMinPool>
<TCSMaxNum>1024</TCSMaxNum>
<TCSPolicy>1</TCSPolicy>
<!-- Recommend changing 'DisableDebug' to 1 to make the enclave undebuggable for enclave release -->
<DisableDebug>0</DisableDebug>
<MiscSelect>0</MiscSelect>
<MiscSelect>1</MiscSelect>
<MiscMask>0xFFFFFFFF</MiscMask>
<ReservedMemMinSize> 1024000000</ReservedMemMinSize>
<ReservedMemInitSize>1024000000</ReservedMemInitSize>
<ReservedMemMaxSize> 2048000000</ReservedMemMaxSize>
<!-- On SGX1 platform, ReservedMemExecutable==1 means set reserved memory as read, write and execute (RWX) -->
<ReservedMemExecutable>1</ReservedMemExecutable>
</EnclaveConfiguration>