Sahar/csharp support openvino#4703
Conversation
…with linux till we configure azure ci pipeline
Documentation includes openvino execution provider
update details to build csharp api for openvino execution provider .
…el/onnxruntime into sahar/csharp_support_openvino
updated for review comments
|
@hariharans29 can you please help review? thanks. |
change in native nuget spec python script for including linux runtime
…el/onnxruntime into sahar/csharp_support_openvino
| # Process runtimes | ||
| # Process linux | ||
| if (args.linux_build != 'None'): | ||
| files_list.append('<file src=' + '"' + os.path.join(args.sources_path, args.linux_build) + |
There was a problem hiding this comment.
linux_build [](start = 84, length = 11)
I think we can just hard-code the shared library name - libonnxruntime.so. I think we have used onnxruntime.dll in a hard-coded fashion in a lot of places.
There was a problem hiding this comment.
Unless there should be some functionality to copy the file from wherever it is to the correct location.
In reply to: 465305444 [](ancestors = 465305444)
| On Windows Machine | ||
| ``` | ||
| cp libonnxruntime.so $PATH/onnxruntime/ | ||
| .\build.bat --config Debug --build --use_openvino $Device --build_csharp |
There was a problem hiding this comment.
What value should $PATH have? There are a few things it could be so a description would be better.
There was a problem hiding this comment.
Not sure this is clear enough for a new user.
Where is libonnxruntime.so copied from? Assuming the build output directory from the Linux build, but there's no mention of where to find that like <ORT linux repo>/build/Linux/<config>.
Also feels a little hacky to just dump the linux .so file in the root directory of the ORT repo. Would be nicer to put it somewhere closer to where the C# build output would go, like <ORT Windows repo>\csharp\src\Microsoft.ML.OnnxRuntime\bin\<config>\linux.
updated for review comments
|
/azp run Linux CPU CI Pipeline,Linux CPU x64 NoContribops CI Pipeline,Linux GPU CI Pipeline,Linux GPU TensorRT CI Pipeline,MacOS CI Pipeline,MacOS NoContribops CI Pipeline,Windows CPU CI Pipeline,Windows GPU CI Pipeline,Windows GPU TensorRT CI Pipeline |
|
Azure Pipelines successfully started running 9 pipeline(s). |
|
/azp run orttraining-linux-ci-pipeline,orttraining-mac-ci-pipeline,orttraining-linux-gpu-ci-pipeline,centos7_cpu,Linux OpenVINO CI Pipeline |
|
Azure Pipelines successfully started running 5 pipeline(s). |
|
the python script modifications is failing PEP8 check. |
| device_ = ""; | ||
| } else { | ||
| device_ = device; | ||
| device_ = std::string(device); |
There was a problem hiding this comment.
std::string [](start = 16, length = 11)
Keep the assignment
modification to documentation
|
/azp run Linux CPU CI Pipeline,Linux CPU x64 NoContribops CI Pipeline,Linux GPU CI Pipeline,Linux GPU TensorRT CI Pipeline,MacOS CI Pipeline,MacOS NoContribops CI Pipeline,Windows CPU CI Pipeline,Windows GPU CI Pipeline,Windows GPU TensorRT CI Pipeline |
|
/azp run orttraining-linux-ci-pipeline,orttraining-mac-ci-pipeline,orttraining-linux-gpu-ci-pipeline,centos7_cpu,Linux OpenVINO CI Pipeline |
|
Azure Pipelines successfully started running 5 pipeline(s). |
|
Azure Pipelines successfully started running 9 pipeline(s). |
| parser.add_argument("--is_release_build", required=False, default=None, type=str, | ||
| help="Flag indicating if the build is a release build. Accepted values: true/false.") | ||
| parser.add_argument("--linux_build", required=False, default=False, type=bool, | ||
| help="specify the libonnxruntime.so lib values") |
There was a problem hiding this comment.
the help string probably needs to be updated after the change to bool type.
| # Process runtimes | ||
| # Process linux | ||
| if (args.linux_build != 'None'): | ||
| files_list.append('<file src=' + '"' + os.path.join(args.sources_path, args.linux_build) + |
There was a problem hiding this comment.
args.linux_build is now a bool right?
so it should be os.path.join(args.sources_path, 'libonnxruntime.so') instead?
|
|
||
| # Process runtimes | ||
| # Process linux | ||
| if (args.linux_build != 'None'): |
There was a problem hiding this comment.
args.linux_build is now a bool, so this check for None needs to be changed?
This reverts commit 0a0ac70.
* Temp changes and include openvino to ensure nuget package is created with linux till we configure azure ci pipeline * string id change * native nuget indentation changes * documentation changes * Update Openvino_execution_provider.md Documentation includes openvino execution provider * Update OpenVino-ExecutionProvider.md update details to build csharp api for openvino execution provider . * vadm backend revert * Update Openvino-Execution-Provider.md updated for review comments * Update OpenVino-Execution-Provider.md * Update OpenVINO-ExecutionProvider.md * nuget package custome support for openvino change in native nuget spec python script for including linux runtime * change to make path to boolean flag * removed the tab * Update OpenVINO-ExecutionProvider.md updated for review comments * chnages to include pep8 warnings modification to documentation Co-authored-by: saharfraza <sfatima.3001@gmail.com> Co-authored-by: sfatimar <sahar.fatima@intel/com>
* Sahar/csharp support openvino (#4703) * Temp changes and include openvino to ensure nuget package is created with linux till we configure azure ci pipeline * string id change * native nuget indentation changes * documentation changes * Update Openvino_execution_provider.md Documentation includes openvino execution provider * Update OpenVino-ExecutionProvider.md update details to build csharp api for openvino execution provider . * vadm backend revert * Update Openvino-Execution-Provider.md updated for review comments * Update OpenVino-Execution-Provider.md * Update OpenVINO-ExecutionProvider.md * nuget package custome support for openvino change in native nuget spec python script for including linux runtime * change to make path to boolean flag * removed the tab * Update OpenVINO-ExecutionProvider.md updated for review comments * chnages to include pep8 warnings modification to documentation Co-authored-by: saharfraza <sfatima.3001@gmail.com> Co-authored-by: sfatimar <sahar.fatima@intel/com> * Changes to include csharp support for openvino * Fix flake error * Fix Co-authored-by: sfatimar <64512376+sfatimar@users.noreply.github.com> Co-authored-by: saharfraza <sfatima.3001@gmail.com> Co-authored-by: sfatimar <sahar.fatima@intel/com>
Description:
Changes to include csharp support for openvino
Openvino provider factory header is included as part of the nuget package to enable openvino ep for csharp build
Linux shared library included as part of nuget package through msbuild process for easy nuget packing
Motivation and Context