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

Use std::hint::black_box consistently. #1273

Merged
merged 1 commit into from
Sep 30, 2023

Conversation

waywardmonkeys
Copy link
Contributor

This also removes the #![feature(bench_black_box)]. This was stabilized in Rust 1.66 and anyone building benchmarks will be on that or later (as they previously would have been on nightly).

This also allows building cargo build --all-targets on stable Rust as it no longer dies when hitting the feature addition in the benchmarks.

This also removes the `#![feature(bench_black_box)]`. This was
stabilized in Rust 1.66 and anyone building benchmarks will be
on that or later (as they previously would have been on nightly).

This also allows building `cargo build --all-targets` on stable
Rust as it no longer dies when hitting the feature addition in
the benchmarks.
@waywardmonkeys waywardmonkeys changed the title Use std::hint::black_box consistently. Update criterion. Use std::hint::black_box consistently. Aug 14, 2023
@Andlon
Copy link
Collaborator

Andlon commented Aug 14, 2023

Thanks, this will be a very useful change. I'm not entirely sure about merging this right away, as this means that we cannot run benchmarks against older Rust versions (despite needing nightly, we could use an old version). I'm not sure how relevant this is though - @sebcrozet do you have any opinions on this? My feeling is that we should probably just merge this, since I don't think we'll need to consider performance pre 1.66 anyway, but I don't have a full overview of use cases, especially with respect to the CUDA work etc.

@Andlon
Copy link
Collaborator

Andlon commented Aug 14, 2023

Hmm, are benchmarks even built in CI...? 🤔

@sebcrozet sebcrozet merged commit d2d2571 into dimforge:dev Sep 30, 2023
12 checks passed
@sebcrozet
Copy link
Member

Thanks! Merging this should be fine. The CUDA  version won’t attempt to compile/run benchmarks.

@waywardmonkeys waywardmonkeys deleted the blackbox-criterion branch September 30, 2023 16:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants