Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ jobs:
with:
otp-version: ${{ matrix.otp }}
elixir-version: ${{ matrix.elixir }}
# ort 2.0.0-rc.8 fails to build the CUDA/TensorRT variant on Rust 1.100+
# (new cargo build-dir layout). Remove once ort is upgraded.
- name: Pin Rust 1.99
run: rustup toolchain install 1.99.1 --profile minimal && rustup default 1.99.1
- name: Install dependencies
run: mix deps.get
- name: Compile and check warnings
Expand Down
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,3 +62,8 @@ end
```

You will need [Rust](https://www.rust-lang.org/tools/install) for compilation to succeed.

Builds that link ONNX Runtime dynamically, which includes the `cuda` and `tensorrt` features,
fail to compile with Rust 1.100 and later because of the `ort` version Ortex currently uses.
Until `ort` is upgraded, use Rust 1.99 for these builds, for example by running
`rustup override set 1.99.1` in your project directory.
Loading