Intel® Software Guard Extensions (Intel® SGX)
Use hardware-based isolation and memory encryption to provide more code protection in your solutions.

SSE instruction in enclave

hyunsoo
New Contributor I
251 Views

Are SSE instructions possible in enclave? (such as _mm_set1_ps, _mm_add_ps, etc)

 

Thank you.

0 Kudos
1 Solution
JesusG_Intel
Moderator
240 Views

Hello Hyunsoo,


Yes, it is possible to use SSE instructions from within enclaves but you will have to manually copy the relevant header files to your enclave's include directory. For example, Step 3 in the Eigen in Intel SGX Github states:


"Locate the following files in system directories and copy them over to Include/intrinsic. Usually, they are located in gcc's include directory (e.g. /usr/lib/gcc/x86_64-linux-gnu/6.5.0/include).

  • emmintrin.h
  • mmintrin.h
  • mm_malloc.h
  • xmmintrin.h"


You will have to do the same if using Windows.


Sincerely,

Jesus G.

Intel Customer Support






View solution in original post

2 Replies
JesusG_Intel
Moderator
241 Views

Hello Hyunsoo,


Yes, it is possible to use SSE instructions from within enclaves but you will have to manually copy the relevant header files to your enclave's include directory. For example, Step 3 in the Eigen in Intel SGX Github states:


"Locate the following files in system directories and copy them over to Include/intrinsic. Usually, they are located in gcc's include directory (e.g. /usr/lib/gcc/x86_64-linux-gnu/6.5.0/include).

  • emmintrin.h
  • mmintrin.h
  • mm_malloc.h
  • xmmintrin.h"


You will have to do the same if using Windows.


Sincerely,

Jesus G.

Intel Customer Support






JesusG_Intel
Moderator
227 Views

This thread has been marked as answered and Intel will no longer monitor this thread. If you want a response from Intel in a follow-up question, please open a new thread.


Reply