-
Notifications
You must be signed in to change notification settings - Fork 101
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
Allow specifying number of worker threads used to run an enclave #625
Conversation
b9af71e
to
cc998ae
Compare
I had been working the CI fixes here which you will face in your CI job too - #624 |
da2817c
to
cc998ae
Compare
cc998ae
to
ea171ab
Compare
Thanks @aditijannu. I'll rebase this PR once your PR lands. |
ea171ab
to
cbe6600
Compare
} | ||
|
||
/// Panics if you have previously called [`arg`] or [`args`]. | ||
/// Panics if you have previously called [`arg`], [`args`], or [`num_worker_threads`]. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
With so many parameters that aren't shared between Command and Library enclaves, does it maybe make sense to have separate builders for Command and Library enclaves? That way, each type of builder could only have the parameters that make sense for the type of enclave it builds.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree. But that would be a breaking change. I think it's better to release a sem-ver compatible version with this change, and leave this kind of refactoring to a future sem-ver breaking version.
4fd27d4
to
2fa7a24
Compare
2fa7a24
to
4f3aef7
Compare
@raoulstrackx @aditijannu @Taowyoo @mzohreva @Goirad Could you take a look at this PR? We need to merge this soon. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lgtm,, left one question regarding available range of input thread number
This change allows users of this library to specify the number of worker threads. This lets users limit the number of cores used by an enclave.
This is a backwards-compatible change.