Skip to content

Commit

Permalink
HTCONDOR-2501 Fix whole-node gpu routing to work with non-condor systems
Browse files Browse the repository at this point in the history
The existing expression for RequestGPUs will always evaluate to Undefined
outside of HTCondor matchmaking against a slot ad.
  • Loading branch information
JaimeFrey committed Jun 13, 2024
1 parent 80ae54b commit 415ff16
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/01-ce-router-defaults.conf
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ JOB_ROUTER_TRANSFORM_Gpus @=jrt
SET GlideinGPUsIsGood int(MATCH_EXP_JOB_GLIDEIN_GPUs ?: "0") isnt error
COPY RequestGPUs OriginalGPUs
SET JobGPUs JobIsRunning ? int(MATCH_EXP_JOB_GLIDEIN_GPUs) : OriginalGPUs
SET RequestGPUs (TARGET.TotalGPUs > 0) ? TotalGPUs: JobGPUs
SET RequestGPUs ((TARGET.TotalGPUs ?: 0) > 0) ? TotalGPUs: JobGPUs
endif
@jrt

Expand Down

0 comments on commit 415ff16

Please sign in to comment.