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

Adding functionalities to datapar needed by octotiger #2388

Merged
merged 6 commits into from Nov 16, 2016

Conversation

hkaiser
Copy link
Member

@hkaiser hkaiser commented Nov 12, 2016

  • adding datapar serialization
  • adding fixed size arrays support from Vc
  • enable using datapar_execution on input ranges over vector packs (Vc only for now)

- adding datapar serialization
- adding fixed size arrays support from Vc
- enable using datapar_execution on input ranges over vector packs (Vc only for now)
- flyby: added datapar_..._shim<> execution policies
- added tests
@hkaiser hkaiser force-pushed the datapar_octotiger branch 3 times, most recently from 1362e1e to b0afa3d Compare November 15, 2016 23:30
- properly implement dataseq execution policies
@@ -26,17 +27,18 @@
namespace hpx { namespace parallel { HPX_INLINE_NAMESPACE(v1)
{
///////////////////////////////////////////////////////////////////////////
/// Extension: The class datapar_task_execution_policy is an execution
/// Extension: The class sequential_task_execution_policy is an execution
Copy link
Member

Choose a reason for hiding this comment

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

why the change from datapar_task_execution_policy? Shouldn't it be dataseq_task_execution_policy?

Copy link
Member Author

Choose a reason for hiding this comment

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

Stupid mistake, thanks

///
template <typename... Parameters, typename ParametersType =
typename executor_parameters_join<Parameters...>::type>
typename rebind_executor<
datapar_task_execution_policy, executor_type, ParametersType
sequential_task_execution_policy, executor_type, ParametersType
Copy link
Member

Choose a reason for hiding this comment

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

shouldn't that be dataseq_task_execution_policy?

Copy link
Member Author

Choose a reason for hiding this comment

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

Thanks, copy&paste error.

>::type
with(Parameters &&... params) const
{
typedef typename rebind_executor<
datapar_task_execution_policy, executor_type, ParametersType
sequential_task_execution_policy, executor_type, ParametersType
Copy link
Member

Choose a reason for hiding this comment

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

same as above

{
/// \cond NOINTERNAL
template <>
struct is_datapar_execution_policy<dataseq_execution_policy>
Copy link
Member

Choose a reason for hiding this comment

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

so dataseq is a datapar execution policy? That sounds confusing.

Copy link
Member Author

Choose a reason for hiding this comment

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

is_datapar_execution_policy should probably be renamed to something else, I'm not sure what name to use, though. Any ideas?

@hkaiser
Copy link
Member Author

hkaiser commented Nov 16, 2016

@sithhell all review comments have been addressed

@hkaiser hkaiser merged commit ed55f66 into master Nov 16, 2016
@hkaiser hkaiser deleted the datapar_octotiger branch November 16, 2016 19:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Standard Algorithms
  
Merged to master
Development

Successfully merging this pull request may close these issues.

None yet

2 participants