From c65bf5aeb615ee19b342673f6d1dc006e396e64f Mon Sep 17 00:00:00 2001 From: mmusich Date: Tue, 29 Nov 2022 14:31:09 +0100 Subject: [PATCH] update templates to run multi-threaded --- Alignment/OfflineValidation/test/PVValidation_T_cfg.py | 6 +++++- .../test/PrimaryVertexResolution_templ_cfg.py | 6 +++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/Alignment/OfflineValidation/test/PVValidation_T_cfg.py b/Alignment/OfflineValidation/test/PVValidation_T_cfg.py index 24ab7925009d4..df1771141f498 100644 --- a/Alignment/OfflineValidation/test/PVValidation_T_cfg.py +++ b/Alignment/OfflineValidation/test/PVValidation_T_cfg.py @@ -1,4 +1,3 @@ -from __future__ import print_function import FWCore.ParameterSet.Config as cms from enum import Enum import sys @@ -16,6 +15,11 @@ class RefitType(Enum): process = cms.Process("PrimaryVertexValidation") +################################################################### +# Set the process to run multi-threaded +################################################################### +process.options.numberOfThreads = 8 + ################################################################### def customiseAlignmentAndAPE(process): ################################################################### diff --git a/Alignment/OfflineValidation/test/PrimaryVertexResolution_templ_cfg.py b/Alignment/OfflineValidation/test/PrimaryVertexResolution_templ_cfg.py index 18f579cb92cfc..abaf96cb64b0f 100644 --- a/Alignment/OfflineValidation/test/PrimaryVertexResolution_templ_cfg.py +++ b/Alignment/OfflineValidation/test/PrimaryVertexResolution_templ_cfg.py @@ -5,7 +5,6 @@ here doing refit of tracks and vertices using latest alignment ''' -from __future__ import print_function import FWCore.ParameterSet.Config as cms from fnmatch import fnmatch import FWCore.ParameterSet.VarParsing as VarParsing @@ -13,6 +12,11 @@ process = cms.Process("PrimaryVertexResolution") +################################################################### +# Set the process to run multi-threaded +################################################################### +process.options.numberOfThreads = 8 + ################################################################### def best_match(rcd): ###################################################################