Skip to content

Commit dfe83a2

Browse files
mconcasdavidrohr
authored andcommitted
Common: add has_detector(s)_gpu helpers
1 parent 8bd46f6 commit dfe83a2

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

DATA/common/gen_topo_helper_functions.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,11 @@ has_detector_matching()
4949
[[ $WORKFLOW_DETECTORS_MATCHING =~ (^|,)"ALL"(,|$) ]] || [[ $WORKFLOW_DETECTORS_MATCHING =~ (^|,)"$1"(,|$) ]]
5050
}
5151

52+
has_detector_gpu()
53+
{
54+
has_detector $1 && [[ $WORKFLOW_DETECTORS_GPU =~ (^|,)"$1"(,|$) ]]
55+
}
56+
5257
has_secvtx_source()
5358
{
5459
[[ $SVERTEXING_SOURCES =~ (^|,)"ALL"(,|$) ]] || [[ $SVERTEXING_SOURCES =~ (^|,)"$1"(,|$) ]]
@@ -137,6 +142,11 @@ has_detectors_flp_processing()
137142
_check_multiple has_detector_flp_processing "$@"
138143
}
139144

145+
has_detectors_gpu()
146+
{
147+
_check_multiple has_detector_gpu "$@"
148+
}
149+
140150
workflow_has_parameters()
141151
{
142152
_check_multiple workflow_has_parameter "$@"

DATA/common/setenv.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ if [[ ! -z ${WORKFLOW_DETECTORS_EXCLUDE:-} ]]; then
4343
done
4444
fi
4545

46+
if [[ -z "${WORKFLOW_DETECTORS_GPU+x}" ]]; then export WORKFLOW_DETECTORS_GPU="TPC"; fi
4647
if [[ -z "${WORKFLOW_DETECTORS_QC+x}" ]] || [[ "0$WORKFLOW_DETECTORS_QC" == "0ALL" ]]; then export WORKFLOW_DETECTORS_QC="$WORKFLOW_DETECTORS,$LIST_OF_GLORECO,TOF_MATCH"; fi
4748
if [[ -z "${WORKFLOW_DETECTORS_CALIB+x}" ]] || [[ "0$WORKFLOW_DETECTORS_CALIB" == "0ALL" ]]; then export WORKFLOW_DETECTORS_CALIB=$WORKFLOW_DETECTORS; fi
4849
if [[ -z "${WORKFLOW_DETECTORS_RECO+x}" ]] || [[ "0$WORKFLOW_DETECTORS_RECO" == "0ALL" ]]; then export WORKFLOW_DETECTORS_RECO=$WORKFLOW_DETECTORS; fi

0 commit comments

Comments
 (0)