Skip to content
Open
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: 7 additions & 0 deletions cmake/onnxruntime_providers_cuda.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -306,6 +306,13 @@
endif()
endif()

if (CMAKE_CUDA_COMPILER_VERSION VERSION_GREATER_EQUAL 13.3)
if (MSVC)
# CCCL cub/config.cuh has a #pragma warning(pop) without matching push.
target_compile_options(${target} PRIVATE "$<$<COMPILE_LANGUAGE:CUDA>:SHELL:-Xcompiler /wd4193>")
Comment thread
tianleiwu marked this conversation as resolved.
endif()
endif()

if (UNIX)
target_compile_options(${target} PRIVATE "$<$<COMPILE_LANGUAGE:CUDA>:SHELL:-Xcompiler -Wno-reorder>"
"$<$<NOT:$<COMPILE_LANGUAGE:CUDA>>:-Wno-reorder>")
Expand Down
16 changes: 16 additions & 0 deletions cmake/onnxruntime_providers_cuda_plugin.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,13 @@ if (MSVC)
"$<$<COMPILE_LANGUAGE:CUDA>:SHELL:-Xcompiler /bigobj>"
)

if (CMAKE_CUDA_COMPILER_VERSION VERSION_GREATER_EQUAL 13.3)
# CCCL cub/config.cuh has a #pragma warning(pop) without matching push.
target_compile_options(onnxruntime_providers_cuda_plugin PRIVATE
"$<$<COMPILE_LANGUAGE:CUDA>:SHELL:-Xcompiler /wd4193>"
)
endif()

target_compile_options(onnxruntime_providers_cuda_plugin PRIVATE
"$<$<COMPILE_LANGUAGE:CXX>:/Zc:preprocessor>"
# /permissive is required for CUTLASS cute headers (cute::stride.hpp, cute::Layout etc.)
Expand Down Expand Up @@ -224,6 +231,15 @@ if (CMAKE_CUDA_COMPILER_VERSION VERSION_GREATER_EQUAL 12.8)
endif()
endif()

if (CMAKE_CUDA_COMPILER_VERSION VERSION_GREATER_EQUAL 13.3)
if (MSVC)
# CCCL cub/config.cuh has a #pragma warning(pop) without matching push.
list(APPEND _cuda_plugin_shared_compile_options
"$<$<COMPILE_LANGUAGE:CUDA>:SHELL:-Xcompiler /wd4193>"
)
endif()
endif()

if (MSVC)
list(APPEND _cuda_plugin_shared_compile_options
"$<$<COMPILE_LANGUAGE:CUDA>:SHELL:-Xcompiler /permissive>"
Expand Down
Loading