Skip to content
This repository was archived by the owner on Jan 26, 2022. It is now read-only.

Conversation

@jon-chuang
Copy link

Recursive verification and finer-granularity parallelisation in multi_scalar_mul_scaled to take advantage of arbitrary number of cores. Requires tuning of PARALLELISM parameter.

@jon-chuang
Copy link
Author

Not sure if calling rayon::scope(|s|..) recursively would cause threads to spin (or at least become blocked/used in the threadpool) while waiting... Ought to recall some basic OS knowledge.

rayon::scope in general is really annoying...

What we really want is if a thread in a scope encounters a child scope, its state gets put on a stackframe and the thread is then freed to do some other work. Then when the scope ends, the thread gets reactivated, to continue the work.

Also not sure whether the fundamental unit is processes or cpu virtual threads...

@kobigurk
Copy link

@jon-chuang should we close this for now? We can keep the branch for posterity.

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