Skip to content
This repository was archived by the owner on Jun 30, 2025. It is now read-only.

Hybrid modexp method#2 - #33

Draft
justalittlenoob wants to merge 3 commits into
ipcl_v2.0.0from
zpf/hybrid-modexp-method#2
Draft

justalittlenoob wants to merge 3 commits into
ipcl_v2.0.0from
zpf/hybrid-modexp-method#2

Conversation

@justalittlenoob

Copy link
Copy Markdown
Contributor

No description provided.

Signed-off-by: Zhao Pengfei <pengfei.zhao@intel.com>
Signed-off-by: Zhao Pengfei <pengfei.zhao@intel.com>
Signed-off-by: Zhao Pengfei <pengfei.zhao@intel.com>
@skmono

skmono commented Nov 21, 2022

Copy link
Copy Markdown
Contributor

@justalittlenoob We might need a dedicated thread manager, that is initialized when IPCL library is called, which essentially generates a few "worker" threads - 1 for QATmodExp, a few (or maybe one) for IPPmodExp

Essentially the main thread and the workers will be inactive, with std::condition_variable where:
main thread - when modexp is needed, wake up the workers to standby. Start distributing batches of base/exponent/mod to workers)
workers - receive batch, change status to busy, perform modexp, release and return

What do you think?

@mosesojero

Copy link
Copy Markdown

Update

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants