Skip to content

Conversation

@GregoryComer
Copy link
Member

@GregoryComer GregoryComer commented Nov 5, 2025

Fix issues with CMake 4 dropping compatibility for old versions. This is causing CI failures (see https://github.com/pytorch/cpuinfo/actions/runs/19111787654/job/54633008879).

  • Update googletest to 1.17 (from 1.11) and googlebenchmark to 1.9.4 (from 1.6.1).
    • CMake 4.x complains about the CMake 3.5 minimum version used in dependencies.
  • Bump the minimum CMake version in DownloadGoogleTest/Benchmark CMake files (it complains).

I also ran into a naming conflict in the benchmarks with the benchmark functions shadowing the cpuinfo functions they call. I'm not entirely sure why this is a problem after the dependency update, but I've added a _bench suffix, which resolves the issue.

@meta-cla meta-cla bot added the cla signed label Nov 5, 2025
@GregoryComer GregoryComer force-pushed the update-google-test-and-bench branch 17 times, most recently from 3f32a27 to fde9798 Compare November 6, 2025 22:29
@GregoryComer GregoryComer force-pushed the update-google-test-and-bench branch from fde9798 to 152fccb Compare November 6, 2025 22:38
@GregoryComer GregoryComer requested a review from malfet November 6, 2025 22:40
@GregoryComer GregoryComer marked this pull request as ready for review November 6, 2025 22:49
@GregoryComer GregoryComer merged commit 10a95e8 into main Nov 6, 2025
13 checks passed
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.

3 participants