Replies: 1 comment 3 replies
-
Do you mean the setting in the TBB library? Have you adjusted the |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am attempting to use multi-threading with the TBB library to optimize the performance of my algorithm. The implementation works well in both REE and Gramine-direct modes, but I am encountering a significant slowdown in Gramine-SGX.
Here are the results of my experiments:
Max threads set to 1:
The performance is comparable across REE, Gramine-direct, and Gramine-SGX.
Max threads set to 16:
The performance remains comparable between REE and Gramine-direct. However, in Gramine-SGX, the performance slows down by approximately 5x.
Notably, the algorithm does not involve any I/O operations, so I suspect this is not an issue related to Ocall/Ecall overhead.
Questions:
Does Gramine-SGX have limited support for TBB or multi-threading in general?
Could this slowdown be inherent to the SGX architecture's multi-threading support?
I would greatly appreciate any insights or guidance on this issue. Thank you!
Beta Was this translation helpful? Give feedback.
All reactions