Giter Club home page Giter Club logo

Comments (7)

chilo-ms avatar chilo-ms commented on September 26, 2024

@JulienTheron
Could you help change the build script here ?
-or (args.use_tensorrt and args.use_tensorrt_oss_parser)
+or args.use_tensorrt
to use protobuf?

The issue is because when building Debug on Windows, ORT will implicitly use oss onnx-tensorrt parser rather than built-in parser due to known issue of msvc. And oss onnx-tensorrt requires protobuf not protobuf-lite.

from onnxruntime.

chilo-ms avatar chilo-ms commented on September 26, 2024

We will have a fix for it.
And for the upcoming TRT 10 GA, onnx-tensorrt parser will support protobuf-lite and TRT EP can then move to protobuf-lite completely.

from onnxruntime.

JulienTheron avatar JulienTheron commented on September 26, 2024

Thanks for the quick response. I think the issue is linked to #20368. I will try to build the correct tag and will get back to you.

from onnxruntime.

JulienTheron avatar JulienTheron commented on September 26, 2024

It seems QSpectre is enabled by default now, unless --enable_address_sanitizer is set.
I'm not sure if this is by design, but I updated my build script to replace --disable_memleak_checker with --enable_address_sanitizer and the build succeeded!
Thanks.

from onnxruntime.

JulienTheron avatar JulienTheron commented on September 26, 2024

I just found out that enabling the address sanitizer is not a good solution for us as it relies on the presense of clang_rt.asan_dynamic-x86_64.dll at runtime, which is not a good idea when you ship a DLL to your users.
So currently, we're stuck with being forced to enable QSpectre when building ORT v1.17.3, which breaks the build as those prerequisites are not installed with Visual Studio by default.
Any idea if this can be fixed before 1.18?

from onnxruntime.

chilo-ms avatar chilo-ms commented on September 26, 2024

Could you help change the build script here ?
-or (args.use_tensorrt and args.use_tensorrt_oss_parser)
+or args.use_tensorrt

just wondering did you try above?

i can repro from my side and this issue is because of using protobuf-lite when building the onnx-tensorrt parser.

update: had a PR for this issue.

from onnxruntime.

JulienTheron avatar JulienTheron commented on September 26, 2024

Yes I did try your fix and it works fine on the main branch, but it's not applicable for 1.17.3 as the build script is different.
The issue now is that QSpectre is always enabled when building 1.17.3. I think I'll open a new issue for that.
Thanks.

from onnxruntime.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.