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 failure with tvm flag #227

Closed
barakugav opened this issue Jul 6, 2024 · 2 comments
Closed

Build failure with tvm flag #227

barakugav opened this issue Jul 6, 2024 · 2 comments

Comments

@barakugav
Copy link

When trying to build ort with the tvm flag, I get a compilation error:

error[E0308]: mismatched types
   -->.../.cargo/registry/src/index.crates.io-6f17d22bba15001f/ort-2.0.0-rc.2/src/execution_providers/tvm.rs:113:96
    |
113 |                 OrtSessionOptionsAppendExecutionProvider_Tvm(session_builder.session_options_ptr.as_ptr(), options_string.as_ptr())
    |                 -------------------------------------------- arguments to this function are incorrect      ^^^^^^^^^^^^^^^^^^^^^^^ expected `i32`, found `*const i8`
    |
    = note:     expected type `i32`
            found raw pointer `*const i8`

This is how I define the dependency in Cargo.toml:

ort = { version = "2.0.0-rc.2", features = ["tvm"] }

My machine is MacBook with arm64 M3 core.
Any configuration that I'm missing?
Thanks for the support :)

@barakugav
Copy link
Author

Thanks!
ort_lib::TVMExecutionProvider::default().is_available().unwrap() is false, any idea why? @decahedron1

@decahedron1
Copy link
Member

Are you using custom binaries? The default binaries don't come with TVM, you need to compile ONNX Runtime from source with it enabled.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants