Skip to content

Commit 1034a0f

Browse files
authored
Change aoti_cuda in executorch-config.cmake to aoti_cuda_backend (#15726)
As titled. ### Summary [PLEASE REMOVE] See [CONTRIBUTING.md's Pull Requests](https://github.com/pytorch/executorch/blob/main/CONTRIBUTING.md#pull-requests) for ExecuTorch PR guidelines. [PLEASE REMOVE] If this PR closes an issue, please add a `Fixes #<issue-id>` line. [PLEASE REMOVE] If this PR introduces a fix or feature that should be the upcoming release notes, please add a "Release notes: <area>" label. For a list of available release notes labels, check out [CONTRIBUTING.md's Pull Requests](https://github.com/pytorch/executorch/blob/main/CONTRIBUTING.md#pull-requests). ### Test plan [PLEASE REMOVE] How did you test this PR? Please write down any manual commands you used and note down tests that you have written if applicable.
1 parent fced57f commit 1034a0f

File tree

4 files changed

+9
-8
lines changed

4 files changed

+9
-8
lines changed

backends/aoti/export.h

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,10 @@
99
#pragma once
1010

1111
// Define export macro for Windows DLL
12-
// When building the aoti_cuda library, EXPORT_AOTI_FUNCTIONS is defined by
13-
// CMake, which causes this macro to export symbols using __declspec(dllexport).
14-
// When consuming the library, the macro imports symbols using
12+
// When building the aoti_cuda_backend library, EXPORT_AOTI_FUNCTIONS is defined
13+
// by CMake, which causes this macro to export symbols using
14+
// __declspec(dllexport). When consuming the library, the macro imports symbols
15+
// using
1516
// __declspec(dllimport). On non-Windows platforms, the macro is empty and has
1617
// no effect.
1718
#ifdef _WIN32

examples/models/gemma3/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,8 @@ list(
102102
# Link CUDA backend
103103
if(EXECUTORCH_BUILD_CUDA)
104104
find_package(CUDAToolkit REQUIRED)
105-
list(APPEND link_libraries aoti_cuda)
106-
executorch_target_link_options_shared_lib(aoti_cuda)
105+
list(APPEND link_libraries aoti_cuda_backend)
106+
executorch_target_link_options_shared_lib(aoti_cuda_backend)
107107
endif()
108108

109109
# Add tokenizers

examples/models/whisper/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,8 @@ list(
6969
# Link CUDA backend
7070
if(EXECUTORCH_BUILD_CUDA)
7171
find_package(CUDAToolkit REQUIRED)
72-
list(APPEND _link_libraries aoti_cuda)
73-
executorch_target_link_options_shared_lib(aoti_cuda)
72+
list(APPEND _link_libraries aoti_cuda_backend)
73+
executorch_target_link_options_shared_lib(aoti_cuda_backend)
7474
endif()
7575

7676
if(EXECUTORCH_BUILD_METAL)

tools/cmake/executorch-config.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ set(EXECUTORCH_FOUND ON)
5353
include("${CMAKE_CURRENT_LIST_DIR}/ExecuTorchTargets.cmake")
5454

5555
set(optional_lib_list
56-
aoti_cuda
56+
aoti_cuda_backend
5757
flatccrt
5858
etdump
5959
bundled_program

0 commit comments

Comments
 (0)