Skip to content
Snippets Groups Projects
Commit d926c25b authored by Matthias Schnepf's avatar Matthias Schnepf
Browse files

Add checks for RequestGPUMemory

parent 97f8630a
Branches
No related tags found
No related merge requests found
......@@ -33,10 +33,16 @@ JOB_DEFAULT_TRANSFEREXECUTABLE = TRUE
# Blacklist of attributes which are used for autoclustering
REMOVE_SIGNIFICANT_ATTRIBUTES = GlobalJobId
# Job transformations, e.g. set defaults
JOB_TRANSFORM_NAMES = GPUJobs
JOB_TRANSFORM_GPUJobs @=end
# set default to hole GPU memory by requesting 1 GPU
REQUIREMENTS RequestGPUs =?= 1
DEFAULT RequestGPUMemoryMB TARGET.TotalSlotGPUMemoryMB
@end
\ No newline at end of file
@end
# Check job attributes during submission
SUBMIT_REQUIREMENT_NAMES = GPUMemoryCheck
SUBMIT_REQUIREMENT_GPUMemoryCheck = ifThenElse( isUndefined(RequestGPUMemoryMB), True, RequestGPUMemoryMB > 0 && RequestGPUs=?=1)
SUBMIT_REQUIREMENT_GPUMemoryCheck_REASON = "You request GPUMemoryMB without requesting a GPU or more than one GPU!"
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment