utds3lab / sgx-nbench Goto Github PK
View Code? Open in Web Editor NEWThe nbench benchmark ported to SGX.
The nbench benchmark ported to SGX.
Benchmark for Intel SGX This program is an adaptation of nbench-byte-2.2.3 to work on Intel SGX hardware with the purpose of evaluating the performance of different benchmarks inside of an enclave application and to compare its overhead, if any, against unmodified applications. How To Run first compile all the files using the command make ($make) after the files have been compiled, run the application ($./app) Files Included in the Project: Makefile README.txt sampleExecution.txt bdoc.txt Changes COM.DAT debugbit.good.gz emfloat.c emfloat.h f.c gmon.out hardware hardware.c hardware.h Makefile Makefile2 Makefile.justchanged Makefile.withchanges misc.c misc.h nbench0.c nbench0.c.orig nbench0.h nbench1.c nbench1 (copy).c nbench1.h nmglobal.h NNET.DAT pointer.c raul.c README README.motorola README.nonlinux README.submit RESULTS sgxPort.c sysinfoc.c.example sysinfoc.c.template sysinfo.c.example sysinfo.c.template sysinfo.sh sysspec.c sysspec.h wordcat.h x.h user_types.h Enclave.config.xml Enclave.cpp Enclave.cpp.orig Enclave.edl Enclave.edl.orig Enclave.h Enclave.lds Enclave_private.pem encl_emfloat.c App.cpp App.cpp.orig App.h App.h.orig How To Clean Compiled Project simply run the command make clean to delete all compiled files ($make clean) Possible Problems Compiling the file sysinfo.sh inside the directory /nbenchPortal needs to have executing privileges. If an error occurs, change permissions on the file using chmod ($chmod +x nbenchPortal/sysinfo.sh)
Hi,
I am trying to compile sgx-nbench from my machine. In its Makefile, its Enclave_Link_Flags uses the deprecated -lsgx_tstdcxx library, so I modified this to -lsgx_tcxx and then tried "make". But I get the following error:
g++ Enclave/encl_emfloat.o Enclave/Enclave_t.o Enclave/Enclave.o -o enclave.so -m64 -O2 -Wl,--no-undefined -nostdlib -nostartfiles -L/opt/intel/sgxsdk/lib64 -Wl,--whole-archive -lsgx_trts -Wl,--no-whole-archive -Wl,--start-group -lsgx_tstdc -lsgx_tcxx -lsgx_tcrypto -lsgx_tservice -Wl,--end-group -Wl,-Bstatic -Wl,-Bsymbolic -Wl,--no-undefined -Wl,-pie,-eenclave_entry -Wl,--export-dynamic -Wl,--defsym,__ImageBase=0 -Wl,--version-script=Enclave/Enclave.lds
/opt/intel/sgxsdk/lib64/libsgx_tstdc.a(se_cpuid.o): In function `sgx_cpuidex':
se_cpuid.c:(.text.sgx_cpuidex+0x6): undefined reference to `sgx_oc_cpuidex'
/opt/intel/sgxsdk/lib64/libsgx_tstdc.a(se_cpuid.o): In function `sgx_cpuid':
se_cpuid.c:(.text.sgx_cpuid+0x8): undefined reference to `sgx_oc_cpuidex'
collect2: error: ld returned 1 exit status
Makefile:199: recipe for target 'enclave.so' failed
make: *** [enclave.so] Error 1
Could you please give me a hint what went wrong? I am using the latest linux-sgx source code.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.