Skip to content

Commit

Permalink
REQUIRED_MINIMUM_MICROARCH is an int. Fix #8865 (#8866)
Browse files Browse the repository at this point in the history
  • Loading branch information
belforte authored Dec 16, 2024
1 parent 2ee6eef commit 446f4a8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/python/TaskWorker/Actions/DagmanCreator.py
Original file line number Diff line number Diff line change
Expand Up @@ -392,13 +392,13 @@ def populateGlideinMatching(self, info):
# and may need different classAd(s) in the JDL, so try to be general here
min_micro_arch = info['tm_job_min_microarch']
if not min_micro_arch:
info['required_minimum_microarch'] = 'x86-64-v2' # the current default for CMSSW
info['required_minimum_microarch'] = '2' # the current default for CMSSW
return
if min_micro_arch == 'any':
info['required_minimum_microarch'] = 'any'
info['required_minimum_microarch'] = 0
return
if min_micro_arch.startswith('x86-64-v'):
info['required_minimum_microarch'] = min_micro_arch
info['required_minimum_microarch'] = int(min_micro_arch.split('v')[-1])
return
self.logger.error(f"Not supported microarch: {min_micro_arch}. Ignore it")
info['required_minimum_microarch'] = 'any'
Expand Down

0 comments on commit 446f4a8

Please sign in to comment.