Intel® Software Guard Extensions (Intel® SGX)
Discussion board focused on hardware-based isolation and memory encryption to provide extended code protection in solutions.

missing sgx_dnnl

MoonHasSevenColor
740 Views

 

Hello,

 

when I executed "make" for a SGX program, it came error that -lsgx_dnnl is missing, may I ask how should I configure and download sgx_dnnl? I attach the error report screenshot. Thank you!

 

MoonHasSevenColor_0-1692116270224.png

 

 

 

Best Regards,

Jin Xin

 

0 Kudos
3 Replies
Wan_Intel
Moderator
709 Views

Hello MoonHasSevenColor,

Thanks for reaching out to us.

Let me check with relevant team and I'll update you at the earliest.



Regards,

Wan


0 Kudos
Wan_Intel
Moderator
679 Views

Hello MoonHasSevenColor,

Thanks for your patience.

 

To build the Intel® SGX DNNL library, follow the steps below:

1. Download Intel® SGX source codes.

2. Enter linux-trunk/external/dnnl/

3. Execute make command. The Makefile will download Intel® DNNL V1.1.1 source codes and patch the Intel® SGX-specific patch automatically.

 

To install Intel® SGX DNNL library, follow the steps below:

1. Copy Intel® SGX DNNL lib to the Intel® SGX SDK installation directory. $cp "./sgx_dnnl/lib/libsgx_dnnl.a" "$(SGX_SDK) /lib64"

2. Copy Intel® SGX DNNL header file to the Intel® SGX SDK installation directory. $cp "./sgx_dnnl/include/*" "$(SGX_SDK)/include"

 

To enable Intel® SGX DNNL in Enclave, do the following:

1. On Intel® SGX1 platform, set to 1 in the Enclave Configuration File.

2. Add "-lsgx_pthread -lsgx_omp -lsgx_dnnl" into enclave linking options in Makefile.

 

Please refer to SGX Intel Developer Guide for Linux for more information: https://download.01.org/intel-sgx/latest/linux-latest/docs/Intel_SGX_Developer_Reference_Linux_2.20_Open_Source.pdf

 

This sample in the SGX SDK is also helpful: https://github.com/intel/linux-sgx/tree/master/SampleCode/SampleDNNL

 

 

Regards,

Wan


0 Kudos
Wan_Intel
Moderator
611 Views

Hello MoonHasSevenColor,

Thanks for your question.

If you need additional information from Intel, please submit a new question as this thread will no longer be monitored.



Regards,

Wan


0 Kudos
Reply