From c6ed0774417aa1efb2b2bdd99f08f051a43cd682 Mon Sep 17 00:00:00 2001 From: Changming Sun Date: Thu, 27 Feb 2020 20:22:07 -0800 Subject: [PATCH] Add d2FH4- flag to cuda (#3105) --- cmake/onnxruntime_providers.cmake | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cmake/onnxruntime_providers.cmake b/cmake/onnxruntime_providers.cmake index e575c35dc7..1b6c19decc 100644 --- a/cmake/onnxruntime_providers.cmake +++ b/cmake/onnxruntime_providers.cmake @@ -146,6 +146,8 @@ if (onnxruntime_USE_CUDA) "$<$>:-Wno-reorder>") target_compile_options(onnxruntime_providers_cuda PRIVATE "$<$:SHELL:-Xcompiler -Wno-error=sign-compare>" "$<$>:-Wno-error=sign-compare>") + elseif(HAS_D2FH4) + target_compile_options(onnxruntime_providers_cuda PRIVATE "$<$:SHELL:-Xcompiler /d2FH4->") endif() onnxruntime_add_include_to_target(onnxruntime_providers_cuda onnxruntime_common onnxruntime_framework onnx onnx_proto protobuf::libprotobuf) add_dependencies(onnxruntime_providers_cuda ${onnxruntime_EXTERNAL_DEPENDENCIES} ${onnxruntime_tvm_dependencies})