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

Associate internal streams with requests #120

Merged
merged 2 commits into from
Mar 5, 2021
Merged

Associate internal streams with requests #120

merged 2 commits into from
Mar 5, 2021

Conversation

ndryden
Copy link
Collaborator

@ndryden ndryden commented Feb 26, 2021

Depends on #112.

This adds a field to the NCCLRequest and HostTransferRequest objects to hold the internal stream (i.e., the stream an operation is actually running on). This is mostly an implementation detail, but certain external interfaces using Aluminum may need this information. (For example, PyTorch needs this so its memory allocator does not free data early.)

This also supports replacing the entire internal stream pool with externally-provided streams.

I don't want this to be explicitly part of the public API, but certain things may rely on it.

@ndryden ndryden added the enhancement New feature or request label Feb 26, 2021
@ndryden ndryden requested a review from benson31 February 26, 2021 14:23
@ndryden ndryden mentioned this pull request Feb 26, 2021
Copy link
Collaborator

@benson31 benson31 left a comment

Choose a reason for hiding this comment

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

LGTM

@ndryden ndryden merged commit 7ae563c into master Mar 5, 2021
@ndryden ndryden deleted the req-streams branch March 5, 2021 19:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants