You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
introduce aoti_torch_new_tensor_handle shim for cuda backend
# aoti_torch_new_tensor_handle Shim for Cuda Backend
## summary
This diff introduces the `aoti_torch_new_tensor_handle` shim for the CUDA backend. The shim is a wrapper around the `aoti_torch_new_tensor_handle` function, which creates a new tensor handle from an existing tensor, to unblock the custom triton kernel usage
The diff affects the following files:
* `fbcode/executorch/backends/aoti/common_shims.h`: The function prototype is declared.
* `fbcode/executorch/backends/apple/metal/runtime/shims/memory.cpp`: A fallback implementation is provided for the Apple Metal backend to keep its behavior.
* `fbcode/executorch/backends/cuda/runtime/shims/tests/test_aoti_torch_new_tensor_handle.cpp`: A test file is added for the CUDA backend.
Differential Revision: [D87254968](https://our.internmc.facebook.com/intern/diff/D87254968/)
[ghstack-poisoned]
0 commit comments