Skip to content

Commit

Permalink
Add avx512 feature
Browse files Browse the repository at this point in the history
This enables the AVX-512 kernels in RTen.
  • Loading branch information
robertknight committed Apr 30, 2024
1 parent db7889f commit e990429
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ocrs-cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ url = "2.4.0"
home = "0.5.9"
anyhow = "1.0.79"

[features]
# Use AVX-512 instructions if available. Requires nightly Rust.
avx512 = ["rten/avx512"]

[[bin]]
name = "ocrs"
path = "src/main.rs"
Expand Down
4 changes: 4 additions & 0 deletions ocrs/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,7 @@ rten-imageio = { version = "0.8.0" }

[lib]
crate-type = ["lib", "cdylib"]

[features]
# Use AVX-512 instructions if available. Requires nightly Rust.
avx512 = ["rten/avx512"]

0 comments on commit e990429

Please sign in to comment.