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

Portable Data Formats for Pixel Track Reconstruction #40465

Merged

Conversation

nothingface0
Copy link
Contributor

@nothingface0 nothingface0 commented Jan 10, 2023

Co-authored-by: Adriano DiFlorio adriano.diflorio@ba.infn.it
Co-authored-by: Breno Orzari breno.orzari@hotmail.com
Co-authored-by: Dimitris Papagiannis nothingface0@gmail.com

PR description:

A joint work from @borzari, @nothingface0 and @AdrianoDee.

This PR proposes moving the data structures used for the pixel local and track reconstruction to the Portable{Host,Device}Collection logic. This includes moving all the methods used in the chain to make use. The modifications are all technical and no change in performance observed nor expected. This is the first of two steps towards the pixel track reconstruction CUDA to Alpaka port.

Physics Performance

Local SiPixel Reco

No difference shown. Posting FDisk -2 hit charge as an example.

image

Further plots here.

Pixel Track Reco

No difference shown. Posting pixel track efficiencies and vertices RecoVsSim as examples. The four perfectly overlapping trends compare the GPU vs CPU and PR (PixelPortableDataFormats) vs CMSSW_13_0_X_2023-01-09-2300.

image image

Further MTV plots here.

Computational Performance

/EphemeralHLTPhysics1/Run2018D-v1/RAW run=323775 lumi=53

Evaluated on fu-c2a02-37-02 T4@P5 via patatrack-scripts.

Physics Validation Plots

Run3

RelVal ttbar samples with PU and 125X_mcRun3_2022_realistic_v3 GT:

triplets
quadruplets

Phase2

RelVal ttbar samples with PU and 125X_mcRun4_realistic_v5 GT:

triplets
quadruplets

Further references

@cmsbuild cmsbuild added this to the CMSSW_13_0_X milestone Jan 10, 2023
@nothingface0 nothingface0 marked this pull request as ready for review January 10, 2023 14:38
@nothingface0 nothingface0 changed the title Portable data formats with Tracker Traits Portable Data Formats for Pixel Track Reconstruction Jan 10, 2023
@fwyzard
Copy link
Contributor

fwyzard commented Jan 10, 2023

@cms-sw/reconstruction-l2 this is something that we would like to have in pre3, in order to do a full GPU-vs-GPU and GPU-vs-CPU validation (PPD is aware3)

I do acknowledge that it's a large PR arriving at the last minute... and it likely still needs some clean up.

@cmsbuild
Copy link
Contributor

+code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-40465/33636

@cmsbuild
Copy link
Contributor

A new Pull Request was created by @nothingface0 (Dimitris Papagiannis) for master.

It involves the following packages:

  • CUDADataFormats/SiPixelCluster (heterogeneous, reconstruction)
  • CUDADataFormats/SiPixelDigi (heterogeneous, reconstruction)
  • CUDADataFormats/Track (heterogeneous, reconstruction)
  • CUDADataFormats/TrackingRecHit (heterogeneous, reconstruction)
  • CUDADataFormats/Vertex (heterogeneous, reconstruction)
  • DQM/SiPixelHeterogeneous (dqm)
  • DQM/SiPixelPhase1Heterogeneous (dqm)
  • EventFilter/SiPixelRawToDigi (reconstruction)
  • Geometry/CommonTopologies (geometry)
  • HLTrigger/Configuration (hlt)
  • RecoLocalTracker/SiPixelClusterizer (reconstruction)
  • RecoLocalTracker/SiPixelRecHits (reconstruction)
  • RecoPixelVertexing/PixelTrackFitting (reconstruction)
  • RecoPixelVertexing/PixelTriplets (reconstruction)
  • RecoPixelVertexing/PixelVertexFinding (reconstruction)
  • RecoTauTag/HLTProducers (hlt)
  • RecoTracker/TkSeedGenerator (reconstruction)

@Martin-Grunewald, @civanch, @Dr15Jones, @clacaputo, @bsunanda, @makortel, @micsucmed, @emanueleusai, @ianna, @ahmad3213, @cmsbuild, @missirol, @mdhildreth, @syuvivida, @fwyzard, @pmandrik, @mandrenguyen, @rvenditti can you please review it and eventually sign? Thanks.
@VourMa, @felicepantaleo, @Martin-Grunewald, @bsunanda, @fioriNTU, @mbluj, @threus, @hdelanno, @silviodonato, @JanFSchulte, @dgulhan, @missirol, @azotz, @ferencek, @GiacomoSguazzoni, @rovere, @VinInn, @mroguljic, @jandrea, @idebruyn, @mmusich, @mtosi, @fabiocos, @dkotlins, @gpetruc, @tvami this is something you requested to watch as well.
@perrotta, @dpiparo, @rappoccio you are the release manager for this.

