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

SSE instruction in enclave

hyunsoo
New Contributor I
597 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
586 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

0 Kudos
2 Replies
JesusG_Intel
Moderator
587 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






0 Kudos
JesusG_Intel
Moderator
573 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.


0 Kudos
Reply