diff --git a/.github/workflows/cuda-windows.yml b/.github/workflows/cuda-windows.yml index b998cdff514..1af6fdac0ca 100644 --- a/.github/workflows/cuda-windows.yml +++ b/.github/workflows/cuda-windows.yml @@ -16,6 +16,7 @@ on: - .github/workflows/cuda-windows.yml - backends/cuda/** - backends/aoti/** + - extension/cuda/** workflow_dispatch: concurrency: @@ -49,6 +50,7 @@ jobs: ( contains(needs.changed-files.outputs.changed-files, 'backends/cuda') || contains(needs.changed-files.outputs.changed-files, 'backends/aoti') || + contains(needs.changed-files.outputs.changed-files, 'extension/cuda') || contains(needs.changed-files.outputs.changed-files, '.github/workflows/cuda-windows.yml') || needs.run-decision.outputs.is-full-run == 'true' ) @@ -150,6 +152,7 @@ jobs: ( contains(needs.changed-files.outputs.changed-files, 'backends/cuda') || contains(needs.changed-files.outputs.changed-files, 'backends/aoti') || + contains(needs.changed-files.outputs.changed-files, 'extension/cuda') || contains(needs.changed-files.outputs.changed-files, '.github/workflows/cuda-windows.yml') || needs.run-decision.outputs.is-full-run == 'true' ) diff --git a/extension/cuda/CMakeLists.txt b/extension/cuda/CMakeLists.txt index dbd74ec7596..0003691ac8b 100644 --- a/extension/cuda/CMakeLists.txt +++ b/extension/cuda/CMakeLists.txt @@ -25,7 +25,9 @@ find_package(CUDAToolkit REQUIRED) add_library(extension_cuda SHARED caller_stream.cpp) target_link_libraries(extension_cuda PUBLIC CUDA::cudart) target_include_directories(extension_cuda PUBLIC ${_common_include_directories}) -target_compile_options(extension_cuda PUBLIC ${_common_compile_options}) +target_compile_options( + extension_cuda PUBLIC "$<$:${_common_compile_options}>" +) target_compile_definitions( extension_cuda PRIVATE EXECUTORCH_EXTENSION_CUDA_BUILDING )