Replies: 3 comments 2 replies
-
@fwoodruff Thanks for the question!
For this POSIX shared memory to work, I think you may want to try mounting |
Beta Was this translation helpful? Give feedback.
-
@fwoodruff This is a known issue in some versions of You can read about this bug here: IIUC, it was completely fixed in LLVM OpenMP v18.1.0. I don't know whether and how it was fixed in I would dissuade you from trying @kailun-qin workaround of enabling
This way you are guaranteed that whatever files the OpenMP library creates in
Gramine doesn't share any code/logic/tricks with Intel SGX SDK. So please don't try to use Intel SGX SDK tricks with Gramine.
I believe your microservice is built using the LLVM stack? Or your base OS in the Docker image uses the LLVM stack? In this case, |
Beta Was this translation helpful? Give feedback.
-
I think I tried the above. I am running:
and my manifest file looks like:
I also tried a few variants on the allowed files, changing 'dev' to 'file' and allowing whole folders rather than just the __KMP device. What should I try next? The non-Graminised image builds and runs fine. |
Beta Was this translation helpful? Give feedback.
-
I have a C++ microservice I am looking to run inside an SGX enclave. I am able to produce a Docker image that works fine outside Gramine. Using GSC, I am able to sign and build my executable however I am getting the runtime error:
I believe this error occurs because the microservice relies on OpenMP; the C++ makefile contains the
-lomp
linker flag.I have tried installing libgomp inside the docker file.
This has no effect on the error.
This looked interesting so I tried changing the
-lomp
linker flag to-lsgx_omp
which Make would no longer compile so this didn't seem the right route.I tried installing the binary at
https://download.01.org/intel-sgx/sgx-linux/2.23/distro/ubuntu22.04-server/sgx_linux_x64_sdk_2.23.100.2.bin inside the container, without much luck there either.
How do I run a program that relies on OpenMP inside a GSC 'Graminised' Docker container?
Beta Was this translation helpful? Give feedback.
All reactions