add scripts

This commit is contained in:
Michael Melesse
2022-12-21 13:13:24 -06:00
parent e43d4a85f5
commit 5e055a5165
27 changed files with 398 additions and 0 deletions

15
scripts/amd/debug.sh Normal file
View File

@@ -0,0 +1,15 @@
sudo apt install gdb -y
# export AMD_OCL_WAIT_COMMAND=1
# export AMD_LOG_LEVEL=3
# export HIP_LAUNCH_BLOCKING=1
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 _exit" \
-ex "commands"
-ex "run"
-ex 'end' \
2>&1 | tee /dockerx/pytorch/test_core_gdb.log