Skip to content

[rocThrust] Fix benchmark build on Windows - #5953

Merged
stanleytsang-amd merged 3 commits into
developfrom
users/stanleytsang-amd/fix_rocthrust_benchmark_windows
Apr 9, 2026
Merged

stanleytsang-amd merged 3 commits into
developfrom
users/stanleytsang-amd/fix_rocthrust_benchmark_windows

Conversation

@stanleytsang-amd

Copy link
Copy Markdown
Contributor

Motivation

Currently the rocThrust benchmark fails to build on Windows because googlebench enables -Werror and also throws the following warning with clang on Windows:

In file included from build-wasm/_deps/benchmark-src/src/benchmark_register.cc:39: build-wasm/_deps/benchmark-src/include/benchmark/benchmark.h:1461:30: error: '__COUNTER__' is a C2y extension [-Werror,-Wc2y-extensions] 1461 | #if defined(__COUNTER__) && (__COUNTER__ + 1 == __COUNTER__ + 0)

The warning has been suppressed in googlebench and is available in v1.9.5. I have bumped to 1.9.5, however it seems to cause several more, different warnings as error problem. For the time being I will suppress those warnings on Windows only until they are addressed in googlebench in a future relase.

Technical Details

Update googlebench from 1.9.4 to 1.9.5, and suppress two warnings for googlebench.

Test Plan

Rebuilt benchmarks.

Test Result

Build passes.

Submission Checklist

@stanleytsang-amd
stanleytsang-amd requested a review from a team as a code owner March 27, 2026 19:42
@stanleytsang-amd stanleytsang-amd changed the title Fix benchmark build on Windows [rocThrust] Fix benchmark build on Windows Mar 27, 2026
@codecov-commenter

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

❌ Your project status has failed because the head coverage (77.72%) is below the target coverage (80.00%). You can increase the head coverage or adjust the target coverage.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #5953      +/-   ##
===========================================
+ Coverage    67.47%   70.48%   +3.02%     
===========================================
  Files         1873     2373     +500     
  Lines       290521   332555   +42034     
  Branches     40990    46309    +5319     
===========================================
+ Hits        196001   234395   +38394     
- Misses       77706    80982    +3276     
- Partials     16814    17178     +364     
Flag Coverage Δ *Carryforward flag
hipBLAS 90.67% <ø> (ø) Carriedforward from 6a7e4a7
hipBLASLt 43.47% <ø> (ø) Carriedforward from 6a7e4a7
hipCUB 82.21% <ø> (ø) Carriedforward from 6a7e4a7
hipDNN 86.16% <ø> (ø) Carriedforward from 6a7e4a7
hipFFT 54.97% <ø> (ø) Carriedforward from 6a7e4a7
hipRAND 76.12% <ø> (ø) Carriedforward from 6a7e4a7
hipSOLVER 68.73% <ø> (ø) Carriedforward from 6a7e4a7
hipSPARSE 84.70% <ø> (ø) Carriedforward from 6a7e4a7
rocBLAS 47.97% <ø> (ø) Carriedforward from 6a7e4a7
rocFFT 50.06% <ø> (ø) Carriedforward from 6a7e4a7
rocRAND 57.07% <ø> (ø) Carriedforward from 6a7e4a7
rocSOLVER 77.72% <ø> (ø) Carriedforward from 6a7e4a7
rocSPARSE 71.48% <ø> (ø) Carriedforward from 6a7e4a7
rocThrust 91.34% <ø> (?)

*This pull request uses carry forward flags. Click here to find out more.
see 500 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@umfranzw umfranzw left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This looks good to me.

@stanleytsang-amd
stanleytsang-amd merged commit 30099e1 into develop Apr 9, 2026
24 checks passed
@stanleytsang-amd
stanleytsang-amd deleted the users/stanleytsang-amd/fix_rocthrust_benchmark_windows branch April 9, 2026 13:33
yungshengtu added a commit that referenced this pull request Apr 15, 2026
yungshengtu added a commit that referenced this pull request Apr 30, 2026
yungshengtu added a commit that referenced this pull request May 15, 2026
yungshengtu added a commit that referenced this pull request May 20, 2026
yungshengtu added a commit that referenced this pull request May 22, 2026
yungshengtu added a commit that referenced this pull request May 22, 2026
yungshengtu added a commit that referenced this pull request May 30, 2026
COrruDXC pushed a commit to COrruDXC/rocm-libraries that referenced this pull request Jun 4, 2026
## Motivation

