Skip to content

Conversation

pytorchbot
Copy link
Collaborator

This PR was created by the merge bot to help merge the original PR into the main branch.
ghstack PR number: #14902 by @Gasoonjia
^ Please use this as the source of truth for the PR details, comments, and reviews
ghstack PR base: https://github.com/pytorch/executorch/tree/gh/gasoonjia/47/base
ghstack PR head: https://github.com/pytorch/executorch/tree/gh/gasoonjia/47/head
Merge bot PR base: https://github.com/pytorch/executorch/tree/main
Merge bot PR head: https://github.com/pytorch/executorch/tree/gh/gasoonjia/47/orig
Differential Revision: D84126634
@diff-train-skip-merge

Pull Request resolved: #14902

### Summary

This diff introduces shim layers for CudaGuard and CudaStreamGuard in the Executorch project, which will be further used by cuda-AOTI models for stream/cuda control. The changes include:

*   Adding a new source file `runtime/shims/cuda_guard.cpp` and header file `runtime/shims/cuda_guard.h` to the `CMakeLists.txt` and `TARGETS` files.
*   Creating a new test target `aoti_torch_cuda_guard` in the `targets.bzl` file.
*   Defining the `cuda_guard.h` header file with the necessary includes, namespace definitions, and function declarations.

These changes aim to provide a shim layer for CudaGuard, which is responsible for handling CUDA-related functionality in the Executorch runtime. The shim layer will allow for better modularity and maintainability of the codebase.
ghstack-source-id: 314984327
@exported-using-ghexport

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

pytorch-bot bot commented Oct 9, 2025

🔗 Helpful Links

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

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

⏳ No Failures, 63 Pending

As of commit 7722509 with merge base 29b4db8 (image):
💚 Looks good so far! There are no failures yet. 💚

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

@meta-cla meta-cla 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 Oct 9, 2025
@Gasoonjia
Copy link
Contributor

@pytorchbot label "release notes: none"

@pytorch-bot pytorch-bot bot added the release notes: none Do not include this in the release notes label Oct 9, 2025
This PR was created by the merge bot to help merge the original PR into
the main branch.
ghstack PR number: #14904 by
@Gasoonjia
^ Please use this as the source of truth for the PR details, comments,
and reviews
ghstack PR base:
https://github.com/pytorch/executorch/tree/gh/gasoonjia/49/base
ghstack PR head:
https://github.com/pytorch/executorch/tree/gh/gasoonjia/49/head
Merge bot PR base:
https://github.com/pytorch/executorch/tree/gh/gasoonjia/47/orig
Merge bot PR head:
https://github.com/pytorch/executorch/tree/gh/gasoonjia/49/orig
Differential Revision:
[D84135844](https://our.internmc.facebook.com/intern/diff/D84135844/)
@diff-train-skip-merge

---------

Co-authored-by: gasoonjia <gasoonjia@icloud.com>
@Gasoonjia Gasoonjia added release notes: desktop for desktop/laptop workstream and removed release notes: none Do not include this in the release notes labels Oct 9, 2025
@Gasoonjia Gasoonjia merged commit f7f97f7 into main Oct 9, 2025
125 of 132 checks passed
@Gasoonjia Gasoonjia deleted the gh/gasoonjia/47/orig branch October 9, 2025 05:22
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. release notes: desktop for desktop/laptop workstream

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants