Skip to content

Commit

Permalink
Next prototype of the framework integration (#100)
Browse files Browse the repository at this point in the history
Provide a mechanism for a chain of modules to share a resource, that can be e.g. CUDA device memory or a CUDA stream.
Minimize data movements between the CPU and the device, and support multiple devices.
Allow the same job configuration to be used on all hardware combinations.

See HeterogeneousCore/CUDACore/README.md for a more detailed description and examples.
  • Loading branch information
makortel authored and fwyzard committed Dec 29, 2020
1 parent fcf8d67 commit fa62e7d
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions Configuration/StandardSequences/python/RawToDigi_cff.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# This object is used to selectively make changes for different running
# scenarios. In this case it makes changes for Run 2.

from EventFilter.SiPixelRawToDigi.SiPixelRawToDigi_cfi import *
from EventFilter.SiPixelRawToDigi.siPixelDigis_cff import *

from EventFilter.SiStripRawToDigi.SiStripDigis_cfi import *

Expand Down Expand Up @@ -49,7 +49,7 @@
from EventFilter.CTPPSRawToDigi.ctppsRawToDigi_cff import *

RawToDigiTask = cms.Task(L1TRawToDigiTask,
siPixelDigis,
siPixelDigisTask,
siStripDigis,
ecalDigis,
ecalPreshowerDigis,
Expand All @@ -64,15 +64,14 @@
)
RawToDigi = cms.Sequence(RawToDigiTask)

RawToDigiTask_noTk = RawToDigiTask.copyAndExclude([siPixelDigis, siStripDigis])
RawToDigiTask_noTk = RawToDigiTask.copyAndExclude([siPixelDigisTask, siStripDigis])
RawToDigi_noTk = cms.Sequence(RawToDigiTask_noTk)

RawToDigiTask_pixelOnly = cms.Task(siPixelDigis)
RawToDigiTask_pixelOnly = cms.Task(siPixelDigisTask)
RawToDigi_pixelOnly = cms.Sequence(RawToDigiTask_pixelOnly)

scalersRawToDigi.scalersInputTag = 'rawDataCollector'
from Configuration.ProcessModifiers.gpu_cff import gpu
(~gpu).toModify(siPixelDigis, InputLabel = 'rawDataCollector')
siPixelDigis.cpu.InputLabel = 'rawDataCollector'
#false by default anyways ecalDigis.DoRegional = False
ecalDigis.InputLabel = 'rawDataCollector'
ecalPreshowerDigis.sourceTag = 'rawDataCollector'
Expand Down

0 comments on commit fa62e7d

Please sign in to comment.