cms-bot commands are listed here

@mandrenguyen
Copy link
Contributor

Thanks for the heads up @fwyzard
@nothingface0 One thing that's immediately visible: Please delete code, rather than commenting it out.

Copy link
Contributor

@mmusich mmusich left a comment

Choose a reason for hiding this comment

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

there is a lot of commented code kept. Any reason why it cannot just be deleted?

@AdrianoDee
Copy link
Contributor

there is a lot of commented code kept. Any reason why it cannot just be deleted?

No reason. Apparently we missed the commit with the cleanup. Recovering it!

@cmsbuild
Copy link
Contributor

+code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-40465/33639

@cmsbuild
Copy link
Contributor

@cmsbuild
Copy link
Contributor

+code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-40465/33640

@civanch
Copy link
Contributor

civanch commented Jan 18, 2023

+1

@cmsbuild
Copy link
Contributor

This pull request is fully signed and it will be integrated in one of the next master IBs (tests are also fine). This pull request will now be reviewed by the release team before it's merged. @perrotta, @dpiparo, @rappoccio (and backports should be raised in the release meeting by the corresponding L2)

@perrotta
Copy link
Contributor

+1

  • Based on the review, the lack of differences in the comparisons with the baseleine (as expected for a "technical" PR), and on the outcome of the static analyzer
  • Quite several updates are announced for a forthcoming PR, which I expect can be prepared righ after this one is merged in CMSSW

@makortel
Copy link
Contributor

This PR caused many maybe-uninitialized warnings in the LTO build

