cornell-zhang / hcl-dialect

HeteroCL-MLIR dialect for accelerator design
https://cornell-zhang.github.io/heterocl/index.html
Other
40 stars 17 forks source link

[Frontend] Test platform crashes at second run in pytest #113

Closed zzzDavid closed 1 year ago

zzzDavid commented 2 years ago

Related test: mlir/test_platform.py

The first run in pytest succeeds but the second run fails. Probably some issues with file i/o.

zzzDavid commented 1 year ago

The "second pytest run failure" issue is typically caused by errors in previous tests and global variables not being reset. The revamped frontend https://github.com/cornell-zhang/heterocl/pull/473 removes the heavy reliance on context variables and global variable. Closing this thread as mlir/test_platform.py now works.