add scripts

This commit is contained in:
Michael Melesse
2022-10-17 17:28:48 +00:00
parent 406d03bfaf
commit fa4d0fd1ef
22 changed files with 386 additions and 0 deletions

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

@@ -0,0 +1,13 @@
sudo apt install gdb -y
# export AMD_OCL_WAIT_COMMAND=1
# export AMD_LOG_LEVEL=3
# export HIP_LAUNCH_BLOCKING=1
gdb -ex "set pagination off" \
-ex "file python" \
-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" \
2>&1 | tee /dockerx/pytorch/test_core_gdb.log