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

Making parcel coalescing functional #1942

Merged
merged 6 commits into from Jan 12, 2016
Merged

Making parcel coalescing functional #1942

merged 6 commits into from Jan 12, 2016

Conversation

hkaiser
Copy link
Member

@hkaiser hkaiser commented Jan 5, 2016

This fixes #1941

- add parcelhandler::put_parcels
- fixed parcelport_impl::put_parcels not to send parcels separately
- add test for put_parcels
- flyby change: improved argument handling in coalescing_message_handler
- fixing parcelport::put_parcels API
- adding test
@hkaiser
Copy link
Member Author

hkaiser commented Jan 5, 2016

@justwagle, @quantomb: please try this branch in order to check whether parcel coalescing has any effect on your application

- adding a new API for discovering performance counters used in the tests
{
HPX_THROW_EXCEPTION(bad_parameter,
"parcelhandler::put_parcels",
"mismatched number of parcels and handlers");
Copy link
Member

Choose a reason for hiding this comment

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

There's a typo here. It should probably read: "mismatched destinations" or something along the lines.

Copy link
Member Author

Choose a reason for hiding this comment

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

Right, thanks for spotting.

@hkaiser
Copy link
Member Author

hkaiser commented Jan 7, 2016

@sithhell the review comments have been addressed

- clean up API
- adding additional error checks
- avoid calling into parcel-send operation if not necessary
- fixing error message
@@ -184,6 +191,49 @@ namespace hpx { namespace parcelset

}

protected:
void put_parcel_await(
locality const & dest, parcel p, write_handler_type f, bool trigger
Copy link
Member

Choose a reason for hiding this comment

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

The boolean trigger argument seems to be redundant now. it is always true.

Copy link
Member Author

Choose a reason for hiding this comment

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

I noticed that, in hindsight it was always true only. I left it as I thought you were planning for it to be available for any of the upcoming parcel port implementations. But I'm fine to remove it.

Copy link
Member

Choose a reason for hiding this comment

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

At one point, the put_parcels set it to false initially. but that's not needed anymore. It can certainly be removed.

@hkaiser
Copy link
Member Author

hkaiser commented Jan 10, 2016

@justwagle, @quantomb: have you tried this? does it work for you?

sithhell added a commit that referenced this pull request Jan 12, 2016
Making parcel coalescing functional
@sithhell sithhell merged commit a48312d into master Jan 12, 2016
@sithhell sithhell deleted the fixing_1941 branch January 12, 2016 08:21
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.

Re-enable parcel coalescing
2 participants