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

Auto-fetch benchmark when not available #1039

Merged
merged 1 commit into from
Mar 1, 2024

Conversation

aprokop
Copy link
Contributor

@aprokop aprokop commented Mar 1, 2024

Based on work @cz4rs done for Kokkos.

@@ -2,8 +2,32 @@ find_package(Boost 1.56.0 REQUIRED COMPONENTS program_options)

# FIXME: when we start requiring benchmark >= 1.8.0, reenable
# "readability-redundant-string-cstr" check in .clang-tidy
find_package(benchmark 1.5.4 REQUIRED)
message(STATUS "Found benchmark: ${benchmark_DIR} (version \"${benchmark_VERSION}\")")
find_package(benchmark QUIET 1.5.4)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested with

find_package(benchmark QUIET 1.5.4 NO_DEFAULT_PATH)

Copy link
Contributor

@dalg24 dalg24 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see someone follow the activity on Kokkos Core

FetchContent_Declare(
googlebenchmark
DOWNLOAD_EXTRACT_TIMESTAMP FALSE
URL https://github.com/google/benchmark/archive/refs/tags/v1.8.0.tar.gz
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you comment on the version you picked?

Copy link
Contributor Author

@aprokop aprokop Mar 1, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I decided to up the version so that when we fix the comment about (about reenabling clang-tidy check), we would not need to change this. No other reason. The latest Google Benchmark is 1.8.3, so same major.

I am aware of the discussion in Kokkos about problems with fetching new versions in the original PR (something to do with Windows). I'm not sure whether that is still an issue.

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FYI benchmark Windows issue is still open: google/benchmark#1441. Kokkos deals with it by simply disabling benchmarks in Windows CI 😉

@aprokop
Copy link
Contributor Author

aprokop commented Mar 1, 2024

I see someone follow the activity on Kokkos Core

Sometimes :) Great artists steal.

@aprokop
Copy link
Contributor Author

aprokop commented Mar 1, 2024

Build failures are not related.

@aprokop aprokop merged commit 978e59a into arborx:master Mar 1, 2024
1 of 2 checks passed
@aprokop aprokop deleted the fetch_benchmark branch March 1, 2024 19:07
@aprokop aprokop mentioned this pull request Mar 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants