add debug steps
This commit is contained in:
@@ -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
|
||||
|
@@ -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
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user