-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Where to place loading of CUDAService? #28575
Comments
A new Issue was created by @makortel Matti Kortelainen. @davidlange6, @Dr15Jones, @smuzaffar, @fabiocos, @kpedro88 can you please review it and eventually sign/assign? Thanks. cms-bot commands are listed here |
assign operations,core |
New categories assigned: operations,core @Dr15Jones,@smuzaffar,@fabiocos,@franzoni,@davidlange6,@kpedro88 you have been requested to review this Pull request/Issue and eventually sign? Thanks |
@makortel so practically what you did was to update https://github.com/cms-sw/cmssw/blob/master/Configuration/StandardSequences/python/Services_cff.py ? This sounds as a natural entry point, unless you want to have it conditional to some specific flag |
@fabiocos I put a cmssw/Configuration/Applications/python/ConfigBuilder.py Lines 912 to 925 in 692e725
Thanks for pointing out the |
Based on the discussion yesterday in the core meeting (given #28576), probably it would make sense (as an interim solution) to load |
I understood that |
The actual line would not be |
I agree it is not pretty, but would limit the set of broken workflows in |
Thinking further def loadCUDAService(process):
process.load("HeterogeneousCore.CUDAServices.CUDAService_cff")
modifyConfigurationStandardSequencesServicesCUDAService = gpu.makeProcessModifier(loadCUDAService) in |
Look clean enough to me ... |
@makortel from a quick test I did
is correctly uploaded in case the process modifier |
PR #28537 introduces
CUDAService
that needs to be loaded in any configuration that may include CUDA EDModules. The service works also on machines without GPUs, and is used to communicate that fact to elsewhere in CMSSW.The question is then where exactly the
process.load("HeterogeneousCore.CUDAServices.CUDAService_cfi")
should be placed? In the patatrack fork we modifiedConfigBuilder
to always include it in thecmsDriver.py
-generated configuration files.An alternative could be to import
CUDAService
into all cfi/cff files that define CUDA EDModules. On the other hand, we don't tend to do that with other services (likeDQMStore
orRandomNumberGeneratorService
).Requiring the framework to always load
CUDAService
internally does not sound a good solution either (at this stage at least).Are there any better ideas?
The text was updated successfully, but these errors were encountered: