Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit ff12c8a

Browse files
committedJul 6, 2024·
don't run CUDA tests on GHA
1 parent 06ec3de commit ff12c8a

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed
 

‎recon_test_pack/run_test_simulate_and_recon.sh

+8-2
Original file line numberDiff line numberDiff line change
@@ -98,12 +98,18 @@ input_ROI_mean=`awk 'NR>2 {print $2}' ${input_image}.roistats`
9898
# and reuses its subset sensitivities
9999
for recon in FBP2D FBP3DRP OSMAPOSL OSSPS; do
100100
echo "========== Testing `command -v ${recon}`"
101-
# check if we have CUDA code and parallelproj
101+
# Check if we have CUDA code and parallelproj.
102+
# If so, check for test files in CUDA/*
102103
if stir_list_registries |grep -i cuda > /dev/null
103104
then
104105
if stir_list_registries |grep -i parallelproj > /dev/null
105106
then
106-
extra_par_files=`ls CUDA/${recon}_test_sim*.par 2> /dev/null`
107+
extra_par_files=`ls CUDA/${recon}_test_sim*.par 2> /dev/null`
108+
if [ -n "$TRAVIS" -o -n "$GITHUB_WORKSPACE" ]; then
109+
# The code runs inside Travis or GHA
110+
echo "Not running ${extra_par_files} due to no CUDA run-time"
111+
extra_par_files=""
112+
fi
107113
fi
108114
fi
109115
for parfile in ${recon}_test_sim*.par ${extra_par_files}; do

0 commit comments

Comments
 (0)