You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is it possible to spawn a range of tasks? In my application, I need to spawn tasks based on some runtime conditions. I would like to spawn tasks as the following pseudo code,
std::vector<tasks> TASKS = {t0, t1};
if (condition) TASKS.push_back(t2);
for (auto t : TASKS) {
cilk_spawn t;
}
or the following(preferred),
cilk_spawn TASKS.begin() TASKS.end()
I did not find similar examples. Thank you.
The text was updated successfully, but these errors were encountered:
Hello,
Is it possible to spawn a range of tasks? In my application, I need to spawn tasks based on some runtime conditions. I would like to spawn tasks as the following pseudo code,
or the following(preferred),
I did not find similar examples. Thank you.
The text was updated successfully, but these errors were encountered: