diff --git a/.github/workflows/regression-test.yaml b/.github/workflows/regression-test.yaml index 3a2ff0c225..c8d13441f1 100644 --- a/.github/workflows/regression-test.yaml +++ b/.github/workflows/regression-test.yaml @@ -12,3 +12,6 @@ jobs: run: | cd $HOME/esp/utils/scripts/actions-pipeline ./get_modified_accelerators.sh + - name: Run behavioral simulations + run: | + ./run_sims.sh diff --git a/utils/scripts/actions-pipeline/accelerators.json b/utils/scripts/actions-pipeline/accelerators.json index ec0bde7022..7ba1dd70d8 100644 --- a/utils/scripts/actions-pipeline/accelerators.json +++ b/utils/scripts/actions-pipeline/accelerators.json @@ -1,17 +1,11 @@ { "accelerators": [ - { - "name": "cholesky_stratus", - "path": "accelerators/stratus_hls/cholesky_stratus", - "behavioral": "cholesky_stratus-exe", - "hls": "cholesky_stratus-hls" - }, - { + { "name": "dummy_stratus", "path": "accelerators/stratus_hls/dummy_stratus", "behavioral": "dummy_stratus-exe", "hls": "dummy_stratus-hls" - } + } ] - } +} \ No newline at end of file diff --git a/utils/scripts/actions-pipeline/run_sims.sh b/utils/scripts/actions-pipeline/run_sims.sh index a3f947d568..6c17f7b2f8 100755 --- a/utils/scripts/actions-pipeline/run_sims.sh +++ b/utils/scripts/actions-pipeline/run_sims.sh @@ -23,7 +23,6 @@ cleanup() { exit } - # Trap SIGINT signal (Ctrl+C) to run cleanup function trap cleanup SIGINT @@ -31,7 +30,7 @@ echo "Getting modified accelerators..." source get_modified_accelerators.sh echo "" -echo "Sourcing tools" +echo "Exporting tools..." source /opt/cad/scripts/tools_env.sh echo "" @@ -56,7 +55,7 @@ for accelerator_name in "${modified_accelerators[@]}"; do done echo "Starting RTL simulation for $accelerator_name on CPU core $min_core" - hls=$(jq --arg name "$accelerator_name" '.accelerators[] | select(.name == $name)' "$ACCELERATORS" | jq -r '.hls') + hls=$(jq --arg name "$accelerator_name" '.accelerators[] | select(.name == $name)' "$ACCELERATORS" | jq -r '.behavioral') (cd ~/esp/socs/xilinx-vc707-xc7vx485t && taskset -c "$min_core" setsid make "$hls" > "logs/hls/${accelerator_name}_test.log" 2>&1) & child_processes+=("$!") @@ -76,5 +75,6 @@ echo "Waiting for all jobs to finish..." for pid in "${child_processes[@]}"; do wait "$pid" # Print the latest job result with accelerator name - echo "HLS completed for acc: ${job_names[$pid]}" + echo "HLS completed for accelerator:" + echo "-- ${job_names[$pid]}" done \ No newline at end of file