From c2580242a423ff9cfa0f5893a7d06c6b7a0582c2 Mon Sep 17 00:00:00 2001 From: Andrea Bocci Date: Wed, 22 Feb 2023 07:44:55 +0100 Subject: [PATCH] Remove the CUDAService from the HLT configuration Remove the explicit CUDAService from the HLT configuration, and rely on ProcessAcceleratorCUDA to load it if necessary. --- .../Configuration/python/customizeHLTforCMSSW.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/HLTrigger/Configuration/python/customizeHLTforCMSSW.py b/HLTrigger/Configuration/python/customizeHLTforCMSSW.py index 53b007a50b775..e9fa432ca080e 100644 --- a/HLTrigger/Configuration/python/customizeHLTforCMSSW.py +++ b/HLTrigger/Configuration/python/customizeHLTforCMSSW.py @@ -211,6 +211,15 @@ def customiseForOffline(process): return process +# Remove the explicit CUDAService from the HLT configuration, and +# rely on ProcessAcceleratorCUDA to load it if necessary +def customizeHLTfor40852(process): + if hasattr(process, 'CUDAService'): + del process.CUDAService + + return process + + # CMSSW version specific customizations def customizeHLTforCMSSW(process, menuType="GRun"): @@ -219,4 +228,6 @@ def customizeHLTforCMSSW(process, menuType="GRun"): # add call to action function in proper order: newest last! # process = customiseFor12718(process) + process = customizeHLTfor40852(process) + return process