add prints in c code

This commit is contained in:
Michael Melesse
2022-12-22 16:20:46 -06:00
parent b777d2a1d6
commit f06fdff372
5 changed files with 162 additions and 360 deletions

View File

@@ -13,4 +13,4 @@ chmod -R 777 $LOG_DIR
bash scripts/amd/clean.sh
bash scripts/amd/build.sh
bash scripts/amd/test.sh backtrace 2>&1 |tee $LOG_DIR/test.log
bash scripts/amd/cache_print.sh 2>&1 |tee $LOG_DIR/cache.log
# bash scripts/amd/cache_print.sh 2>&1 |tee $LOG_DIR/cache.log

View File

@@ -10,6 +10,8 @@ rm -rf $LOG_DIR
mkdir -p $LOG_DIR
chmod -R 777 $LOG_DIR
sh scripts/amd/clean.sh
# check for backtrace
if [ "$1" == "backtrace" ]; then
sudo apt install gdb -y
@@ -26,12 +28,11 @@ if [ "$1" == "backtrace" ]; then
else
# sh scripts/amd/clean.sh
# pytest -rfs --verbose python/tests 2>&1 | tee $LOG_DIR/test_all.log
# pytest -rfs --verbose "python/tests/test_compiler.py" 2>&1 | tee $LOG_DIR/test_compiler.log
# pytest -rfs --verbose "python/tests/test_core_amd.py" 2>&1 | tee $LOG_DIR/test_core_amd.log
pytest -rfs --verbose "python/tests/test_core_amd.py::test_empty_kernel[float32]" 2>&1 | tee $LOG_DIR/test_core_amd.log
# pytest -rfs --verbose "python/tests/test_core_amd.py::test_empty_kernel" 2>&1 | tee $LOG_DIR/test_empty_kernel.log
pytest -rfs --verbose "python/tests/test_core_amd.py::test_empty_kernel[float32]" 2>&1 | tee $LOG_DIR/test_empty_kernel_float32.log
# pytest -rfs --verbose "python/test/unit/language/test_core.py" 2>&1 | tee $LOG_DIR/test_core_amd.log
# pytest -rfs --verbose "python/tests/test_core.py" 2>&1 | tee $LOG_DIR/test_core.log
# pytest -rfs --verbose "python/tests/test_core.py::test_math_op" | tee $LOG_DIR/test_math_op.log