Add AIG Benchmark Suite and Regression Test Script with Non-Determinism Detection - #9
Open
Max-astro wants to merge 2 commits into
Open
Add AIG Benchmark Suite and Regression Test Script with Non-Determinism Detection#9Max-astro wants to merge 2 commits into
Max-astro wants to merge 2 commits into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR adds AIG cases from the mockturtle project and a regression testing script (
test_all.sh) for validating the correctness and determinism of the GPU-accelerated AIG optimization algorithms (e.g.,resyn2rs).During development and testing, I observed that the
resyn2rscommand crashes or produces non-deterministic results in some cases (running the same benchmark with the same input can yield different AND-gate counts and logic levels across runs).I'm using CUDA 13.1 on a 5070ti GPU. The crash and ND issues will likely occur in other GPU environments as well.
Usage of the
test_all.sh:resyn2rscommand)Runs all benchmarks once and reports PASS/FAIL status with AND count and level changes.
This mode automatically saves
baseline.1.txt,baseline.2.txt, etc., and compares each iteration against the previous one using exact matching. If any benchmark produces different results across runs, the script reports the mismatched cases and exits with a non-zero status../test_all.sh --command "rw; rf; b"For full usage details, run:
Test results