mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-07-30 20:18:08 +00:00
Update onnxruntime_unittests.cmake (#10215)
This commit is contained in:
parent
bacae967a2
commit
5ebb857501
1 changed files with 3 additions and 0 deletions
|
|
@ -1170,6 +1170,9 @@ if (onnxruntime_USE_CUDA)
|
|||
onnxruntime_add_shared_library_module(custom_op_library ${ONNXRUNTIME_SHARED_LIB_TEST_SRC_DIR}/cuda_ops.cu
|
||||
${TEST_SRC_DIR}/testdata/custom_op_library/custom_op_library.cc)
|
||||
target_include_directories(custom_op_library PRIVATE ${CMAKE_CUDA_TOOLKIT_INCLUDE_DIRECTORIES})
|
||||
if (HAS_QSPECTRE)
|
||||
target_compile_options(custom_op_library PRIVATE "$<$<COMPILE_LANGUAGE:CUDA>:SHELL:-Xcompiler /Qspectre>")
|
||||
endif()
|
||||
else()
|
||||
onnxruntime_add_shared_library_module(custom_op_library ${TEST_SRC_DIR}/testdata/custom_op_library/custom_op_library.cc)
|
||||
endif()
|
||||
|
|
|
|||
Loading…
Reference in a new issue