You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tvm.apache.org by GitBox <gi...@apache.org> on 2022/12/13 11:43:49 UTC

[GitHub] [tvm] Okoyl opened a new issue, #13607: [Bug] [Rust] dependency crates out of date?

Okoyl opened a new issue, #13607:
URL: https://github.com/apache/tvm/issues/13607

   Hey, I began to use TVM in my environment to optimize and use trained models, It's really great so far and looks very promising. I'm currently hoping to write a Rust based inference code using tvm, the sample in the tvm-rt crate looks okay.
   
   I added the crate to my rust project by running:
   ```sh
   cargo add tvm-rt
   ```
   
   
   ### Expected behavior
   
   I added the crate to my rust project by running:
   ```sh
   cargo add tvm-rt
   ```
   I was expecting a full build or having all the dependencies resolved.
   ### Actual behavior
   
   But I get errors indicating that the sub-dependency 'platforms' is seriously out of date.
   ```
   error: failed to select a version for the requirement `platforms = "^0.2.0"`
   candidate versions found which didn't match: 3.0.2, 3.0.1, 3.0.0, ...
   location searched: crates.io index
   required by package `heim-host v0.0.11`
       ... which satisfies dependency `heim-host = "^0.0.11"` of package `heim v0.0.11`
       ... which satisfies dependency `heim = "^0.0.11"` of package `tvm-build v0.1.0`
       ... which satisfies dependency `tvm-build = "^0.1"` of package `tvm-sys v0.1.1-alpha`
       ... which satisfies dependency `tvm-sys = "^0.1.1-alpha"` of package `tvm-rt v0.1.0-alpha`
       ... which satisfies dependency `tvm-rt = "^0.1.0-alpha"` of package `rs v0.1.0 (/home/eli/Projects/tvm/rs)`
   ```
   ### Environment
   
   OS: Ubuntu 22.04 LTS x86_64
   rustc 1.64.0 (a55dd71d5 2022-09-19)
   cargo 1.64.0 (387270bc7 2022-09-16)
   
   ### Steps to reproduce
   
   ```sh
   mkdir try_tvm
   cd try_tvm
   cargo init
   cargo add tvm-rt
   ```
   
   ### Triage
   
   Please refer to the list of label tags [here](https://github.com/apache/tvm/wiki/Issue-Triage-Labels) to find the relevant tags and add them below in a bullet format (example below).
   
   * needs-triage
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@tvm.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [tvm] Okoyl commented on issue #13607: [Bug] [Rust] dependency crates out of date?

Posted by GitBox <gi...@apache.org>.
Okoyl commented on issue #13607:
URL: https://github.com/apache/tvm/issues/13607#issuecomment-1348739921

   Okay, I figured it out.
   
   I'm using the TVM I compiled previously by telling cargo to use the crate like that:
   ```toml
   tvm-rt = { path = "/home/eli/Projects/tvm/tvm/rust/tvm-rt", features = ["dynamic-linking"] }
   ```
   
   Having some other issues at the moment, so I guess this is resolved.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@tvm.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org