From 768ced703c49cf16545bc0324029b072f7261d0f Mon Sep 17 00:00:00 2001 From: shahasad <43590019+shahasad@users.noreply.github.com> Date: Mon, 22 Jul 2019 19:03:06 -0700 Subject: [PATCH] Expose provider factory C API, especially for CUDA users (#1461) Exposed provider factory C API, for cpu and cuda providers, into the published packages. --- cmake/CMakeLists.txt | 5 ++++- .../Microsoft.ML.OnnxRuntime.csproj | 12 ++++++++++++ .../core/providers/cpu/cpu_provider_factory.h | 2 +- .../core/providers/cuda/cuda_provider_factory.h | 2 +- .../core/providers/mkldnn/mkldnn_provider_factory.h | 2 +- .../core/providers/ngraph/ngraph_provider_factory.h | 2 +- .../core/providers/nnapi/nnapi_provider_factory.h | 2 +- .../providers/openvino/openvino_provider_factory.h | 2 +- .../providers/tensorrt/tensorrt_provider_factory.h | 2 +- ...i-artifacts-package-and-publish-steps-windows.yml | 4 ++++ tools/ci_build/github/linux/copy_strip_binary.sh | 3 +++ 11 files changed, 30 insertions(+), 8 deletions(-) diff --git a/cmake/CMakeLists.txt b/cmake/CMakeLists.txt index 6893c00aa3..f6252b90aa 100644 --- a/cmake/CMakeLists.txt +++ b/cmake/CMakeLists.txt @@ -467,7 +467,10 @@ if (onnxruntime_USE_JEMALLOC) list(APPEND onnxruntime_EXTERNAL_DEPENDENCIES jemalloc) endif() -include_directories(${ONNXRUNTIME_INCLUDE_DIR}) +include_directories( + ${ONNXRUNTIME_INCLUDE_DIR} + ${REPO_ROOT}/include/onnxruntime/core/session +) if (onnxruntime_USE_MKLDNN OR onnxruntime_USE_MKLML) include(mkldnn) diff --git a/csharp/src/Microsoft.ML.OnnxRuntime/Microsoft.ML.OnnxRuntime.csproj b/csharp/src/Microsoft.ML.OnnxRuntime/Microsoft.ML.OnnxRuntime.csproj index bffa46e623..f7fbdcda28 100644 --- a/csharp/src/Microsoft.ML.OnnxRuntime/Microsoft.ML.OnnxRuntime.csproj +++ b/csharp/src/Microsoft.ML.OnnxRuntime/Microsoft.ML.OnnxRuntime.csproj @@ -46,6 +46,18 @@ CopyToOutputDirectory="Never" Visible="false" /> + +