Skip to content

[Feature] Requesting peer2peer access check for PVC for Cupy equivalents #2073

Closed

Description

@abagusetty

Hi,

Just wanted to check if P2P access exists in dpctl. If not, it would be great to ave a feature for sycl_ext_oneapi_peer_access and more importantly copy memory between device/tiles when possible

The idea is to have some access features like:
https://docs.cupy.dev/en/stable/reference/generated/cupy.cuda.runtime.deviceCanAccessPeer.html
https://docs.cupy.dev/en/stable/reference/generated/cupy.cuda.runtime.deviceEnablePeerAccess.html

Activity

  1. self-assigned this
    on May 2, 2025
  2. ndgrigorian commented on May 2, 2025

    @ndgrigorian
    Collaborator

    @abagusetty
    dpctl currently does not support this feature, but this would be a good enhancement. Since it's a supported extension I don't see why we couldn't or shouldn't try to support it.

    Thank you for the suggestion!

  3. ndgrigorian commented on May 5, 2025

    @ndgrigorian
    Collaborator

    @abagusetty
    I've opened a draft PR for adding the feature, #2077

    It seems to work on PVC and an AMD machine with multiple devices. The compiler tests use q.copy, which we don't currently expose, instead of memcpy. I plan to add that in a follow up. Let me know if you take the branch for a spin.

  4. abagusetty commented on May 6, 2025

    @abagusetty
    Author

    @ndgrigorian Thanks for the super quick dev. Will give it a try and keep you posted.

  5. abagusetty commented on May 8, 2025

    @abagusetty
    Author

    @ndgrigorian P2P discovery worked on my end for Aurora PVCs. Thanks!

  6. ndgrigorian commented on May 15, 2025

    @ndgrigorian
    Collaborator

    The extension is supported and now merged into master branch, closing this as implemented

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

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions