Skip to content

Commit 73c8d8c

Browse files
Move cuda/runtime/shim/utils to cuda/runtime for better usibility. (#14913)
This PR was created by the merge bot to help merge the original PR into the main branch. ghstack PR number: #14900 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/45/base ghstack PR head: https://github.com/pytorch/executorch/tree/gh/gasoonjia/45/head Merge bot PR base: https://github.com/pytorch/executorch/tree/main Merge bot PR head: https://github.com/pytorch/executorch/tree/gh/gasoonjia/45/orig Differential Revision: [D84169267](https://our.internmc.facebook.com/intern/diff/D84169267/) @diff-train-skip-merge Co-authored-by: gasoonjia <[email protected]>
1 parent c62cbfe commit 73c8d8c

File tree

8 files changed

+7
-7
lines changed

8 files changed

+7
-7
lines changed

backends/cuda/runtime/TARGETS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ runtime.cxx_library(
1111
headers = [
1212
"shims/memory.h",
1313
"shims/tensor_attribute.h",
14-
"shims/utils.h",
14+
"utils.h",
1515
],
1616
# @lint-ignore BUCKLINT: Avoid `link_whole=True` (https://fburl.com/avoid-link-whole)
1717
link_whole = True,

backends/cuda/runtime/shims/memory.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
#include <executorch/backends/aoti/utils.h>
1111
#include <executorch/backends/cuda/runtime/shims/memory.h>
1212
#include <executorch/backends/cuda/runtime/shims/tensor_attribute.h>
13-
#include <executorch/backends/cuda/runtime/shims/utils.h>
13+
#include <executorch/backends/cuda/runtime/utils.h>
1414
#include <executorch/runtime/platform/log.h>
1515
#include <cstdint>
1616
#include <cstdlib> // For posix_memalign

backends/cuda/runtime/shims/tests/test_aoti_torch__reinterpret_tensor.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
#include <executorch/backends/aoti/common_shims.h>
1111
#include <executorch/backends/cuda/runtime/shims/memory.h>
1212
#include <executorch/backends/cuda/runtime/shims/tensor_attribute.h>
13-
#include <executorch/backends/cuda/runtime/shims/utils.h>
13+
#include <executorch/backends/cuda/runtime/utils.h>
1414
#include <executorch/runtime/core/error.h>
1515
#include <executorch/runtime/platform/platform.h>
1616
#include <gtest/gtest.h>

backends/cuda/runtime/shims/tests/test_aoti_torch_copy_.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
#include <executorch/backends/aoti/common_shims.h>
1111
#include <executorch/backends/cuda/runtime/shims/memory.h>
1212
#include <executorch/backends/cuda/runtime/shims/tensor_attribute.h>
13-
#include <executorch/backends/cuda/runtime/shims/utils.h>
13+
#include <executorch/backends/cuda/runtime/utils.h>
1414
#include <executorch/runtime/core/error.h>
1515
#include <executorch/runtime/platform/platform.h>
1616
#include <gtest/gtest.h>

backends/cuda/runtime/shims/tests/test_aoti_torch_create_tensor_from_blob_v2.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
#include <executorch/backends/aoti/common_shims.h>
1111
#include <executorch/backends/cuda/runtime/shims/memory.h>
1212
#include <executorch/backends/cuda/runtime/shims/tensor_attribute.h>
13-
#include <executorch/backends/cuda/runtime/shims/utils.h>
13+
#include <executorch/backends/cuda/runtime/utils.h>
1414
#include <executorch/runtime/core/error.h>
1515
#include <executorch/runtime/platform/platform.h>
1616
#include <gtest/gtest.h>

backends/cuda/runtime/shims/tests/test_aoti_torch_delete_tensor_object.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
#include <executorch/backends/aoti/common_shims.h>
1111
#include <executorch/backends/cuda/runtime/shims/memory.h>
1212
#include <executorch/backends/cuda/runtime/shims/tensor_attribute.h>
13-
#include <executorch/backends/cuda/runtime/shims/utils.h>
13+
#include <executorch/backends/cuda/runtime/utils.h>
1414
#include <executorch/runtime/core/error.h>
1515
#include <executorch/runtime/platform/platform.h>
1616
#include <gtest/gtest.h>

backends/cuda/runtime/shims/tests/test_aoti_torch_empty_strided.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
#include <executorch/backends/aoti/common_shims.h>
1111
#include <executorch/backends/cuda/runtime/shims/memory.h>
1212
#include <executorch/backends/cuda/runtime/shims/tensor_attribute.h>
13-
#include <executorch/backends/cuda/runtime/shims/utils.h>
13+
#include <executorch/backends/cuda/runtime/utils.h>
1414
#include <executorch/runtime/core/error.h>
1515
#include <executorch/runtime/platform/platform.h>
1616
#include <gtest/gtest.h>
File renamed without changes.

0 commit comments

Comments
 (0)