-
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e4ea4c6
commit 0f2bc2d
Showing
2 changed files
with
63 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,10 +14,8 @@ env: | |
CARGO_TERM_COLOR: always | ||
|
||
jobs: | ||
CI: | ||
|
||
Linux: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions-rs/toolchain@v1 | ||
|
@@ -74,3 +72,62 @@ jobs: | |
env: | ||
RUSTFLAGS: -Cinstrument-coverage | ||
LLVM_PROFILE_FILE: coverage-%p-%m.profraw | ||
|
||
macOS: | ||
runs-on: macos-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions-rs/toolchain@v1 | ||
with: | ||
toolchain: nightly | ||
- uses: actions/cache@v2 | ||
with: | ||
path: | | ||
~/.cargo/registry | ||
~/.cargo/git | ||
target | ||
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} | ||
- name: Download large files | ||
working-directory: ./models | ||
run: ./download.sh CI | ||
- name: Add llvm-tools-preview | ||
run: rustup component add llvm-tools-preview | ||
- name: Install grcov | ||
run: cargo install grcov | ||
- name: Install dependencies | ||
run: brew install libomp | ||
- name: Install poetry | ||
run: brew install poetry [email protected] | ||
- name: Test | ||
run: | | ||
cargo test --release | ||
ALTIUS_ENABLE_CLIF=1 cargo test --release | ||
env: | ||
RUSTFLAGS: -Cinstrument-coverage | ||
LLVM_PROFILE_FILE: coverage-%p-%m.profraw | ||
- name: Run examples | ||
run: | | ||
(cd crates/altius-py && poetry run python deit.py) | ||
(cd crates/altius-py && poetry run python resnet50.py) | ||
(cd crates/altius-py && poetry run python export_vit.py) | ||
cargo run --release --example mnist | ||
cargo run --release --example mobilenet | ||
cargo run --release --example deit | ||
cargo run --release --example mnist_cpu | ||
cargo run --release --example mobilenet_cpu | ||
cargo run --release --example deit_cpu | ||
cargo run --release --example vit_cpu | ||
cargo run --release --example vit | ||
cargo run --release --example infer -- ./models/mnist-8.onnx | ||
env: | ||
RUSTFLAGS: -Cinstrument-coverage | ||
LLVM_PROFILE_FILE: coverage-%p-%m.profraw | ||
# - name: Submit coverage | ||
# run: | | ||
# mkdir -p /tmp/cov/ | ||
# cp -rf ./target/release/* /tmp/cov/ | ||
# grcov . --binary-path /tmp/cov/ -s . -t cobertura --branch --ignore-not-existing --ignore "*cargo*" -o coverage.xml | ||
# bash <(curl -s https://codecov.io/bash) | ||
# env: | ||
# RUSTFLAGS: -Cinstrument-coverage | ||
# LLVM_PROFILE_FILE: coverage-%p-%m.profraw |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,8 @@ | ||
#!/bin/bash -eux | ||
|
||
export LANG=C | ||
export LC_ALL=C | ||
|
||
download() { | ||
ID=${1?} | ||
OUT=${2?} | ||
|