Skip to content

Conversation

@pietern
Copy link
Contributor

@pietern pietern commented Sep 21, 2018

The MPI async work class returned a temporary as reference, which is
invalid (hat tip to @colesbury for noticing it). This change fixes that and
uses a std::exception_ptr to hold on to the exception if applicable, and
then returns the reference by throwing it and returning it, like the
existing code path.

@pietern pietern added the oncall: distributed Add this issue/PR to distributed oncall triage queue label Sep 21, 2018
@pietern pietern requested a review from apaszke as a code owner September 21, 2018 19:54
@pietern
Copy link
Contributor Author

pietern commented Sep 21, 2018

@colesbury Do you know a better way to return an exception reference from an exception ptr? I copied the approach from the existing code, but it seems a bit odd to have to rethrow in order to grab a reference.

@pietern
Copy link
Contributor Author

pietern commented Sep 24, 2018

@pytorchbot retest this please

Copy link
Contributor

@facebook-github-bot facebook-github-bot left a comment

Choose a reason for hiding this comment

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

pietern has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

The MPI async work class returned a temporary as reference, which is
invalid (hat tip to @sgross for noticing it). This change fixes that and
uses a std::exception_ptr to hold on to the exception if applicable, and
then returns the reference by throwing it and returning it, like the
existing code path.
Copy link
Contributor

@facebook-github-bot facebook-github-bot left a comment

Choose a reason for hiding this comment

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

pietern is landing this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

@pietern pietern deleted the c10d-mpi-exception branch September 25, 2018 17:37
@ezyang ezyang added the merged label Jun 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

oncall: distributed Add this issue/PR to distributed oncall triage queue

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants