Git Product home page Git Product logo

sgx-nbench's Introduction

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) 

sgx-nbench's People

Contributors

raulqt avatar

Stargazers

Xueliang Wei avatar  avatar  avatar Mario López avatar  avatar Chenyang Liu avatar Kaede Shiina  avatar 小气球归来 avatar xiangping-INTEL avatar Zuoru Yang avatar Sandeep avatar DONGPING ZHANG avatar Weijie Liu avatar Mohamed Saher avatar

Watchers

James Cloos avatar  avatar  avatar  avatar

sgx-nbench's Issues

Compilation Error: undefined reference to `sgx_oc_cpuidex'

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.