Skip to content

Commit

Permalink
don't run CUDA tests on GHA
Browse files Browse the repository at this point in the history
  • Loading branch information
KrisThielemans committed Jul 6, 2024
1 parent 06ec3de commit ff12c8a
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions recon_test_pack/run_test_simulate_and_recon.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ff12c8a

Please sign in to comment.