Skip to content

testsuite: rocm.exp: Limit wave output logged by info_threads_get_wave_count - #299

Open
akondrat-amd wants to merge 1 commit into
amd-stagingfrom
users/akondrat/info_threads_get_wave_count
Open

testsuite: rocm.exp: Limit wave output logged by info_threads_get_wave_count#299
akondrat-amd wants to merge 1 commit into
amd-stagingfrom
users/akondrat/info_threads_get_wave_count

Conversation

@akondrat-amd

@akondrat-amd akondrat-amd commented Aug 20, 2026

Copy link
Copy Markdown
Contributor

On GPUs with many wavefronts, info_threads_get_wave_count floods the log with thousands of lines. Print only the first and last 20 wave lines, replacing the omitted middle with a single summary line "... N waves omitted ...".

Key changes:

  • log_user 0/1 suppresses raw expect output during matching
  • Lines are collected into wave_lines instead of being logged on the fly
  • After matching, first 20 and last 20 are emitted via verbose -log; middle rows get a single summary line

@akondrat-amd
akondrat-amd requested a review from a team as a code owner August 20, 2026 15:20
@lumachad

Copy link
Copy Markdown
Collaborator

What problem exactly are we trying to solve? A timeout? A expect buffer overflow?

@akondrat-amd

Copy link
Copy Markdown
Contributor Author

What problem exactly are we trying to solve? A timeout? A expect buffer overflow?

We count waves at least three times in a couple of tests, it adds thousands of lines to the log, particularly, 3 x 16,384. It's a nightmare to scroll through it.

@lumachad

lumachad commented Aug 21, 2026

Copy link
Copy Markdown
Collaborator

Honestly I think we need a command to give us the number of waves we have. It is not feasible to count waves by going through a wall of text. For instance, if we run this with check-read1, it will be very slow.

@akondrat-amd
akondrat-amd force-pushed the users/akondrat/info_threads_get_wave_count branch from 7fe6840 to d6fee8a Compare August 21, 2026 14:15
…e_count

On GPUs with many wavefronts, info_threads_get_wave_count floods the
log with thousands of lines.  Print only the first and last 20 wave
lines, replacing the omitted middle with a single summary line
"... N waves omitted ...".
@akondrat-amd
akondrat-amd force-pushed the users/akondrat/info_threads_get_wave_count branch from d6fee8a to 3659584 Compare August 21, 2026 14:46
proc info_threads_get_wave_count { inf_num } {
set wave_count 0
set wave_lines {}
set test_name "unknown"

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I use this variable to store the name of the test in order to print "pass" after we print the "wave_lines".

@akondrat-amd

Copy link
Copy Markdown
Contributor Author

This is how the output looks:
Screenshot 2026-08-21 at 10 45 38 AM

@akondrat-amd
akondrat-amd requested a review from palves August 21, 2026 16:01
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.

2 participants