Currently the rocThrust benchmark fails to build on Windows because
googlebench enables `-Werror` and also throws the following warning with
clang on Windows:

`In file included from
build-wasm/_deps/benchmark-src/src/benchmark_register.cc:39:
build-wasm/_deps/benchmark-src/include/benchmark/benchmark.h:1461:30:
error: '__COUNTER__' is a C2y extension [-Werror,-Wc2y-extensions]
1461 | #if defined(__COUNTER__) && (__COUNTER__ + 1 == __COUNTER__ + 0)`

The warning has been suppressed in
[googlebench](google/benchmark#2057) and is
available in v1.9.5. I have bumped to 1.9.5, however it seems to cause
several more, different warnings as error problem. For the time being I
will suppress those warnings on Windows only until they are addressed in
googlebench in a future relase.

## Technical Details

Update googlebench from 1.9.4 to 1.9.5, and suppress two warnings for
googlebench.

## Test Plan

Rebuilt benchmarks.

## Test Result

Build passes.

## Submission Checklist

- [ ] Look over the contributing guidelines at
https://github.com/ROCm/ROCm/blob/develop/CONTRIBUTING.md#pull-requests.
yungshengtu added a commit that referenced this pull request Jun 11, 2026
yungshengtu added a commit that referenced this pull request Jun 12, 2026
yungshengtu added a commit that referenced this pull request Jun 12, 2026
yungshengtu added a commit that referenced this pull request Jun 29, 2026
yungshengtu added a commit that referenced this pull request Jun 29, 2026
yungshengtu added a commit that referenced this pull request Jul 3, 2026
stanleytsang-amd pushed a commit that referenced this pull request Jul 16, 2026
yungshengtu added a commit that referenced this pull request Jul 17, 2026
yungshengtu added a commit that referenced this pull request Jul 24, 2026
stanleytsang-amd added a commit that referenced this pull request Sep 18, 2026
## Motivation

Currently the rocThrust benchmark fails to build on Windows because
googlebench enables `-Werror` and also throws the following warning with
clang on Windows:

`In file included from
build-wasm/_deps/benchmark-src/src/benchmark_register.cc:39:
build-wasm/_deps/benchmark-src/include/benchmark/benchmark.h:1461:30:
error: '__COUNTER__' is a C2y extension [-Werror,-Wc2y-extensions]
1461 | #if defined(__COUNTER__) && (__COUNTER__ + 1 == __COUNTER__ + 0)`

The warning has been suppressed in
[googlebench](google/benchmark#2057) and is
available in v1.9.5. I have bumped to 1.9.5, however it seems to cause
several more, different warnings as error problem. For the time being I
will suppress those warnings on Windows only until they are addressed in
googlebench in a future relase.

## Technical Details

Update googlebench from 1.9.4 to 1.9.5, and suppress two warnings for
googlebench.

## Test Plan

Rebuilt benchmarks.

## Test Result

Build passes.

## Submission Checklist

- [ ] Look over the contributing guidelines at
https://github.com/ROCm/ROCm/blob/develop/CONTRIBUTING.md#pull-requests.
illsilin pushed a commit to igorluppi/rocm-libraries that referenced this pull request Oct 1, 2026
## Motivation

Currently the rocThrust benchmark fails to build on Windows because
googlebench enables `-Werror` and also throws the following warning with
clang on Windows:

`In file included from
build-wasm/_deps/benchmark-src/src/benchmark_register.cc:39:
build-wasm/_deps/benchmark-src/include/benchmark/benchmark.h:1461:30:
error: '__COUNTER__' is a C2y extension [-Werror,-Wc2y-extensions]
1461 | #if defined(__COUNTER__) && (__COUNTER__ + 1 == __COUNTER__ + 0)`

The warning has been suppressed in
[googlebench](google/benchmark#2057) and is
available in v1.9.5. I have bumped to 1.9.5, however it seems to cause
several more, different warnings as error problem. For the time being I
will suppress those warnings on Windows only until they are addressed in
googlebench in a future relase.

## Technical Details

Update googlebench from 1.9.4 to 1.9.5, and suppress two warnings for
googlebench.

## Test Plan

Rebuilt benchmarks.

## Test Result

Build passes.

## Submission Checklist

- [ ] Look over the contributing guidelines at
https://github.com/ROCm/ROCm/blob/develop/CONTRIBUTING.md#pull-requests.
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