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

Changed return type of bulk executors and added test #1538

Merged
merged 4 commits into from May 22, 2015
Merged

Changed return type of bulk executors and added test #1538

merged 4 commits into from May 22, 2015

Conversation

dcbdan
Copy link
Contributor

@dcbdan dcbdan commented May 21, 2015

The default return type of bulk_execute and bulk_async_execute was changed from void and hpx::future<void> to std::vector<return_of_F_type> (void if return_of_F_type is void) and std::vector<hpx::future<return_of_F_type> > for each of the executors and for the behavior of executor_traits. Note that the return type is forwarded from the executor_type so a user can easily create an executor with the behavior described by n4406. This was tested in created_executor.cpp.

For sequential_executor, I don't think hpx::util::unwrapped is optimal in bulk_execute. Any suggestions? Also, executor tests compiled on my machine but running thread_pool_executors_test failed about half of the time. I got {what}: assertion 'running()' failed: HPX(assertion_failure)

// Create shape argument for parallel_executor
std::vector<range> split(iter first, iter last, int parts)
{
typedef typename std::iterator_traits<iter>::difference_type sz_type;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This typename is superfluous.

@hkaiser
Copy link
Member

hkaiser commented May 21, 2015

Could you add some tests for the new bulk_async_execute() functionality?

@dcbdan
Copy link
Contributor Author

dcbdan commented May 21, 2015

Are the added tests what you had in mind? Only sequential_executor, parallel_executor and parallel_fork_executor was used. Also, next I plan to make tests using the .on syntax for algorithms if there are no objections.

@hkaiser
Copy link
Member

hkaiser commented May 22, 2015

While there is still an #include missing, I'll go ahead and merge it over to the main N4406 branch. That will simplify testing, etc.

hkaiser added a commit that referenced this pull request May 22, 2015
Changed return type of bulk executors and added test
@hkaiser hkaiser merged commit 806e3df into STEllAR-GROUP:n4406 May 22, 2015
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

2 participants