Skip to content

Conversation

junpi3
Copy link
Contributor

@junpi3 junpi3 commented Aug 30, 2024

Stack from ghstack (oldest at bottom):

  1. Tensors accessible to both CPU and GPU use StorageBuffer.
  2. Tensors accessible to GPU only use vTensorStorage.

Since StorageBuffer is only used for staging buffers, i.e., buffers accessible to both CPU and GPU, StagingBuffer is a fitting name for (1) that decreases confusion between (1) and (2).

Differential Revision: D62049779

1. Tensors accessible to both CPU and GPU use `StorageBuffer`.
2. Tensors accessible to GPU only use `vTensorStorage`.

Since `StorageBuffer` is only used for [staging buffers](https://vulkan-tutorial.com/Vertex_buffers/Staging_buffer), i.e., buffers accessible to both CPU and GPU, `StagingBuffer` is a fitting name for (1) that decreases confusion between (1) and (2).

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

[ghstack-poisoned]
Copy link

pytorch-bot bot commented Aug 30, 2024

🔗 Helpful Links

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

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

✅ No Failures

As of commit c22065b with merge base 1263964 (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 Aug 30, 2024
@facebook-github-bot
Copy link
Contributor

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

@junpi3 junpi3 changed the base branch from gh/jorgep31415/106/base to main August 30, 2024 22:09
@SS-JIA SS-JIA self-requested a review August 30, 2024 22:24
1. Tensors accessible to both CPU and GPU use `StorageBuffer`.
2. Tensors accessible to GPU only use `vTensorStorage`.

Since `StorageBuffer` is only used for [staging buffers](https://vulkan-tutorial.com/Vertex_buffers/Staging_buffer), i.e., buffers accessible to both CPU and GPU, `StagingBuffer` is a fitting name for (1) that decreases confusion between (1) and (2).

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

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

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

junpi3 pushed a commit that referenced this pull request Aug 30, 2024
Pull Request resolved: #5012

1. Tensors accessible to both CPU and GPU use `StorageBuffer`.
2. Tensors accessible to GPU only use `vTensorStorage`.

Since `StorageBuffer` is only used for [staging buffers](https://vulkan-tutorial.com/Vertex_buffers/Staging_buffer), i.e., buffers accessible to both CPU and GPU, `StagingBuffer` is a fitting name for (1) that decreases confusion between (1) and (2).
ghstack-source-id: 240567145
@exported-using-ghexport

Differential Revision: [D62049779](https://our.internmc.facebook.com/intern/diff/D62049779/)
1. Tensors accessible to both CPU and GPU use `StorageBuffer`.
2. Tensors accessible to GPU only use `vTensorStorage`.

Since `StorageBuffer` is only used for [staging buffers](https://vulkan-tutorial.com/Vertex_buffers/Staging_buffer), i.e., buffers accessible to both CPU and GPU, `StagingBuffer` is a fitting name for (1) that decreases confusion between (1) and (2).

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

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

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

@facebook-github-bot facebook-github-bot merged commit 91dc801 into main Aug 31, 2024
37 of 38 checks passed
@facebook-github-bot facebook-github-bot deleted the gh/jorgep31415/106/head branch August 31, 2024 00:34
kedarnath03 pushed a commit to kedarnath03/executorch that referenced this pull request Jun 25, 2025
Pull Request resolved: pytorch/executorch#5012

1. Tensors accessible to both CPU and GPU use `StorageBuffer`.
2. Tensors accessible to GPU only use `vTensorStorage`.

Since `StorageBuffer` is only used for [staging buffers](https://vulkan-tutorial.com/Vertex_buffers/Staging_buffer), i.e., buffers accessible to both CPU and GPU, `StagingBuffer` is a fitting name for (1) that decreases confusion between (1) and (2).
ghstack-source-id: 240577434
@exported-using-ghexport

Differential Revision: [D62049779](https://our.internmc.facebook.com/intern/diff/D62049779/)
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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants