ROCm / triton

Development repository for the Triton language and compiler
MIT License
80 stars 22 forks source link

Add a script to run tests in `pytest test_core.py` separately #511

Closed zhanglx13 closed 4 months ago

zhanglx13 commented 4 months ago

Description

This script runs each function in test_core.py separately and

Usage

  1. copy this script in upstream triton dir. Any location works since it can find its way to the python dir.
  2. Run it: ./check_test_core.sh

The summary and pytest output for each test function are written to /python/test_output/.

Sample output

Running test_core.py on run_test_core@35edd6a65
test_empty_kernel:                           12 passed
test_bin_op:                                 720 passed, 38 warnings
test_addptr:                                 24 passed
test_floordiv:                               32 passed
test_unsigned_name_mangling:                 1 passed
test_bitwise_op:                             1587 passed
...