A general script for testing sptrsv.
Just modify the config.ini
!
Just run:
python run_all.py
You will get the result from folder YYYY-MM-DD
.
- You can add your custom test cases in
run_config.py
. Add the class which should have:
class ClassName:
def get_run_command(self, matrix_path):
# Execute command of program
return "./bin/tilesptrsv -d $CUDA_VISIBLE_DEVICES " + matrix_path
def get_extract_re(self):
# RE for extract the time
return [r'CUDA TileSpTRSV runtime\s*([\d.]+)\sms', r'YYRuntime: \s*([\d.]+)\sms']
def get_name(self):
# Output of the name of result
return ["TileSpTRSV", "YYSpTRSV"]
Note: You can get multiple results by add regular expressions and name to the list.
- You can change the test cases order or enables in
run_all.py
:
projects = [rc.MixSpTRSVWithGraph(), rc.MixSpTRSVWithLevelSet()]