mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-05-17 21:10:43 +00:00
* squashed commit for standalone tvm execution provider * critical fix for correct python build with stvm ep * get tuning log file from ep options. It has priority over AUTOTVM_TUNING_LOG * updates and fixes * update parsing of stvm provider options * add support of external data for onnx model * add conditional dump of subgraphs * remove unused code * get input tensor shapes through provider options. get output shapes for fixed input ones by TVM API * support AUTO_TVM tuning log file inside ORT. Selector for Ansor and Auto_TVM is provider option (tuning_type) * add fp16 * add functionality of conversion of model layout to NHWC if need. Necessary parameter was added to STVM provider options * fix license text in header. fix log format * small fixes * fix issues from flake8 * remove model proto construction from GetCapability * reserve memory for vector of DLTensors * add simple tutorial for STVM EP * STVM docs * jroesch/tvm -> apache/tvm * remove dead code, unneccessary logs and comments * fix in readme * improve tutorial notebook * tvm update * update STVM_EP.md * fix default value * update STVM_EP.md * some TODOs for the future development * shorten long lines * add hyperlink to STVM_EP.md * fix Linux CI error * fix error in csharp test Co-authored-by: Jared Roesch <jroesch@octoml.ai> Co-authored-by: Valery Chernov <valery.chernov@deelvin.com> Co-authored-by: KJlaccHoeUM9l <wotpricol@mail.ru>
59 lines
1.6 KiB
CMake
59 lines
1.6 KiB
CMake
# Copyright (c) Microsoft Corporation. All rights reserved.
|
|
# Licensed under the MIT License.
|
|
|
|
set (CSHARP_ROOT ${PROJECT_SOURCE_DIR}/../csharp)
|
|
set (CSHARP_MASTER_TARGET OnnxRuntime.CSharp)
|
|
set (CSHARP_MASTER_PROJECT ${CSHARP_ROOT}/OnnxRuntime.CSharp.proj)
|
|
if (onnxruntime_RUN_ONNX_TESTS)
|
|
set (CSHARP_DEPENDS onnxruntime ${test_data_target})
|
|
else()
|
|
set (CSHARP_DEPENDS onnxruntime)
|
|
endif()
|
|
|
|
if (onnxruntime_USE_CUDA)
|
|
STRING(APPEND CSHARP_PREPROCESSOR_DEFINES "USE_CUDA;")
|
|
endif()
|
|
|
|
if (onnxruntime_USE_DNNL)
|
|
STRING(APPEND CSHARP_PREPROCESSOR_DEFINES "USE_DNNL;")
|
|
endif()
|
|
|
|
if (onnxruntime_USE_DML)
|
|
STRING(APPEND CSHARP_PREPROCESSOR_DEFINES "USE_DML;")
|
|
endif()
|
|
|
|
if (onnxruntime_USE_MIGRAPHX)
|
|
STRING(APPEND CSHARP_PREPROCESSOR_DEFINES "USE_MIGRAPHX;")
|
|
endif()
|
|
|
|
if (onnxruntime_USE_NNAPI_BUILTIN)
|
|
STRING(APPEND CSHARP_PREPROCESSOR_DEFINES "USE_NNAPI;")
|
|
endif()
|
|
|
|
if (onnxruntime_USE_NUPHAR)
|
|
STRING(APPEND CSHARP_PREPROCESSOR_DEFINES "USE_NUPHAR;")
|
|
endif()
|
|
|
|
if (onnxruntime_USE_STVM)
|
|
STRING(APPEND CSHARP_PREPROCESSOR_DEFINES "USE_STVM,")
|
|
endif()
|
|
|
|
if (onnxruntime_USE_OPENVINO)
|
|
STRING(APPEND CSHARP_PREPROCESSOR_DEFINES "USE_OPENVINO;")
|
|
endif()
|
|
|
|
if (onnxruntime_USE_ROCM)
|
|
STRING(APPEND CSHARP_PREPROCESSOR_DEFINES "USE_ROCM;")
|
|
endif()
|
|
|
|
if (onnxruntime_USE_TENSORRT)
|
|
STRING(APPEND CSHARP_PREPROCESSOR_DEFINES "USE_TENSORRT;")
|
|
endif()
|
|
|
|
include(CSharpUtilities)
|
|
|
|
# generate Directory.Build.props
|
|
set(DIRECTORY_BUILD_PROPS_COMMENT "WARNING: This is a generated file, please do not check it in!")
|
|
configure_file(${CSHARP_ROOT}/Directory.Build.props.in
|
|
${CSHARP_ROOT}/Directory.Build.props
|
|
@ONLY)
|