Skip to content

Commit

Permalink
🙈 add full copy of half to dev dep with rand_distr feature (#68)
Browse files Browse the repository at this point in the history
* 🙈 add full copy of half to dev dep with rand_distr feature

* fix: test_utils gate for target aarch64

* ci: update codspeed actions

* 🙈
  • Loading branch information
jvdd authored Aug 24, 2024
1 parent eff8899 commit ec2607d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/codspeed.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,14 @@ jobs:
rustup default nightly
- name: Install cargo-codspeed (with cache)
uses: baptiste0928/cargo-install@v1
uses: baptiste0928/cargo-install@v3
with:
crate: cargo-codspeed

- name: Build the benchmark target(s)
run: cargo codspeed build --features half

- uses: CodSpeedHQ/action@v2
- uses: CodSpeedHQ/action@v3
name: Run benchmarks
with:
run: cargo codspeed run
6 changes: 2 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,16 +31,14 @@ arrow = ["dep:arrow"]
arrow2 = ["dep:arrow2"]

[dev-dependencies]
half = { version = "2.4", default-features = false, features=["num-traits", "rand_distr"] }
rstest = { version = "0.18.2", default-features = false }
rstest_reuse = { version = "0.6", default-features = false }
rand = { version = "0.8.5", default-features = false }
codspeed-criterion-compat = "2.4"
codspeed-criterion-compat = "2.6"
criterion = "0.5.1"
dev_utils = { path = "dev_utils" }

[dev-dependencies.half]
features = ["rand_distr"]


[[bench]]
name = "bench_f16_return_nan"
Expand Down
3 changes: 2 additions & 1 deletion src/simd/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ mod simd_u8;
#[cfg(any(
target_arch = "x86",
target_arch = "x86_64",
all(target_arch = "aarch64", feature = "float"), // is stable for f64
target_arch = "aarch64",
all(target_arch = "arm", feature = "float"), // is stable for f64
feature = "nightly_simd"
))]
mod test_utils;

0 comments on commit ec2607d

Please sign in to comment.