Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions .github/workflows/c910v.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,9 @@ jobs:
run: |
run_with_retry() {
local cmd="$1"
local time_out=10
local retries=10
local time_out="${2:-10}"
local retries="${3:-10}"
local timeout_step="${4:-5}"
local attempt=0

for ((i=1; i<=retries; i++)); do
Expand All @@ -106,7 +107,7 @@ jobs:
local exit_code=$?
if [ $exit_code -eq 140 ]; then
echo "Attempt $i timed out (retrying...)"
time_out=$((time_out + 5))
time_out=$((time_out + timeout_step))
else
echo "Attempt $i failed with exit code $exit_code. Aborting workflow."
exit $exit_code
Expand All @@ -121,7 +122,7 @@ jobs:
export PATH=$GITHUB_WORKSPACE/qemu-install/bin:$PATH
which qemu-riscv64
export QEMU_BIN=$(which qemu-riscv64)
run_with_retry "$QEMU_BIN ./utest/openblas_utest"
run_with_retry "$QEMU_BIN ./utest/openblas_utest" 120 2 30
run_with_retry "$QEMU_BIN ./utest/openblas_utest_ext"

OPENBLAS_NUM_THREADS=2 qemu-riscv64 ./ctest/xscblat1
Expand Down
Loading