Skip to content

Commit

Permalink
Merge pull request #43229 from jsamudio/alpakaProcModifier
Browse files Browse the repository at this point in the history
Add Alpaka Process Modifier
  • Loading branch information
cmsbuild authored Nov 15, 2023
2 parents 4ecd7fc + 11e604f commit d59e80b
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
5 changes: 5 additions & 0 deletions Configuration/ProcessModifiers/python/alpaka_cff.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import FWCore.ParameterSet.Config as cms

# This modifier is for enabling alpaka modules

alpaka = cms.Modifier()
1 change: 1 addition & 0 deletions Configuration/StandardSequences/python/Accelerators_cff.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@

from HeterogeneousCore.CUDACore.ProcessAcceleratorCUDA_cfi import ProcessAcceleratorCUDA
from HeterogeneousCore.ROCmCore.ProcessAcceleratorROCm_cfi import ProcessAcceleratorROCm
from HeterogeneousCore.AlpakaCore.ProcessAcceleratorAlpaka_cfi import ProcessAcceleratorAlpaka
4 changes: 3 additions & 1 deletion Configuration/StandardSequences/python/Services_cff.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ def _addProcessAccelerators(process):

from Configuration.ProcessModifiers.gpu_cff import gpu
from Configuration.ProcessModifiers.pixelNtupletFit_cff import pixelNtupletFit
modifyConfigurationStandardSequencesServicesAddProcessAccelerators_ = (gpu | pixelNtupletFit).makeProcessModifier(_addProcessAccelerators)
from Configuration.ProcessModifiers.alpaka_cff import alpaka

modifyConfigurationStandardSequencesServicesAddProcessAccelerators_ = (gpu | pixelNtupletFit | alpaka).makeProcessModifier(_addProcessAccelerators)

# load TritonService when SONIC workflow is enabled
def _addTritonService(process):
Expand Down

0 comments on commit d59e80b

Please sign in to comment.