Skip to content

Runtime grain size support #99

Answered by neboat
qtt2 asked this question in Q&A
May 20, 2021 · 4 comments · 1 reply
Discussion options

You must be logged in to vote

Hey Tuan,

Essentially, OpenCilk's grainsize pragma requires constant grainsizes because this restriction simplifies the OpenCilk design and implementation while simultaneously accommodating and encouraging reasonable uses of the grainsize pragma, specifically, to reduce scheduling overheads.

Here's some more context behind the grainsize pragma.

Cilk programs achieve good parallel speedup when they expose ample parallelism to the runtime system. (Typically, one wants the program's parallelism to exceed the number of Cilk workers by roughly a factor of 10.) Intuitively, that means that Cilk programs should aim to expose as much parallel work as possible.

Of course, there are practical reaso…

Replies: 4 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by neboat
Comment options

You must be logged in to vote
1 reply
@adnan4791
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants
Converted from issue

This discussion was converted from issue #54 on June 24, 2022 19:49.