Skip to content

Conversation

@guangyey
Copy link
Collaborator

@guangyey guangyey commented May 8, 2024

Stack from ghstack (oldest at bottom):

Motivation

According to #123611, we support generic stream/event on XPU backend.

Additional Context

new method/attribute on torch.Event for xpu

  • torch.Event.event_id
  • torch.Event.elapsed_time
  • torch.Event.synchronize

new method on c10::Event on xpu backend

  • c10.Event.event_id
  • c10.Event.elapsed_time
  • c10.Event.synchronize

cc @jgong5 @mingfeima @XiaobingSuper @sanchitintel @ashokei @jingxu10 @gujinghui @EikanWang @fengyuan14

@pytorch-bot
Copy link

pytorch-bot bot commented May 8, 2024

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/125751

Note: Links to docs will display an error until the docs builds have been completed.

✅ You can merge normally! (1 Unrelated Failure)

As of commit 5b51a4f with merge base affd7a9 (image):

BROKEN TRUNK - The following job failed but were present on the merge base:

👉 Rebase onto the `viable/strict` branch to avoid these failures

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@guangyey guangyey added intel This tag is for PR from Intel ciflow/xpu Run XPU CI tasks module: xpu Intel XPU related issues release notes: xpu release notes category labels May 8, 2024
@guangyey guangyey added the ciflow/trunk Trigger trunk jobs on your pull request label May 8, 2024

