mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-06-08 00:23:03 +00:00
enable rdc and skip error
This commit is contained in:
parent
169917b1e7
commit
0f647148e5
1 changed files with 7 additions and 0 deletions
|
|
@ -158,6 +158,13 @@
|
|||
set(onnxruntime_NVCC_THREADS "1" CACHE STRING "Number of threads that NVCC can use for compilation.")
|
||||
target_compile_options(${target} PRIVATE "$<$<COMPILE_LANGUAGE:CUDA>:SHELL:--threads \"${onnxruntime_NVCC_THREADS}\">")
|
||||
endif()
|
||||
|
||||
# relocatable-device-code=true
|
||||
if (MSVC AND CMAKE_CUDA_COMPILER_VERSION VERSION_GREATER_EQUAL 12.8)
|
||||
set_target_properties(${target} PROPERTIES CUDA_SEPARABLE_COMPILATION ON)
|
||||
target_compile_options(${target} PRIVATE "$<$<COMPILE_LANGUAGE:CUDA>:--relocatable-device-code=true>")
|
||||
target_compile_options(${target} PRIVATE "$<$<COMPILE_LANGUAGE:CUDA>:SHELL:-Xcompiler /wd4505>")
|
||||
endif()
|
||||
|
||||
if (UNIX)
|
||||
target_compile_options(${target} PRIVATE "$<$<COMPILE_LANGUAGE:CUDA>:SHELL:-Xcompiler -Wno-reorder>"
|
||||
|
|
|
|||
Loading…
Reference in a new issue