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

Improve various Patatrack Kernels #35598

Closed
wants to merge 527 commits into from
Closed

Conversation

VinInn
Copy link
Contributor

@VinInn VinInn commented Oct 9, 2021

Simplify and improve the logic of various Kernels.
Some maths have been sync with CPU version.
Fixed and improved the statistics collection and printing (off by default).

Technical.
No regression observed: math has changed so some regression cannot be excluded (even in CPU wf).

@VinInn
Copy link
Contributor Author

VinInn commented Oct 9, 2021

enable gpu

@VinInn
Copy link
Contributor Author

VinInn commented Oct 9, 2021

@cmsbuild , please test

@cmsbuild
Copy link
Contributor

cmsbuild commented Oct 9, 2021

-code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-35598/25860

  • This PR adds an extra 48KB to repository

Code check has found code style and quality issues which could be resolved by applying following patch(s)

@VinInn
Copy link
Contributor Author

VinInn commented Oct 9, 2021

@cmsbuild , please test

@cmsbuild
Copy link
Contributor

cmsbuild commented Oct 9, 2021

+code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-35598/25861

  • This PR adds an extra 48KB to repository

@cmsbuild
Copy link
Contributor

cmsbuild commented Oct 9, 2021

A new Pull Request was created by @VinInn (Vincenzo Innocente) for master.

It involves the following packages:

  • CalibTracker/SiPixelESProducers (alca)
  • CondFormats/SiPixelObjects (db, alca)
  • RecoLocalTracker/SiPixelClusterizer (reconstruction)
  • RecoLocalTracker/SiPixelRecHits (reconstruction)
  • RecoPixelVertexing/PixelTriplets (reconstruction)

@malbouis, @yuanchao, @ggovi, @slava77, @jpata, @tvami, @francescobrivio can you please review it and eventually sign? Thanks.
@mtosi, @felicepantaleo, @GiacomoSguazzoni, @JanFSchulte, @rovere, @VinInn, @OzAmram, @ferencek, @dkotlins, @tocheng, @gpetruc, @mmusich, @threus, @dgulhan, @seemasharmafnal, @tvami this is something you requested to watch as well.
@perrotta, @dpiparo, @qliphy you are the release manager for this.

cms-bot commands are listed here

