From 19c2eaa46491232e2130f4015e6847c7722a0ea5 Mon Sep 17 00:00:00 2001 From: Matti Kortelainen Date: Thu, 9 Feb 2023 22:32:25 +0100 Subject: [PATCH] Clarify ProcessAccelerator documentation --- FWCore/ParameterSet/python/Config.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/FWCore/ParameterSet/python/Config.py b/FWCore/ParameterSet/python/Config.py index 671233afbe8e7..173cf6f76743a 100644 --- a/FWCore/ParameterSet/python/Config.py +++ b/FWCore/ParameterSet/python/Config.py @@ -1983,6 +1983,11 @@ class ProcessAccelerator(_ConfigureComponent,_Unlabelable): it would be good to have specific unit test for each deriving class to ensure that all combinations of the enabled accelerators give the same configuration hash. + + The deriving class must do its checks for hardware availability + only in enabledLabels(), and possibly in apply() if any further + fine-tuning is needed, because those two are the only functions + that are guaranteed to be called at the worker node. """ def __init__(self): pass