cms-patatrack / cmssw

CMSSW fork of the Patatrack project
https://patatrack.web.cern.ch/patatrack/index.html
Apache License 2.0
2 stars 5 forks source link

Do not disable the CUDAService at HLT if there are no GPUs #607

Closed fwyzard closed 3 years ago

fwyzard commented 3 years ago

The CUDAService already checks for the availability of a suitable GPU at job startup, so there is no need to explicitly disable it in the python configuration.

This fixes the case where the configuration is expanded or pickled on a machine without GPUs, and then run on a machine with a GPU: in this case the CUDAService gets incorrectly disabled, breaking the configuration itself.