In member function 'operator=',
    inlined from 'acquire' at /data/cmsbld/jenkins/workspace/build-any-ib/w/tmp/BUILDROOT/14e848a0c8ff1121960b0a26ea9680eb/opt/cmssw/el8_amd64_gcc11/cms/cmssw-patch/CMSSW_13_0_LTO_X_2023-01-18-1100/src/RecoLocalTracker/SiPixelRecHits/plugins/SiPixelRecHitSoAFromCUDA.cc:76:11:
  /data/cmsbld/jenkins/workspace/build-any-ib/w/tmp/BUILDROOT/14e848a0c8ff1121960b0a26ea9680eb/opt/cmssw/el8_amd64_gcc11/cms/cmssw-patch/CMSSW_13_0_LTO_X_2023-01-18-1100/src/CUDADataFormats/TrackingRecHit/interface/TrackingRecHitSoAHost.h:12:7: warning: 'D.21468.nHits_' may be used uninitialized [-Wmaybe-uninitialized]
    12 | class TrackingRecHitSoAHost : public cms::cuda::PortableHostCollection<TrackingRecHitLayout<TrackerTraits>> {
      |       ^
/data/cmsbld/jenkins/workspace/build-any-ib/w/tmp/BUILDROOT/14e848a0c8ff1121960b0a26ea9680eb/opt/cmssw/el8_amd64_gcc11/cms/cmssw-patch/CMSSW_13_0_LTO_X_2023-01-18-1100/src/RecoLocalTracker/SiPixelRecHits/plugins/SiPixelRecHitSoAFromCUDA.cc: In member function 'acquire':
/data/cmsbld/jenkins/workspace/build-any-ib/w/tmp/BUILDROOT/14e848a0c8ff1121960b0a26ea9680eb/opt/cmssw/el8_amd64_gcc11/cms/cmssw-patch/CMSSW_13_0_LTO_X_2023-01-18-1100/src/RecoLocalTracker/SiPixelRecHits/plugins/SiPixelRecHitSoAFromCUDA.cc:76:13: note: '<anonymous>' declared here
   76 |   hits_h_ = HitsOnHost(nHits_, ctx.stream());
      |             ^
In member function 'operator=',
    inlined from 'acquire' at /data/cmsbld/jenkins/workspace/build-any-ib/w/tmp/BUILDROOT/14e848a0c8ff1121960b0a26ea9680eb/opt/cmssw/el8_amd64_gcc11/cms/cmssw-patch/CMSSW_13_0_LTO_X_2023-01-18-1100/src/RecoLocalTracker/SiPixelRecHits/plugins/SiPixelRecHitSoAFromCUDA.cc:76:11:
  /data/cmsbld/jenkins/workspace/build-any-ib/w/tmp/BUILDROOT/14e848a0c8ff1121960b0a26ea9680eb/opt/cmssw/el8_amd64_gcc11/cms/cmssw-patch/CMSSW_13_0_LTO_X_2023-01-18-1100/src/CUDADataFormats/TrackingRecHit/interface/TrackingRecHitSoAHost.h:12:7: warning: 'D.21468.cpeParams_' may be used uninitialized [-Wmaybe-uninitialized]
    12 | class TrackingRecHitSoAHost : public cms::cuda::PortableHostCollection<TrackingRecHitLayout<TrackerTraits>> {
      |       ^
/data/cmsbld/jenkins/workspace/build-any-ib/w/tmp/BUILDROOT/14e848a0c8ff1121960b0a26ea9680eb/opt/cmssw/el8_amd64_gcc11/cms/cmssw-patch/CMSSW_13_0_LTO_X_2023-01-18-1100/src/RecoLocalTracker/SiPixelRecHits/plugins/SiPixelRecHitSoAFromCUDA.cc: In member function 'acquire':
/data/cmsbld/jenkins/workspace/build-any-ib/w/tmp/BUILDROOT/14e848a0c8ff1121960b0a26ea9680eb/opt/cmssw/el8_amd64_gcc11/cms/cmssw-patch/CMSSW_13_0_LTO_X_2023-01-18-1100/src/RecoLocalTracker/SiPixelRecHits/plugins/SiPixelRecHitSoAFromCUDA.cc:76:13: note: '<anonymous>' declared here
   76 |   hits_h_ = HitsOnHost(nHits_, ctx.stream());
      |             ^
In member function 'operator=',
    inlined from 'acquire' at /data/cmsbld/jenkins/workspace/build-any-ib/w/tmp/BUILDROOT/14e848a0c8ff1121960b0a26ea9680eb/opt/cmssw/el8_amd64_gcc11/cms/cmssw-patch/CMSSW_13_0_LTO_X_2023-01-18-1100/src/RecoLocalTracker/SiPixelRecHits/plugins/SiPixelRecHitSoAFromCUDA.cc:76:11:
  /data/cmsbld/jenkins/workspace/build-any-ib/w/tmp/BUILDROOT/14e848a0c8ff1121960b0a26ea9680eb/opt/cmssw/el8_amd64_gcc11/cms/cmssw-patch/CMSSW_13_0_LTO_X_2023-01-18-1100/src/CUDADataFormats/TrackingRecHit/interface/TrackingRecHitSoAHost.h:12:7: warning: 'D.21468.offsetBPIX2_' may be used uninitialized [-Wmaybe-uninitialized]
    12 | class TrackingRecHitSoAHost : public cms::cuda::PortableHostCollection<TrackingRecHitLayout<TrackerTraits>> {
      |       ^
/data/cmsbld/jenkins/workspace/build-any-ib/w/tmp/BUILDROOT/14e848a0c8ff1121960b0a26ea9680eb/opt/cmssw/el8_amd64_gcc11/cms/cmssw-patch/CMSSW_13_0_LTO_X_2023-01-18-1100/src/RecoLocalTracker/SiPixelRecHits/plugins/SiPixelRecHitSoAFromCUDA.cc: In member function 'acquire':
/data/cmsbld/jenkins/workspace/build-any-ib/w/tmp/BUILDROOT/14e848a0c8ff1121960b0a26ea9680eb/opt/cmssw/el8_amd64_gcc11/cms/cmssw-patch/CMSSW_13_0_LTO_X_2023-01-18-1100/src/RecoLocalTracker/SiPixelRecHits/plugins/SiPixelRecHitSoAFromCUDA.cc:76:13: note: '<anonymous>' declared here
   76 |   hits_h_ = HitsOnHost(nHits_, ctx.stream());
      |             ^
In member function 'operator=',
    inlined from 'acquire' at /data/cmsbld/jenkins/workspace/build-any-ib/w/tmp/BUILDROOT/14e848a0c8ff1121960b0a26ea9680eb/opt/cmssw/el8_amd64_gcc11/cms/cmssw-patch/CMSSW_13_0_LTO_X_2023-01-18-1100/src/RecoLocalTracker/SiPixelRecHits/plugins/SiPixelRecHitSoAFromCUDA.cc:76:11:
  /data/cmsbld/jenkins/workspace/build-any-ib/w/tmp/BUILDROOT/14e848a0c8ff1121960b0a26ea9680eb/opt/cmssw/el8_amd64_gcc11/cms/cmssw-patch/CMSSW_13_0_LTO_X_2023-01-18-1100/src/CUDADataFormats/TrackingRecHit/interface/TrackingRecHitSoAHost.h:12:7: warning: 'D.21468.phiBinnerStorage_' may be used uninitialized [-Wmaybe-uninitialized]
    12 | class TrackingRecHitSoAHost : public cms::cuda::PortableHostCollection<TrackingRecHitLayout<TrackerTraits>> {
      |       ^
/data/cmsbld/jenkins/workspace/build-any-ib/w/tmp/BUILDROOT/14e848a0c8ff1121960b0a26ea9680eb/opt/cmssw/el8_amd64_gcc11/cms/cmssw-patch/CMSSW_13_0_LTO_X_2023-01-18-1100/src/RecoLocalTracker/SiPixelRecHits/plugins/SiPixelRecHitSoAFromCUDA.cc: In member function 'acquire':
/data/cmsbld/jenkins/workspace/build-any-ib/w/tmp/BUILDROOT/14e848a0c8ff1121960b0a26ea9680eb/opt/cmssw/el8_amd64_gcc11/cms/cmssw-patch/CMSSW_13_0_LTO_X_2023-01-18-1100/src/RecoLocalTracker/SiPixelRecHits/plugins/SiPixelRecHitSoAFromCUDA.cc:76:13: note: '<anonymous>' declared here
   76 |   hits_h_ = HitsOnHost(nHits_, ctx.stream());
      |             ^
In member function 'operator=',
    inlined from 'acquire' at /data/cmsbld/jenkins/workspace/build-any-ib/w/tmp/BUILDROOT/14e848a0c8ff1121960b0a26ea9680eb/opt/cmssw/el8_amd64_gcc11/cms/cmssw-patch/CMSSW_13_0_LTO_X_2023-01-18-1100/src/RecoLocalTracker/SiPixelRecHits/plugins/SiPixelRecHitSoAFromCUDA.cc:76:11:
  /data/cmsbld/jenkins/workspace/build-any-ib/w/tmp/BUILDROOT/14e848a0c8ff1121960b0a26ea9680eb/opt/cmssw/el8_amd64_gcc11/cms/cmssw-patch/CMSSW_13_0_LTO_X_2023-01-18-1100/src/CUDADataFormats/TrackingRecHit/interface/TrackingRecHitSoAHost.h:12:7: warning: 'D.21801.nHits_' may be used uninitialized [-Wmaybe-uninitialized]
    12 | class TrackingRecHitSoAHost : public cms::cuda::PortableHostCollection<TrackingRecHitLayout<TrackerTraits>> {
      |       ^
/data/cmsbld/jenkins/workspace/build-any-ib/w/tmp/BUILDROOT/14e848a0c8ff1121960b0a26ea9680eb/opt/cmssw/el8_amd64_gcc11/cms/cmssw-patch/CMSSW_13_0_LTO_X_2023-01-18-1100/src/RecoLocalTracker/SiPixelRecHits/plugins/SiPixelRecHitSoAFromCUDA.cc: In member function 'acquire':
/data/cmsbld/jenkins/workspace/build-any-ib/w/tmp/BUILDROOT/14e848a0c8ff1121960b0a26ea9680eb/opt/cmssw/el8_amd64_gcc11/cms/cmssw-patch/CMSSW_13_0_LTO_X_2023-01-18-1100/src/RecoLocalTracker/SiPixelRecHits/plugins/SiPixelRecHitSoAFromCUDA.cc:76:13: note: '<anonymous>' declared here
   76 |   hits_h_ = HitsOnHost(nHits_, ctx.stream());
      |             ^
In member function 'operator=',
    inlined from 'acquire' at /data/cmsbld/jenkins/workspace/build-any-ib/w/tmp/BUILDROOT/14e848a0c8ff1121960b0a26ea9680eb/opt/cmssw/el8_amd64_gcc11/cms/cmssw-patch/CMSSW_13_0_LTO_X_2023-01-18-1100/src/RecoLocalTracker/SiPixelRecHits/plugins/SiPixelRecHitSoAFromCUDA.cc:76:11:
  /data/cmsbld/jenkins/workspace/build-any-ib/w/tmp/BUILDROOT/14e848a0c8ff1121960b0a26ea9680eb/opt/cmssw/el8_amd64_gcc11/cms/cmssw-patch/CMSSW_13_0_LTO_X_2023-01-18-1100/src/CUDADataFormats/TrackingRecHit/interface/TrackingRecHitSoAHost.h:12:7: warning: 'D.21801.cpeParams_' may be used uninitialized [-Wmaybe-uninitialized]
    12 | class TrackingRecHitSoAHost : public cms::cuda::PortableHostCollection<TrackingRecHitLayout<TrackerTraits>> {
      |       ^
/data/cmsbld/jenkins/workspace/build-any-ib/w/tmp/BUILDROOT/14e848a0c8ff1121960b0a26ea9680eb/opt/cmssw/el8_amd64_gcc11/cms/cmssw-patch/CMSSW_13_0_LTO_X_2023-01-18-1100/src/RecoLocalTracker/SiPixelRecHits/plugins/SiPixelRecHitSoAFromCUDA.cc: In member function 'acquire':
/data/cmsbld/jenkins/workspace/build-any-ib/w/tmp/BUILDROOT/14e848a0c8ff1121960b0a26ea9680eb/opt/cmssw/el8_amd64_gcc11/cms/cmssw-patch/CMSSW_13_0_LTO_X_2023-01-18-1100/src/RecoLocalTracker/SiPixelRecHits/plugins/SiPixelRecHitSoAFromCUDA.cc:76:13: note: '<anonymous>' declared here
   76 |   hits_h_ = HitsOnHost(nHits_, ctx.stream());
      |             ^
In member function 'operator=',
    inlined from 'acquire' at /data/cmsbld/jenkins/workspace/build-any-ib/w/tmp/BUILDROOT/14e848a0c8ff1121960b0a26ea9680eb/opt/cmssw/el8_amd64_gcc11/cms/cmssw-patch/CMSSW_13_0_LTO_X_2023-01-18-1100/src/RecoLocalTracker/SiPixelRecHits/plugins/SiPixelRecHitSoAFromCUDA.cc:76:11:
  /data/cmsbld/jenkins/workspace/build-any-ib/w/tmp/BUILDROOT/14e848a0c8ff1121960b0a26ea9680eb/opt/cmssw/el8_amd64_gcc11/cms/cmssw-patch/CMSSW_13_0_LTO_X_2023-01-18-1100/src/CUDADataFormats/TrackingRecHit/interface/TrackingRecHitSoAHost.h:12:7: warning: 'D.21801.offsetBPIX2_' may be used uninitialized [-Wmaybe-uninitialized]
    12 | class TrackingRecHitSoAHost : public cms::cuda::PortableHostCollection<TrackingRecHitLayout<TrackerTraits>> {
      |       ^
/data/cmsbld/jenkins/workspace/build-any-ib/w/tmp/BUILDROOT/14e848a0c8ff1121960b0a26ea9680eb/opt/cmssw/el8_amd64_gcc11/cms/cmssw-patch/CMSSW_13_0_LTO_X_2023-01-18-1100/src/RecoLocalTracker/SiPixelRecHits/plugins/SiPixelRecHitSoAFromCUDA.cc: In member function 'acquire':
/data/cmsbld/jenkins/workspace/build-any-ib/w/tmp/BUILDROOT/14e848a0c8ff1121960b0a26ea9680eb/opt/cmssw/el8_amd64_gcc11/cms/cmssw-patch/CMSSW_13_0_LTO_X_2023-01-18-1100/src/RecoLocalTracker/SiPixelRecHits/plugins/SiPixelRecHitSoAFromCUDA.cc:76:13: note: '<anonymous>' declared here
   76 |   hits_h_ = HitsOnHost(nHits_, ctx.stream());
      |             ^
In member function 'operator=',
    inlined from 'acquire' at /data/cmsbld/jenkins/workspace/build-any-ib/w/tmp/BUILDROOT/14e848a0c8ff1121960b0a26ea9680eb/opt/cmssw/el8_amd64_gcc11/cms/cmssw-patch/CMSSW_13_0_LTO_X_2023-01-18-1100/src/RecoLocalTracker/SiPixelRecHits/plugins/SiPixelRecHitSoAFromCUDA.cc:76:11:
  /data/cmsbld/jenkins/workspace/build-any-ib/w/tmp/BUILDROOT/14e848a0c8ff1121960b0a26ea9680eb/opt/cmssw/el8_amd64_gcc11/cms/cmssw-patch/CMSSW_13_0_LTO_X_2023-01-18-1100/src/CUDADataFormats/TrackingRecHit/interface/TrackingRecHitSoAHost.h:12:7: warning: 'D.21801.phiBinnerStorage_' may be used uninitialized [-Wmaybe-uninitialized]
    12 | class TrackingRecHitSoAHost : public cms::cuda::PortableHostCollection<TrackingRecHitLayout<TrackerTraits>> {
      |       ^
/data/cmsbld/jenkins/workspace/build-any-ib/w/tmp/BUILDROOT/14e848a0c8ff1121960b0a26ea9680eb/opt/cmssw/el8_amd64_gcc11/cms/cmssw-patch/CMSSW_13_0_LTO_X_2023-01-18-1100/src/RecoLocalTracker/SiPixelRecHits/plugins/SiPixelRecHitSoAFromCUDA.cc: In member function 'acquire':
/data/cmsbld/jenkins/workspace/build-any-ib/w/tmp/BUILDROOT/14e848a0c8ff1121960b0a26ea9680eb/opt/cmssw/el8_amd64_gcc11/cms/cmssw-patch/CMSSW_13_0_LTO_X_2023-01-18-1100/src/RecoLocalTracker/SiPixelRecHits/plugins/SiPixelRecHitSoAFromCUDA.cc:76:13: note: '<anonymous>' declared here
   76 |   hits_h_ = HitsOnHost(nHits_, ctx.stream());
      |             ^

https://cmssdt.cern.ch/SDT/cgi-bin/buildlogs/el8_amd64_gcc11/CMSSW_13_0_LTO_X_2023-01-18-1100/RecoLocalTracker/SiPixelRecHits

@fwyzard
Copy link
Contributor

fwyzard commented Jan 19, 2023

The issue seems to be that these constructors

  // This SoA Host is used basically only for DQM
  // so we  just need a slim constructor
  explicit TrackingRecHitSoAHost(uint32_t nHits)
      : cms::cuda::PortableHostCollection<TrackingRecHitLayout<TrackerTraits>>(nHits) {}

  explicit TrackingRecHitSoAHost(uint32_t nHits, cudaStream_t stream)
      : cms::cuda::PortableHostCollection<TrackingRecHitLayout<TrackerTraits>>(nHits, stream) {}

do not set the data members:

  uint32_t nHits_;
  ParamsOnGPU const* cpeParams_;
  uint32_t offsetBPIX2_;
  PhiBinnerStorageType* phiBinnerStorage_;

and the compiler has no way of knowing that those values will not be used later on.

So, they should either be removed (if they are really never used) or be properly initialised.

@perrotta
Copy link
Contributor

Thank you @makortel and @fwyzard
@nothingface0 (or anyone else): could you please provide a fix, following the suggestion here above?

@AdrianoDee
Copy link
Contributor

@perrotta taking care of it as soon as possible (anyway today at latest).

@AdrianoDee
Copy link
Contributor

AdrianoDee commented Jan 20, 2023

Opened #40575 should address this. I'm saying should because I don't know if there's something to do to turn on the printouts for those warnings. Is it there?

hCurvdiffMatched_->Fill((helper::charge(tsoaCPU.view(), it) / tsoaCPU.view()[it].pt()) -
(helper::charge(tsoaGPU.view(), closestTkidx) / tsoaGPU.view()[closestTkidx].pt()));
hetadiffMatched_->Fill(etaCPU - tsoaGPU.view()[closestTkidx].eta());
hphidiffMatched_->Fill(reco::deltaPhi(etaCPU, helper::phi(tsoaGPU.view(), closestTkidx)));
Copy link
Contributor

Choose a reason for hiding this comment

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

Copy link
Contributor

Choose a reason for hiding this comment

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

Definetely!

hpt_->Fill(tsoaCPU.view()[it].pt(), tsoaGPU.view()[closestTkidx].pt());
hptLogLog_->Fill(tsoaCPU.view()[it].pt(), tsoaGPU.view()[closestTkidx].pt());
heta_->Fill(etaCPU, tsoaGPU.view()[closestTkidx].eta());
hphi_->Fill(etaCPU, helper::phi(tsoaGPU.view(), closestTkidx));
Copy link
Contributor

Choose a reason for hiding this comment

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

Copy link
Contributor

Choose a reason for hiding this comment

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

Definetely (x2)!

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

Successfully merging this pull request may close these issues.

None yet