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

Implement an AVX2 accelerated Engine #170

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
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.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 4 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,13 +62,16 @@ jobs:
- run:
name: Confirm a fuzzer can run
# TERM=dumb prevents cargo fuzz list from printing with color
# RUSTFLAGS="-C target-cpu=native" is required so rustc will generate SIMD instructions if they are
# available on the host target
environment:
TERM: dumb
RUSTFLAGS: "-C target-cpu=native"
command: |
if [[ '<< parameters.rust_img >>' = 'rustlang/rust:nightly' ]]
then
cargo install cargo-fuzz
cargo fuzz list | xargs -I FUZZER cargo fuzz run FUZZER -- -max_total_time=1
cargo fuzz list | xargs -I FUZZER cargo fuzz run --all-features FUZZER -- -max_total_time=1
fi

- save_cache:
Expand Down
8 changes: 8 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,18 +16,26 @@ rust-version = "1.47.0"
name = "benchmarks"
harness = false

[[bench]]
name = "avx2benchmarks"
harness = false
required-features = ["avx2"]

[dev-dependencies]
criterion = "0.3.4"
rand = "0.6.1"
structopt = "0.3.21"
# test fixtures for engine tests
rstest = "0.11.0"
rstest_reuse = "0.1.3"
lazy_static = "1.4.0"

[features]
default = ["std"]
alloc = []
std = []
unsafe = []
avx2 = ["unsafe"]

[profile.bench]
# Useful for better disassembly when using `perf record` and `perf annotate`
Expand Down