Skip to content

Commit

Permalink
gemm: Dump results on failure
Browse files Browse the repository at this point in the history
  • Loading branch information
colluca committed Oct 24, 2023
1 parent dd1cfce commit c5d8421
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions sw/blas/gemm/verify.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,9 @@ def main():

absolute_err = np.absolute(c_golden - c_actual)
fail = np.any(absolute_err > ERR_THRESHOLD)
if (fail):
verification.dump_results_to_csv([c_golden, c_actual, absolute_err],
Path.cwd() / 'gemm_results.csv')

return int(fail)

Expand Down

0 comments on commit c5d8421

Please sign in to comment.