Skip to content

Commit cca6b97

Browse files
committed
Add SITEARCHS for generic sites with AMD or NVIDIA GPUs and 8 cores
1 parent 6d85da1 commit cca6b97

File tree

2 files changed

+18
-3
lines changed

2 files changed

+18
-3
lines changed

DATA/production/configurations/asyncReco/async_pass.sh

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -417,7 +417,7 @@ if [[ $ASYNC_PASS_NO_OPTIMIZED_DEFAULTS != 1 ]]; then
417417
if [[ $ALIEN_JDL_USEGPUS == 1 ]] ; then
418418
echo "Enabling GPUS"
419419
if [[ -z $ALIEN_JDL_SITEARCH ]]; then echo "ERROR: Must set ALIEN_JDL_SITEARCH to define GPU architecture!"; exit 1; fi
420-
if [[ $ALIEN_JDL_SITEARCH == "NERSC" ]]; then # Disable mlock / ulimit / gpu memory registration - has performance impact, but doesn't work at NERSC for now
420+
if [[ $ALIEN_JDL_SITEARCH == "NERSC" || $ALIEN_JDL_SITEARCH == "GENERIC_NVIDIA" || $ALIEN_JDL_SITEARCH == "GENERIC_AMD" ]]; then # Disable mlock / ulimit / gpu memory registration - has performance impact, but doesn't work at NERSC for now
421421
export SETENV_NO_ULIMIT=1
422422
export CONFIG_EXTRA_PROCESS_o2_gpu_reco_workflow+="GPU_proc.noGPUMemoryRegistration=1;"
423423
fi
@@ -428,7 +428,11 @@ if [[ $ASYNC_PASS_NO_OPTIMIZED_DEFAULTS != 1 ]]; then
428428
elif [[ $ALIEN_JDL_SITEARCH == "EPN_MI50" ]]; then
429429
ALIEN_JDL_SITEARCH_TMP=EPN
430430
fi
431-
if [[ "ALIEN_JDL_USEFULLNUMADOMAIN" == 0 ]]; then
431+
if [[ $ALIEN_JDL_SITEARCH == "GENERIC_NVIDIA" ]]; then
432+
export OPTIMIZED_PARALLEL_ASYNC=8cpu_NVIDIA
433+
elif [[ $ALIEN_JDL_SITEARCH == "GENERIC_AMD" ]]; then
434+
export OPTIMIZED_PARALLEL_ASYNC=8cpu_AMD
435+
elif [[ "ALIEN_JDL_USEFULLNUMADOMAIN" == 0 ]]; then
432436
if [[ $keep -eq 0 ]]; then
433437
if [[ $ALIEN_JDL_UNOPTIMIZEDGPUSETTINGS != 1 ]]; then
434438
export OPTIMIZED_PARALLEL_ASYNC=pp_1gpu_${ALIEN_JDL_SITEARCH_TMP} # (16 cores, 1 gpu per job, pp)

DATA/production/workflow-multiplicities.sh

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,20 @@ if [[ ! -z ${OPTIMIZED_PARALLEL_ASYNC:-} ]]; then
5353
[[ ! -z ${TIMEFRAME_RATE_LIMIT:-} ]] && unset TIMEFRAME_RATE_LIMIT
5454
[[ ! -z ${SHMSIZE:-} ]] && unset SHMSIZE
5555
fi
56-
if [[ $OPTIMIZED_PARALLEL_ASYNC == "8cpu" ]]; then
56+
if [[ $OPTIMIZED_PARALLEL_ASYNC == "8cpu" || $OPTIMIZED_PARALLEL_ASYNC == "8cpu_NVIDIA" || $OPTIMIZED_PARALLEL_ASYNC == "8cpu_AMD" ]]; then
5757
[[ -z ${TIMEFRAME_RATE_LIMIT:-} ]] && TIMEFRAME_RATE_LIMIT=3
5858
[[ -z ${SHMSIZE:-} ]] && SHMSIZE=16000000000
59+
if [[ $OPTIMIZED_PARALLEL_ASYNC == "8cpu_NVIDIA" ]]; then
60+
NGPUS=1
61+
GPUTYPE=CUDA
62+
GPUMEMSIZE=$((25 << 30))
63+
N_TPCTRK=$NGPUS
64+
elif [[ $OPTIMIZED_PARALLEL_ASYNC == "8cpu_AMD" ]]; then
65+
NGPUS=1
66+
GPUTYPE=HIP
67+
GPUMEMSIZE=$((25 << 30))
68+
N_TPCTRK=$NGPUS
69+
fi
5970
NGPURECOTHREADS=5
6071
if [[ $BEAMTYPE == "pp" ]]; then
6172
if (( $(echo "$RUN_IR > 800000" | bc -l) )); then

0 commit comments

Comments
 (0)