Skip to content

Conversation

@guangyey
Copy link
Collaborator

@guangyey guangyey commented Nov 13, 2025

Stack from ghstack (oldest at bottom):

Motivation

This PR aims to fix the bug that the moved-to object's external_ member is not assigned correctly.

Additional Context

It's not fine to swap the valid value and the invalid value. We'd just need to prevent double-free.

@pytorch-bot
Copy link

pytorch-bot bot commented Nov 13, 2025

🔗 Helpful Links

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

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 7bcf0a4 with merge base 0dac408 (image):

UNSTABLE - The following job is marked as unstable, possibly due to flakiness on trunk:

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

@guangyey guangyey added topic: not user facing topic category ciflow/trunk Trigger trunk jobs on your pull request labels Nov 13, 2025
@guangyey guangyey requested review from albanD and ezyang November 13, 2025 08:12
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
@guangyey guangyey changed the title Assign CUDAEvent external member properly [fix] Assign CUDAEvent external member properly Nov 17, 2025
Khanaksahu pushed a commit to Khanaksahu/pytorch that referenced this pull request Nov 17, 2025
@guangyey
Copy link
Collaborator Author

@ezyang @albanD this is a bug fix. Could you help take a look at.

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.

Any way we can have a test for this?

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 open source topic: not user facing topic category

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants