Skip to content
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

Add workflows for profiling the GPU code #35540

Merged
merged 2 commits into from
Oct 8, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -456,11 +456,20 @@ def condition(self, fragment, stepList, key, hasHarvest):

def setup_(self, step, stepName, stepDict, k, properties):
if 'Digi' in step:
stepDict[stepName][k] = merge([self.__digi, stepDict[step][k]])
if self.__digi is None:
stepDict[stepName][k] = None
else:
stepDict[stepName][k] = merge([self.__digi, stepDict[step][k]])
elif 'Reco' in step:
stepDict[stepName][k] = merge([self.__reco, stepDict[step][k]])
if self.__reco is None:
stepDict[stepName][k] = None
else:
stepDict[stepName][k] = merge([self.__reco, stepDict[step][k]])
elif 'HARVEST' in step:
stepDict[stepName][k] = merge([self.__harvest, stepDict[step][k]])
if self.__harvest is None:
stepDict[stepName][k] = None
else:
stepDict[stepName][k] = merge([self.__harvest, stepDict[step][k]])


upgradeWFs['PatatrackPixelOnlyCPU'] = PatatrackWorkflow(
Expand Down Expand Up @@ -493,6 +502,22 @@ def setup_(self, step, stepName, stepDict, k, properties):
offset = 0.502,
)

# add here a .503 workflow for GPU vs CPU validation

upgradeWFs['PatatrackPixelOnlyGPUProfiling'] = PatatrackWorkflow(
digi = {
'--procModifiers': 'gpu'
},
reco = {
'-s': 'RAW2DIGI:RawToDigi_pixelOnly,RECO:reconstruction_pixelTrackingOnly',
'--procModifiers': 'pixelNtupletFit,gpu',
'--customise' : 'RecoTracker/Configuration/customizePixelOnlyForProfiling.customizePixelOnlyForProfilingGPUOnly'
},
harvest = None,
suffix = 'Patatrack_PixelOnlyGPU_Profiling',
offset = 0.504,
)

upgradeWFs['PatatrackPixelOnlyTripletsCPU'] = PatatrackWorkflow(
digi = {
# there is no customisation for enabling the Patatrack pixel triplets running only on the CPU
Expand Down Expand Up @@ -526,6 +551,23 @@ def setup_(self, step, stepName, stepDict, k, properties):
offset = 0.506,
)

# add here a .507 workflow for GPU vs CPU validation

upgradeWFs['PatatrackPixelOnlyTripletsGPUProfiling'] = PatatrackWorkflow(
digi = {
'--procModifiers': 'gpu',
'--customise': 'HLTrigger/Configuration/customizeHLTforPatatrack.enablePatatrackPixelTriplets'
},
reco = {
'-s': 'RAW2DIGI:RawToDigi_pixelOnly,RECO:reconstruction_pixelTrackingOnly',
'--procModifiers': 'pixelNtupletFit,gpu',
'--customise': 'RecoPixelVertexing/Configuration/customizePixelTracksForTriplets.customizePixelTracksForTriplets,RecoTracker/Configuration/customizePixelOnlyForProfiling.customizePixelOnlyForProfilingGPUOnly'
},
harvest = None,
suffix = 'Patatrack_PixelOnlyTripletsGPU_Profiling',
offset = 0.508,
)

upgradeWFs['PatatrackECALOnlyCPU'] = PatatrackWorkflow(
reco = {
'-s': 'RAW2DIGI:RawToDigi_ecalOnly,RECO:reconstruction_ecalOnly,VALIDATION:@ecalOnlyValidation,DQM:@ecalOnly',
Expand All @@ -552,6 +594,22 @@ def setup_(self, step, stepName, stepDict, k, properties):
offset = 0.512,
)

# add here a .513 workflow for GPU vs CPU validation

upgradeWFs['PatatrackECALOnlyGPUProfiling'] = PatatrackWorkflow(
digi = {
'--procModifiers': 'gpu'
},
reco = {
'-s': 'RAW2DIGI:RawToDigi_ecalOnly,RECO:reconstruction_ecalOnly',
'--procModifiers': 'gpu',
'--customise' : 'RecoLocalCalo/Configuration/customizeEcalOnlyForProfiling.customizeEcalOnlyForProfilingGPUOnly'
},
harvest = None,
suffix = 'Patatrack_ECALOnlyGPU_Profiling',
offset = 0.514,
)

upgradeWFs['PatatrackHCALOnlyCPU'] = PatatrackWorkflow(
reco = {
'-s': 'RAW2DIGI:RawToDigi_hcalOnly,RECO:reconstruction_hcalOnly,VALIDATION:@hcalOnlyValidation,DQM:@hcalOnly+@hcal2Only',
Expand All @@ -578,6 +636,22 @@ def setup_(self, step, stepName, stepDict, k, properties):
offset = 0.522,
)

# add here a .523 workflow for GPU vs CPU validation

upgradeWFs['PatatrackHCALOnlyGPUProfiling'] = PatatrackWorkflow(
digi = {
'--procModifiers': 'gpu'
},
reco = {
'-s': 'RAW2DIGI:RawToDigi_hcalOnly,RECO:reconstruction_hcalOnly',
'--procModifiers': 'gpu',
'--customise' : 'RecoLocalCalo/Configuration/customizeHcalOnlyForProfiling.customizeHcalOnlyForProfilingGPUOnly'
},
harvest = None,
suffix = 'Patatrack_HCALOnlyGPU_Profiling',
offset = 0.524,
)

upgradeWFs['PatatrackCPU'] = PatatrackWorkflow(
digi = {
# there is no customisation for enabling the Patatrack pixel quadruplets running only on the CPU
Expand Down