-
Notifications
You must be signed in to change notification settings - Fork 548
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OpenMP in Enclave #826
Comments
edl should import pthread ocalls like
|
@llly thank you! Now it works :) I am unsure, but maybe it would be a good idea to add this tip to the Developer Reference? On page 145 it only says: To enable Intel® SGX OpenMP library in an enclave, follow the steps below to update the Makefile:
|
Thanks for the advice. SGX OpenMP depends on the SGX pthread lib and requires the SGX pthread EDL file as well. We can add this dependency to the OpenMP description in the Developer Reference. |
I would like to use OpenMP in an SGX Enclave. I have built a minimal example based on the
SampleEnclave
and added-fopenmp
as compiler option and-lsgx_pthread
and-lsgx_omp
as enclave linking options in the Makefile. Unfortunately I get the following error:Did I forget a necessary step to use omp in the enclave? Thank you!
Add the code below to the sample enclave.
Not tested so far.
Makefile
Enclave.cpp:
App.cpp:
Enclave.edl
The text was updated successfully, but these errors were encountered: