Skip to content
This repository was archived by the owner on Dec 8, 2025. It is now read-only.

Improvements to seed processing script#1100

Open
afd wants to merge 2 commits intomasterfrom
script-fix
Open

Improvements to seed processing script#1100
afd wants to merge 2 commits intomasterfrom
script-fix

Conversation

@afd
Copy link
Contributor

@afd afd commented Nov 15, 2020

The script now works for spirv-opt and LLPC, and has the option to
output just numbers of unique signatures, which is useful for
gathering statistics to put in a spreadsheet.

The script now works for spirv-opt and LLPC, and has the option to output just numbers of unique signatures, which is useful for gathering statistics to put in a spreadsheet.
Copy link
Contributor

@paulthomson paulthomson left a comment

Choose a reason for hiding this comment

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

Approved, with a suggestion for the TODO.

Comment on lines +58 to +59
start_line = i + 1
# TODO: Is there a reliable way to find the end of a spirv-opt failure?
Copy link
Contributor

@paulthomson paulthomson Nov 15, 2020

Choose a reason for hiding this comment

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

Maybe:

  • Don't break once a bug is found (for the cases you added).
  • if found_bug, do something different:
    • Just look for "Exec (verbose): ..." to find the next "reduce" command, set the end line based on this and then break.
    • if we find "gfauto_interestingness_test: finished ..." then the output above this is actually the output from part of a reduction, so something has gone wrong.
    • if we don't find anything else and get to the end of the file, this is also fine. It just means we did not do a reduction and the file immediately ends after the "Command failed:" output.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

2 participants