mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-07-25 19:48:11 +00:00
Fix CUDA 10.2 pipeline (#7508)
This commit is contained in:
parent
d6df5764d7
commit
0d107bbb73
1 changed files with 1 additions and 1 deletions
|
|
@ -984,7 +984,7 @@ function(onnxruntime_set_compile_flags target_name)
|
|||
target_compile_options(${target_name} PRIVATE "$<$<COMPILE_LANGUAGE:CUDA>:SHELL:--compiler-options -Wno-deprecated-copy>" "$<$<COMPILE_LANGUAGE:CXX>:-Wno-deprecated-copy>")
|
||||
endif()
|
||||
if(onnxruntime_USE_CUDA)
|
||||
if(HAS_STRICT_ALIASING AND ${CMAKE_CUDA_COMPILER_VERSION} VERSION_GREATER_EQUAL "11.0.0")
|
||||
if(HAS_STRICT_ALIASING)
|
||||
target_compile_options(${target_name} PRIVATE "$<$<COMPILE_LANGUAGE:CUDA>:-Wno-strict-aliasing>")
|
||||
endif()
|
||||
endif()
|
||||
|
|
|
|||
Loading…
Reference in a new issue