add debug steps

This commit is contained in:
Michael Melesse
2022-10-21 20:17:30 +00:00
parent 6a31c43774
commit 56a06f7a06
2 changed files with 9 additions and 7 deletions

View File

@@ -4,10 +4,12 @@ sudo apt install gdb -y
# export AMD_LOG_LEVEL=3
# export HIP_LAUNCH_BLOCKING=1
gdb -ex "set pagination off" \
-ex "file python" \
gdb -ex "file python" \
-ex 'run -m pytest --capture=tee-sys --verbose "python/test/unit/language/test_core.py::test_empty_kernel[float32]"' \
-ex "set pagination off" \
-ex "set confirm off" \
-ex "break 1" \
-ex 'run -m pytest --capture=tee-sys --verbose "python/test/unit/language/test_core.py::test_load_and_store_op[float32-2]"' \
-ex "q" \
-ex "break _exit" \
-ex "commands"
-ex "run"
-ex 'end' \
2>&1 | tee /dockerx/pytorch/test_core_gdb.log

View File

@@ -10,8 +10,8 @@ chmod -R 777 $LOG_DIR
bash scripts/amd/clean.sh
# bash scripts/amd/deps.sh
bash scripts/amd/build.sh
bash scripts/amd/test.sh 2>&1 |tee $LOG_DIR/test.log
# bash scripts/amd/debug.sh
# bash scripts/amd/test.sh 2>&1 |tee $LOG_DIR/test.log
bash scripts/amd/debug.sh
# bash scripts/amd/backtrace.sh 2>&1 |tee $LOG_DIR/backtrace.log