Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Build] #18570

Open
grinay opened this issue Nov 23, 2023 · 4 comments
Open

[Build] #18570

grinay opened this issue Nov 23, 2023 · 4 comments
Labels
ep:oneDNN questions/issues related to DNNL EP

Comments

@grinay
Copy link

grinay commented Nov 23, 2023

Describe the issue

Can't build nuget packages. I'm trying to build dnnl version , and faces the issue to build nuget packages.
I checkout from the branch v1.16.3, and it seems there is references to a file which doesn't exist in current branch.
Please advice how to fi it.

Urgency

No response

Target platform

Ubuntu 22.04

Build script

build.sh

Error / output

Attempting to build package from 'NativeNuget.nuspec'.
EXEC : error NU5019: File not found: '/onnxruntime/include\onnxruntime\core\providers\dnnl\dnnl_provider_factory.h'. [/onnxruntime/csharp/OnnxRuntime.CSharp.proj]
/onnxruntime/csharp/OnnxRuntime.CSharp.proj(104,5): error MSB3073: The command "nuget pack NativeNuget.nuspec" exited with code 1.

Visual Studio Version

No response

GCC / Compiler Version

11.4.0

@grinay grinay added the build build issues; typically submitted using template label Nov 23, 2023
@grinay
Copy link
Author

grinay commented Nov 23, 2023

I think problem is in tools/nuget/generate_nuspec_for_native_nuget.py, I edit the path to this file manually by removing "include" and it works.

@grinay
Copy link
Author

grinay commented Nov 23, 2023

However build doesn't work. Having this issue.
2023-11-23T17:05:57.077Z aec0ff81-3a57-4b5c-9f7c-3ffb7774c401 fail Microsoft.ML.OnnxRuntime.OnnxRuntimeException: [ErrorCode:RuntimeException] /onnxruntime/onnxruntime/core/session/provider_bridge_ort.cc:1193 onnxruntime::Provider& onnxruntime::ProviderLibrary::Get() [ONNXRuntimeError] : 1 : FAIL : Failed to load library libonnxruntime_providers_dnnl.so with error: /var/task/libonnxruntime_providers_dnnl.so: undefined symbol: dnnl_lrn_forward_primitive_desc_create
Any advice or help appreciated.

@cloudhan
Copy link
Contributor

Please follow Linux section in https://github.com/microsoft/onnxruntime/blob/main/csharp/readme.md

@snnn snnn added ep:oneDNN questions/issues related to DNNL EP and removed build build issues; typically submitted using template labels Nov 27, 2023
@tboby
Copy link
Contributor

tboby commented Feb 19, 2024

Please follow Linux section in https://github.com/microsoft/onnxruntime/blob/main/csharp/readme.md

I've spent half a day trying every combination of those settings with no luck, on 1.16.3 and 1.70.0.

It is possible d1533c2 broke the DNNL build for dotnet by not updating the nuget script at the same time?

Has anybody managed to build the onednn build since then?

Is there a dockerfile setup for building dnnl + dotnet on linux anywhere by any chance? :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ep:oneDNN questions/issues related to DNNL EP
Projects
None yet
Development

No branches or pull requests

4 participants