Hi,
I'm trying to tune grain size in my application that uses cilk_for. Is there a reason why the grain size in #pragma cilk grainsize(grain_size) needs to be a constant expression? As far as I know, previous implementation of cilkplus by Intel did allow the expression to be evaluated at runtime.
Is there a way to set the grain size at runtime? Thank you very much!
Tuan
Hi,
I'm trying to tune grain size in my application that uses
cilk_for. Is there a reason why the grain size in#pragma cilk grainsize(grain_size)needs to be a constant expression? As far as I know, previous implementation of cilkplus by Intel did allow the expression to be evaluated at runtime.Is there a way to set the grain size at runtime? Thank you very much!
Tuan