From ff12c8a079f30d0647d64138b335cf72aa4b27f0 Mon Sep 17 00:00:00 2001 From: Kris Thielemans Date: Sat, 6 Jul 2024 23:19:59 +0100 Subject: [PATCH] don't run CUDA tests on GHA --- recon_test_pack/run_test_simulate_and_recon.sh | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/recon_test_pack/run_test_simulate_and_recon.sh b/recon_test_pack/run_test_simulate_and_recon.sh index 5934eb5ad..ee7985a02 100755 --- a/recon_test_pack/run_test_simulate_and_recon.sh +++ b/recon_test_pack/run_test_simulate_and_recon.sh @@ -98,12 +98,18 @@ input_ROI_mean=`awk 'NR>2 {print $2}' ${input_image}.roistats` # and reuses its subset sensitivities for recon in FBP2D FBP3DRP OSMAPOSL OSSPS; do echo "========== Testing `command -v ${recon}`" - # check if we have CUDA code and parallelproj + # Check if we have CUDA code and parallelproj. + # If so, check for test files in CUDA/* if stir_list_registries |grep -i cuda > /dev/null then if stir_list_registries |grep -i parallelproj > /dev/null then - extra_par_files=`ls CUDA/${recon}_test_sim*.par 2> /dev/null` + extra_par_files=`ls CUDA/${recon}_test_sim*.par 2> /dev/null` + if [ -n "$TRAVIS" -o -n "$GITHUB_WORKSPACE" ]; then + # The code runs inside Travis or GHA + echo "Not running ${extra_par_files} due to no CUDA run-time" + extra_par_files="" + fi fi fi for parfile in ${recon}_test_sim*.par ${extra_par_files}; do