Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
gpu_route.conf
JOB_ROUTER_ENTRIES = \
[ \
GridResource = "pbs"; \
TargetUniverse = 9; \
name = "Local_PBS"; \
set_default_queue = "grid"; \
set_default_maxMemory = 2000; \
eval_set_RequestCpus = ifThenElse(InputRSL.xcount isnt null, InputRSL.xcount, 1) ; \
eval_set_remote_cerequirements = ifThenElse(InputRSL.maxWallTime isnt null, strcat("Walltime == ", string(60*InputRSL.maxWallTime), " && CondorCE == 1"), "CondorCE == 1"); \
eval_set_REMOTE_SMPGranularity = ifThenElse(InputRSL.xcount isnt null, InputRSL.xcount, 1) ; \
eval_set_REMOTE_NodeNumber = ifThenElse(InputRSL.xcount isnt null, InputRSL.xcount, 1) ; \
Requirements = target.RequestGpus is Undefined; \
] \
[ \
GridResource = "pbs"; \
TargetUniverse = 9; \
name = "Local_PBS_GPU"; \
set_default_queue = "grid_gpu"; \
set_default_maxMemory = 2000; \
eval_set_RequestCpus = ifThenElse(InputRSL.xcount isnt null, InputRSL.xcount, 1) ; \
eval_set_remote_cerequirements = debug(strcat(ifThenElse(InputRSL.maxWallTime isnt null, strcat("Walltime == ", string(60*InputRSL.maxWallTime), " && CondorCE == 1"), "CondorCE == 1"), " && ", "RequestGpus == ", string(RequestGpus))); \
eval_set_REMOTE_SMPGranularity = ifThenElse(InputRSL.xcount isnt null, InputRSL.xcount, 1) ; \
eval_set_REMOTE_NodeNumber = ifThenElse(InputRSL.xcount isnt null, InputRSL.xcount, 1) ; \
Requirements = target.RequestGpus >= 1 ;\
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment