intel / linux-sgx

Intel SGX for Linux*
https://www.intel.com/content/www/us/en/developer/tools/software-guard-extensions/linux-overview.html
Other
1.32k stars 543 forks source link

Inquiry about SGX's Support for SIMD Instruction Sets and Access to XMM or YMM Registers #1008

Open li0926 opened 9 months ago

li0926 commented 9 months ago

Hello, I would like to inquire about SGX's support for SIMD instruction sets. Specifically, can programs running within SGX use all SIMD instructions supported by the processor? Is it possible to access all XMM or YMM registers?

adrianlut commented 8 months ago

Hi @li0926,

yes, this is possible. The compiler uses all optimizations it knows regarding SIMD. If you include the AVX headers in your project (they are not in the include path for SGX projects by default), you can also program with the intrinsics available on your platform.