@unittest.skipIf(
IS_ARM64 or not IS_LINUX or TEST_CUDA or TEST_PRIVATEUSE1 or TEST_ROCM,
IS_ARM64 or not IS_LINUX or TEST_CUDA or TEST_PRIVATEUSE1 or TEST_ROCM or TEST_XPU,
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

It is mutually exclusive to xpu.

Copy link
Collaborator

Choose a reason for hiding this comment

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

cc @egienvalue with me want to add a TEST_MTIA to common_utils above to simplify this kind of statement!

Copy link
Contributor

Choose a reason for hiding this comment

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

I see. Thanks for the suggestion. I will do that.

@guangyey
Copy link
Collaborator Author

guangyey commented May 8, 2024

@albanD, if this PR is fine, I will continue to support CUDA following this.

guangyey added 7 commits May 8, 2024 19:34
cc jgong5 mingfeima XiaobingSuper sanchitintel ashokei jingxu10 gujinghui EikanWang fengyuan14

[ghstack-poisoned]
# Motivation
According to [#123611](#123611), we support generic stream/event on XPU backend.

# Additional Context
new method/attribute on `torch.Event`
- torch.Event.event_id
- torch.Event.elapsed_time
- torch.Event.synchronize

new method on `c10::Event`
- c10.Event.event_id
- c10.Event.elapsed_time
- c10.Event.synchronize

cc jgong5 mingfeima XiaobingSuper sanchitintel ashokei jingxu10 gujinghui EikanWang fengyuan14

[ghstack-poisoned]
# Motivation
According to [#123611](#123611), we support generic stream/event on XPU backend.

# Additional Context
new method/attribute on `torch.Event`
- torch.Event.event_id
- torch.Event.elapsed_time
- torch.Event.synchronize

new method on `c10::Event`
- c10.Event.event_id
- c10.Event.elapsed_time
- c10.Event.synchronize

cc jgong5 mingfeima XiaobingSuper sanchitintel ashokei jingxu10 gujinghui EikanWang fengyuan14

[ghstack-poisoned]
# Motivation
According to [#123611](#123611), we support generic stream/event on XPU backend.

# Additional Context
new method/attribute on `torch.Event`
- torch.Event.event_id
- torch.Event.elapsed_time
- torch.Event.synchronize

new method on `c10::Event`
- c10.Event.event_id
- c10.Event.elapsed_time
- c10.Event.synchronize

cc jgong5 mingfeima XiaobingSuper sanchitintel ashokei jingxu10 gujinghui EikanWang fengyuan14

[ghstack-poisoned]
# Motivation
According to [#123611](#123611), we support generic stream/event on XPU backend.

# Additional Context
new method/attribute on `torch.Event`
- torch.Event.event_id
- torch.Event.elapsed_time
- torch.Event.synchronize

new method on `c10::Event`
- c10.Event.event_id
- c10.Event.elapsed_time
- c10.Event.synchronize

cc jgong5 mingfeima XiaobingSuper sanchitintel ashokei jingxu10 gujinghui EikanWang fengyuan14

[ghstack-poisoned]
# Motivation
According to [#123611](#123611), we support generic stream/event on XPU backend.

# Additional Context
new method/attribute on `torch.Event`
- torch.Event.event_id
- torch.Event.elapsed_time
- torch.Event.synchronize

new method on `c10::Event`
- c10.Event.event_id
- c10.Event.elapsed_time
- c10.Event.synchronize

cc jgong5 mingfeima XiaobingSuper sanchitintel ashokei jingxu10 gujinghui EikanWang fengyuan14

[ghstack-poisoned]
guangyey added 3 commits May 8, 2024 23:35
# Motivation
According to [#123611](#123611), we support generic stream/event on XPU backend.

# Additional Context
new method/attribute on `torch.Event`
- torch.Event.event_id
- torch.Event.elapsed_time
- torch.Event.synchronize

new method on `c10::Event`
- c10.Event.event_id
- c10.Event.elapsed_time
- c10.Event.synchronize

cc jgong5 mingfeima XiaobingSuper sanchitintel ashokei jingxu10 gujinghui EikanWang fengyuan14

[ghstack-poisoned]
# Motivation
According to [#123611](#123611), we support generic stream/event on XPU backend.

# Additional Context
new method/attribute on `torch.Event`
- torch.Event.event_id
- torch.Event.elapsed_time
- torch.Event.synchronize

new method on `c10::Event`
- c10.Event.event_id
- c10.Event.elapsed_time
- c10.Event.synchronize

cc jgong5 mingfeima XiaobingSuper sanchitintel ashokei jingxu10 gujinghui EikanWang fengyuan14

[ghstack-poisoned]
# Motivation
According to [#123611](#123611), we support generic stream/event on XPU backend.

# Additional Context
new method/attribute on `torch.Event`
- torch.Event.event_id
- torch.Event.elapsed_time
- torch.Event.synchronize

new method on `c10::Event`
- c10.Event.event_id
- c10.Event.elapsed_time
- c10.Event.synchronize

cc jgong5 mingfeima XiaobingSuper sanchitintel ashokei jingxu10 gujinghui EikanWang fengyuan14

[ghstack-poisoned]
Copy link
Collaborator

@albanD albanD left a comment

Choose a reason for hiding this comment

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

Very cool!


@unittest.skipIf(
IS_ARM64 or not IS_LINUX or TEST_CUDA or TEST_PRIVATEUSE1 or TEST_ROCM,
IS_ARM64 or not IS_LINUX or TEST_CUDA or TEST_PRIVATEUSE1 or TEST_ROCM or TEST_XPU,
Copy link
Collaborator

Choose a reason for hiding this comment

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

cc @egienvalue with me want to add a TEST_MTIA to common_utils above to simplify this kind of statement!

@guangyey
Copy link
Collaborator Author

@pytorchbot merge

@guangyey
Copy link
Collaborator Author

Very cool!

Thanks for your approval~

@pytorchmergebot
Copy link
Collaborator

Merge started

Your change will be merged once all checks pass (ETA 0-4 Hours).

Learn more about merging in the wiki.

Questions? Feedback? Please reach out to the PyTorch DevX Team

Advanced Debugging
Check the merge workflow status
here

@github-actions github-actions bot deleted the gh/guangyey/28/head branch June 9, 2024 01:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ciflow/trunk Trigger trunk jobs on your pull request ciflow/xpu Run XPU CI tasks intel This tag is for PR from Intel Merged module: xpu Intel XPU related issues open source release notes: xpu release notes category

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

7 participants