microsoft / onnxruntime

ONNX Runtime: cross-platform, high performance ML inferencing and training accelerator
https://onnxruntime.ai
MIT License
14.25k stars 2.87k forks source link

[Build] Nuget doesn't contain runtimes and build #19800

Open Dr-Electron opened 7 months ago

Dr-Electron commented 7 months ago

Describe the issue

I'm new to nuget, but I had to use it to get a nightly version of onnxruntime. I installed OnnxRuntime.Gpu version 1.18 but there is no build or runtimes folder containing the lib and/or the includes. Am I missing something? If I install a stable nuget version I also don't get all the needed folders/files. Only with the cpu version i seem to get them.

Urgency

Not urgent. In the meantime I should be able to compile myself

Target platform

Windows

Build script

-

Error / output

-

Visual Studio Version

17.8.3

GCC / Compiler Version

No response

skottmckay commented 7 months ago

The GPU package is split into Windows and Linux packages due to nuget size restrictions. Those are dependencies of Microsoft.ML.OnnxRuntime.Gpu, so if you add that to a project the nuget package manager should download the Windows and Linux sub-packages automatically.

image
Dr-Electron commented 7 months ago

Doesn't seem like it does for me 🤔 Also I still need the header files. Do I also need to install Microsoft.ML.OnnxRuntime to get them? Sounds wrong. Am I doing something wrong? Edit: Found them in the linux package, but they are not used by visual studio than if I install everything manually. So the actuall problem is that nuget in my case doesn't install all dependencies correctly I guess

Dr-Electron commented 7 months ago

The nuget package works in a c# project btw. The above problems I have for native c++

github-actions[bot] commented 6 months ago

This issue has been automatically marked as stale due to inactivity and will be closed in 30 days if no further activity occurs. If further support is needed, please provide an update and/or more details.

edornd commented 1 week ago

Bumping this since I have the same problem. Somebody found a solution?