Skip to content

Conversation

@majosm
Copy link
Collaborator

@majosm majosm commented Jan 26, 2024

Adds a function to make a DistributedSendRefHolder, so we don't need to call its __init__ method directly in inducer/grudge#285. (Calling __init__ doesn't play well with the CreatedAt tags added in #284.)

@majosm majosm marked this pull request as ready for review January 26, 2024 20:22
@majosm
Copy link
Collaborator Author

majosm commented Jan 26, 2024

@inducer @matthiasdiener How's this look?

@matthiasdiener
Copy link
Collaborator

LGTM, thanks!

) -> DistributedSendRefHolder:
"""Make a :class:`DistributedSendRefHolder` object."""
return DistributedSendRefHolder(
send=send, passthrough_data=passthrough_data, tags=tags)
Copy link
Owner

Choose a reason for hiding this comment

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

Call _get_default_tags here. (Probably also for make_distributed_send above and make_distributed_recv below.)

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@majosm majosm force-pushed the make-dist-send-ref-holder-function branch from c0e1cee to d7bebff Compare January 26, 2024 21:27
@majosm majosm requested a review from inducer January 26, 2024 21:40
@inducer inducer force-pushed the make-dist-send-ref-holder-function branch from d7bebff to aabb344 Compare February 6, 2024 14:48
@inducer
Copy link
Owner

inducer commented Feb 6, 2024

LGTM, thanks!

@inducer inducer enabled auto-merge (rebase) February 6, 2024 14:49
@inducer inducer merged commit dc1421b into inducer:main Feb 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants