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

fix: Move pinned memory size checks to PinnedMemoryManager and update C API version for new EnablePeerAccess API #365

Merged
merged 8 commits into from
Jun 6, 2024

Conversation

indrajit96
Copy link
Contributor

@indrajit96 indrajit96 commented Jun 5, 2024

  1. Update C API version for changes in
    "Added new flag for GPU peer access API control Added new flag for GPU peer access API control #361"
  2. Fix a seg fault in PinnedMemoryManager::AllocInternal(

Seg Fault Details:

Triton tries to access pinned_memory_buffer here
Which was null because of the new change introduced in #361.

Triton behavior is to verify it failed to allocate pinned memory by looping through pinned_memory_buffer AND then do a malloc. This looks like a design choice made.

@Tabrizian
Copy link
Member

@indrajit96 please update the title to be more representative of the actual changes.

@rmccorm4 rmccorm4 changed the title Update C API version fix: Move pinned memory size checks to PinnedMemoryManager and update C API version for new EnablePeerAccess API Jun 6, 2024
Copy link
Contributor

@rmccorm4 rmccorm4 left a comment

Choose a reason for hiding this comment

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

LGTM, and please update description with more details about the bug and fix

@indrajit96 indrajit96 merged commit ae459a0 into main Jun 6, 2024
1 check passed
@indrajit96
Copy link
Contributor Author

LGTM, and please update description with more details about the bug and fix

Have added a brief description here, will add more detailed description in the Jira bug

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants