Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions backends/aoti/export.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,10 @@
#pragma once

// Define export macro for Windows DLL
// When building the aoti_cuda library, EXPORT_AOTI_FUNCTIONS is defined by
// CMake, which causes this macro to export symbols using __declspec(dllexport).
// When consuming the library, the macro imports symbols using
// When building the aoti_cuda_backend library, EXPORT_AOTI_FUNCTIONS is defined
// by CMake, which causes this macro to export symbols using
// __declspec(dllexport). When consuming the library, the macro imports symbols
// using
// __declspec(dllimport). On non-Windows platforms, the macro is empty and has
// no effect.
#ifdef _WIN32
Expand Down
4 changes: 2 additions & 2 deletions examples/models/gemma3/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,8 @@ list(
# Link CUDA backend
if(EXECUTORCH_BUILD_CUDA)
find_package(CUDAToolkit REQUIRED)
list(APPEND link_libraries aoti_cuda)
executorch_target_link_options_shared_lib(aoti_cuda)
list(APPEND link_libraries aoti_cuda_backend)
executorch_target_link_options_shared_lib(aoti_cuda_backend)
endif()

# Add tokenizers
Expand Down
4 changes: 2 additions & 2 deletions examples/models/whisper/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,8 @@ list(
# Link CUDA backend
if(EXECUTORCH_BUILD_CUDA)
find_package(CUDAToolkit REQUIRED)
list(APPEND _link_libraries aoti_cuda)
executorch_target_link_options_shared_lib(aoti_cuda)
list(APPEND _link_libraries aoti_cuda_backend)
executorch_target_link_options_shared_lib(aoti_cuda_backend)
endif()

if(EXECUTORCH_BUILD_METAL)
Expand Down
2 changes: 1 addition & 1 deletion tools/cmake/executorch-config.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ set(EXECUTORCH_FOUND ON)
include("${CMAKE_CURRENT_LIST_DIR}/ExecuTorchTargets.cmake")

set(optional_lib_list
aoti_cuda
aoti_cuda_backend
flatccrt
etdump
bundled_program
Expand Down
Loading