Skip to content

Conversation

@SS-JIA
Copy link
Contributor

@SS-JIA SS-JIA commented Apr 22, 2025

Stack from ghstack (oldest at bottom):

Changes

Simplify the logic to construct a linked list of physical device feature structs

When constructing the logical device, construct the linked list of device features to enable instead of using a stored pointer from the constructor of PhysicalDevice. The reason is that due to possible moves, the stored pointer may be invalid by the time the Adapter instance is constructed. It is safer to reconstruct the device features linked list at the time it is needed.

Differential Revision: D73438721

## Changes

Simplify the logic to construct a linked list of physical device feature structs

When constructing the logical device, construct the linked list of device features to enable instead of using a stored pointer from the constructor of `PhysicalDevice`. The reason is that due to possible moves, the stored pointer may be invalid by the time the `Adapter` instance is constructed. It is safer to reconstruct the device features linked list at the time it is needed.

Differential Revision: [D73438721](https://our.internmc.facebook.com/intern/diff/D73438721/)

[ghstack-poisoned]
@pytorch-bot
Copy link

pytorch-bot bot commented Apr 22, 2025

🔗 Helpful Links

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

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

⏳ No Failures, 1 Pending

As of commit f7d5cf3 with merge base 95c663e (image):
💚 Looks good so far! There are no failures yet. 💚

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

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Apr 22, 2025
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D73438721

## Changes

Simplify the logic to construct a linked list of physical device feature structs

When constructing the logical device, construct the linked list of device features to enable instead of using a stored pointer from the constructor of `PhysicalDevice`. The reason is that due to possible moves, the stored pointer may be invalid by the time the `Adapter` instance is constructed. It is safer to reconstruct the device features linked list at the time it is needed.

Differential Revision: [D73438721](https://our.internmc.facebook.com/intern/diff/D73438721/)

[ghstack-poisoned]
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D73438721

@SS-JIA SS-JIA added the release notes: vulkan Changes to the Vulkan backend delegate label Apr 22, 2025
@facebook-github-bot facebook-github-bot merged commit 40ee03f into gh/SS-JIA/217/base Apr 22, 2025
86 of 87 checks passed
@facebook-github-bot facebook-github-bot deleted the gh/SS-JIA/217/head branch April 22, 2025 18:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported release notes: vulkan Changes to the Vulkan backend delegate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants