Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sequential task execution policy #1273

Merged
merged 10 commits into from Sep 23, 2014

Conversation

hkaiser
Copy link
Member

@hkaiser hkaiser commented Sep 22, 2014

This patch

  • adds a new execution policy for the parallel algorithms: sequential_task_execution_policy (for sequential asynchronous execution)
  • renames task_execution_policy to parallel_task_execution_policy (for parallel asynchronous execution)

Both asynchronous execution policies can be specified by adding the task modifier to the predefined par and seq execution policies. FOr instance:

vector<int> v = { ... };
future<void> f = parallel::for_each(seq(task), begin(v), end(v), [](int v) { ... });

(or par(task), respectively).

All of the documentation and all tests have been updated as well.

@K-ballo
Copy link
Member

K-ballo commented Sep 23, 2014

Looks good to me

hkaiser added a commit that referenced this pull request Sep 23, 2014
@hkaiser hkaiser merged commit eebdead into STEllAR-GROUP:master Sep 23, 2014
@hkaiser hkaiser deleted the sequential_task_execution_policy branch September 23, 2014 00:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants