microsoft / microsoft/onnxruntime
Unable to build C# API for OpenVINO Execution Provider With VS2019
@askhade is already working on this.
Since Aug 27, 2020.
- Dominant language
- C++
- Stars
- 21.9k
- Forks
- 4.2k
- Avg merge
- 4d 11h
- Merged PRs (30d)
- 184
Description
Describe the bug
Following the instructions at the following URL fails in ways I'll describe in more detail further down: https://github.com/microsoft/onnxruntime/blob/master/docs/execution_providers/OpenVINO-ExecutionProvider.md#csharp-api
Urgency
I want to do inference on the Integrated Intel GPU from C#
System information
- OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Windows 10
- ONNX Runtime installed from (source or binary): Source
- ONNX Runtime version: 1.4.0
- Python version: 3.6.5
- Visual Studio version (if applicable): 2019
- GCC/Compiler version (if compiling from source):
- CUDA/cuDNN version: None
- GPU model and memory:
To Reproduce
- Using cmake 3.14.0
- Visual Studio 2019
git clone --recursive https://github.com/Microsoft/onnxruntime
cd onnxruntime
.\build.bat --config Debug --build --use_openvino GPU_FP16 --cmake_generator "Visual Studio 16 2019" --build_csharp
yields
Error: C:/Users/josh/projects/onnxruntime/build/Windows/Debug is not a directory
Following the baseline CPU build instructions at https://github.com/microsoft/onnxruntime/blob/master/BUILD.md#windows I changed this to
.\build.bat --config RelWithDebInfo --build --use_openvino GPU_FP16 --cmake_generator "Visual Studio 16 2019" --build_csharp
which worked. Following the next line in the OpenVino instructions, I did:
msbuild csharp\OnnxRuntime.CSharp.proj /p:OrtPackageId=Microsoft.ML.OnnxRuntime.Openvino /p:Configuration=Debug /t:CreatePackage
which gave the following error:
FileNotFoundError: [Errno 2] No such file or directory: 'c:\\Users\\josh\\projects\\onnxruntime\\build\\Windows\\Debug\\Debug\\NativeNuget.nuspec'
I then changed this to
msbuild csharp\OnnxRuntime.CSharp.proj /p:OrtPackageId=Microsoft.ML.OnnxRuntime.Openvino /p:Configuration=RelWithDebInfo /t:CreatePackage
which gave the following error:
C:\Program Files\dotnet\sdk\3.1.401\Sdks\NuGet.Build.Tasks.Pack\build\NuGet.Build.Tasks.Pack.targets(198,5): error NU5026: The file 'c:\Users\josh\projects\onnxruntime\csharp\src\Microso
ft.ML.OnnxRuntime\bin\RelWithDebInfo\netstandard1.1\Microsoft.ML.OnnxRuntime.dll' to be packed was not found on disk. [c:\Users\josh\projects\onnxruntime\csharp\src\Microsoft.ML.OnnxRunt
ime\Microsoft.ML.OnnxRuntime.csproj
and that's where I'm stuck.
Expected behavior
Creation of a Nuget package.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.