@@ -38,7 +38,7 @@ void SiPixelGainCalibrationForHLTService::calibrate(
if (isDeadColumn | isNoisyColumn)
electron[i++] = 0;
else {
float vcal = di->adc() * gain - pedestal * gain;
float vcal = float(di->adc()) * gain - pedestal * gain;
// float vcal = (di->adc() - DBpedestal) * DBgain;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please remove the commented out code, or explain why it might be needed, thanks Vincenzo!

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It was there before.
In principle maybe faster and more precise, BUT I assume the calibration is done with the above so better to keep that.
Anyhow trivial to remove.

@@ -28,7 +28,7 @@ void SiPixelGainCalibrationServiceBase::calibrate(
else {
float DBgain = getGain(detID, col, row);
float DBpedestal = getPedestal(detID, col, row) * DBgain;
float vcal = di->adc() * DBgain - DBpedestal;
float vcal = float(di->adc()) * DBgain - DBpedestal;
// float vcal = (di->adc() - DBpedestal) * DBgain;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same comment as above regarding commented code

@cmsbuild
Copy link
Contributor

cmsbuild commented Oct 9, 2021

-1

Failed Tests: RelVals-GPU
Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-80c871/19518/summary.html
COMMIT: df4460f
CMSSW: CMSSW_12_1_X_2021-10-09-1100/slc7_amd64_gcc900
Additional Tests: GPU
User test area: For local testing, you can use /cvmfs/cms-ci.cern.ch/week1/cms-sw/cmssw/35598/19518/install.sh to create a dev area with all the needed externals and cmssw changes.

RelVals-GPU

  • 10824.50210824.502_TTbar_13+2018_Patatrack_PixelOnlyGPU+TTbar_13TeV_TuneCUETP8M1_GenSim+Digi+RecoFakeHLT+HARVESTFakeHLT/step3_TTbar_13+2018_Patatrack_PixelOnlyGPU+TTbar_13TeV_TuneCUETP8M1_GenSim+Digi+RecoFakeHLT+HARVESTFakeHLT.log

Comparison Summary

Summary:

  • No significant changes to the logs found
  • Reco comparison results: 0 differences found in the comparisons
  • DQMHistoTests: Total files compared: 40
  • DQMHistoTests: Total histograms compared: 2798082
  • DQMHistoTests: Total failures: 0
  • DQMHistoTests: Total nulls: 0
  • DQMHistoTests: Total successes: 2798060
  • DQMHistoTests: Total skipped: 22
  • DQMHistoTests: Total Missing objects: 0
  • DQMHistoSizes: Histogram memory added: 0.0 KiB( 39 files compared)
  • Checked 169 log files, 37 edm output root files, 40 DQM output files
  • TriggerResults: no differences found

@VinInn
Copy link
Contributor Author

VinInn commented Oct 9, 2021

Tried to reproduce runTheMatrix crashes by itself though

[innocent@patatrack02 matrix]$ runTheMatrix.py -l 10824.502
processing relval_standard
processing relval_highstats
processing relval_pileup
processing relval_generator
processing relval_extendedgen
processing relval_production
processing relval_ged
ignoring relval_upgrade from default matrix
ignoring relval_cleanedupgrade from default matrix
ignoring relval_gpu from default matrix
processing relval_2017
processing relval_2026
ignoring relval_identity from default matrix
processing relval_machine
processing relval_premix
Traceback (most recent call last):
  File "/cvmfs/cms-ib.cern.ch/nweek-02701/slc7_amd64_gcc900/cms/cmssw/CMSSW_12_1_X_2021-10-04-2300/bin/slc7_amd64_gcc900/runTheMatrix.py", line 596, in <module>
    ret = runSelected(opt)
  File "/cvmfs/cms-ib.cern.ch/nweek-02701/slc7_amd64_gcc900/cms/cmssw/CMSSW_12_1_X_2021-10-04-2300/bin/slc7_amd64_gcc900/runTheMatrix.py", line 31, in runSelected
    if len(undefSet)>0: raise ValueError('Undefined workflows: '+', '.join(map(str,list(undefSet))))
ValueError: Undefined workflows: 10824.502
[[innocent@patatrack02 matrix]$ echo $CMSSW_BASE/
/home/innocent/FixClus/CMSSW_12_1_X_2021-10-05-1100/

@VinInn
Copy link
Contributor Author

VinInn commented Oct 9, 2021

same in CMSSW_12_1_X_2021-10-09-1100

@VinInn
Copy link
Contributor Author

VinInn commented Oct 9, 2021

ok. reproduced on MC using a hlt menu of my own...
Will investigate

@VinInn
Copy link
Contributor Author

VinInn commented Oct 25, 2021

@cmsbuild , please test

@VinInn
Copy link
Contributor Author

VinInn commented Oct 25, 2021

oops messed up the merge

@VinInn
Copy link
Contributor Author

VinInn commented Oct 25, 2021

superseded by #35835

@VinInn VinInn closed this Oct 25, 2021
@cmsbuild
Copy link
Contributor

+code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-35598/26199

@tvami
Copy link
Contributor

tvami commented Oct 25, 2021

Hi @VinInn I think you need to rebase now to the latest IBs

@tvami
Copy link
Contributor

tvami commented Oct 25, 2021

ok, closing is also an option :)

@VinInn
Copy link
Contributor Author

VinInn commented Oct 25, 2021

In any case the thread here was long and confusing due the too many spurious errors

@cmsbuild
Copy link
Contributor

+1

Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-80c871/19919/summary.html
COMMIT: 58fd079
CMSSW: CMSSW_12_1_X_2021-10-25-1100/slc7_amd64_gcc900
Additional Tests: GPU
User test area: For local testing, you can use /cvmfs/cms-ci.cern.ch/week0/cms-sw/cmssw/35598/19919/install.sh to create a dev area with all the needed externals and cmssw changes.

GPU Comparison Summary

@slava77 comparisons for the following workflows were not done due to missing matrix map:

  • /data/cmsbld/jenkins/workspace/compare-root-files-short-matrix/data/PR-80c871/11634.506_TTbar_14TeV+2021_Patatrack_PixelOnlyTripletsGPU+TTbar_14TeV_TuneCP5_GenSim+Digi+Reco+HARVEST

Summary:

  • No significant changes to the logs found
  • Reco comparison results: 0 differences found in the comparisons
  • DQMHistoTests: Total files compared: 4
  • DQMHistoTests: Total histograms compared: 19782
  • DQMHistoTests: Total failures: 15
  • DQMHistoTests: Total nulls: 0
  • DQMHistoTests: Total successes: 19767
  • DQMHistoTests: Total skipped: 0
  • DQMHistoTests: Total Missing objects: 0
  • DQMHistoSizes: Histogram memory added: 0.0 KiB( 3 files compared)
  • Checked 12 log files, 9 edm output root files, 4 DQM output files
  • TriggerResults: no differences found

Comparison Summary

Summary:

  • No significant changes to the logs found
  • Reco comparison results: 0 differences found in the comparisons
  • DQMHistoTests: Total files compared: 41
  • DQMHistoTests: Total histograms compared: 2797338
  • DQMHistoTests: Total failures: 0
  • DQMHistoTests: Total nulls: 0
  • DQMHistoTests: Total successes: 2797316
  • DQMHistoTests: Total skipped: 22
  • DQMHistoTests: Total Missing objects: 0
  • DQMHistoSizes: Histogram memory added: 0.0 KiB( 40 files compared)
  • Checked 173 log files, 37 edm output root files, 41 DQM output files
  • TriggerResults: no differences found

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment