Skip to content

Adding P2 L1T NNVtx#10605

Open
BenjaminRS wants to merge 4 commits into
cms-sw:IB/CMSSW_20_1_X/masterfrom
BenjaminRS:AddNNVtx_170X
Open

Adding P2 L1T NNVtx#10605
BenjaminRS wants to merge 4 commits into
cms-sw:IB/CMSSW_20_1_X/masterfrom
BenjaminRS:AddNNVtx_170X

Conversation

@BenjaminRS

Copy link
Copy Markdown
Contributor

Adding into cmsdist the spec file for the Phase-2 Level-1 Trigger NNVtx Vertex Reconstruction.
The hls4ml files are kept here: https://github.com/cms-hls4ml/NNVtx
The gitlab page is here: https://gitlab.cern.ch/ml_l1/l1-vertex-finding

@cmsbuild

cmsbuild commented Jun 4, 2026

Copy link
Copy Markdown
Contributor

A new Pull Request was created by @BenjaminRS for branch IB/CMSSW_17_0_X/master.

@akritkbehera, @cmsbuild, @iarspider, @raoatifshad, @smuzaffar can you please review it and eventually sign? Thanks.
@ftenchini, @mandrenguyen, @sextonkennedy you are the release manager for this.
cms-bot commands are listed here

@cmsbuild

cmsbuild commented Jun 4, 2026

Copy link
Copy Markdown
Contributor

cms-bot internal usage

@BenjaminRS

Copy link
Copy Markdown
Contributor Author

please test with cms-sw/cmssw#51008

@cmsbuild

cmsbuild commented Jun 4, 2026

Copy link
Copy Markdown
Contributor

-1

Failed Tests: RelVals
Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-ebd0ad/53688/summary.html
COMMIT: 4b9ec45
CMSSW: CMSSW_17_0_X_2026-06-04-1100/el8_amd64_gcc13
User test area: For local testing, you can use /cvmfs/cms-ci.cern.ch/week0/cms-sw/cmsdist/10605/53688/install.sh to create a dev area with all the needed externals and cmssw changes.

Failed RelVals

----- Begin Fatal Exception 05-Jun-2026 00:02:20 CEST-----------------------
An exception of category 'StdException' occurred while
   [0] Constructing the EventProcessor
   [1] Constructing module: class=VertexProducer label='l1tVertexFinder'
Exception Message:
A std::exception was thrown.
hls4ml emulator model library dlopen failure!
----- End Fatal Exception -------------------------------------------------
----- Begin Fatal Exception 04-Jun-2026 23:56:29 CEST-----------------------
An exception of category 'StdException' occurred while
   [0] Constructing the EventProcessor
   [1] Constructing module: class=VertexProducer label='l1tVertexFinder'
Exception Message:
A std::exception was thrown.
hls4ml emulator model library dlopen failure!
----- End Fatal Exception -------------------------------------------------
----- Begin Fatal Exception 04-Jun-2026 23:56:49 CEST-----------------------
An exception of category 'StdException' occurred while
   [0] Constructing the EventProcessor
   [1] Constructing module: class=VertexProducer label='l1tVertexFinder'
Exception Message:
A std::exception was thrown.
hls4ml emulator model library dlopen failure!
----- End Fatal Exception -------------------------------------------------
Expand to see more relval errors ...

@smuzaffar smuzaffar changed the base branch from IB/CMSSW_17_0_X/master to IB/CMSSW_20_0_X/master June 5, 2026 16:47
@smuzaffar

Copy link
Copy Markdown
Contributor

@BenjaminRS , you also need to add scram tool file (cmsdist/scram-tools.file/tools/NNVtx/nnvtx.xml) for this new external ( see https://github.com/cms-sw/cmsdist/blob/IB/CMSSW_20_0_X/master/scram-tools.file/tools/CICADA/cicada.xml or https://github.com/cms-sw/cmsdist/blob/IB/CMSSW_20_0_X/master/scram-tools.file/tools/AXOL1TL/axol1tl.xml as exmaples). Also you need to add this new external as dependency of cmssw in https://github.com/cms-sw/cmsdist/blob/IB/CMSSW_20_0_X/master/cmssw-tools.spec

@cmsbuild

cmsbuild commented Jun 9, 2026

Copy link
Copy Markdown
Contributor

Pull request #10605 was updated.

@BenjaminRS

Copy link
Copy Markdown
Contributor Author

please test with cms-sw/cmssw#51008

@BenjaminRS

Copy link
Copy Markdown
Contributor Author

Hi @smuzaffar -- thank you for the tips. I set the tool revision="2" as seems to be done in all other .xml files I checked. But let me know if this should be 1 as it is the first time we include this hls4ml. Thanks

@cmsbuild

cmsbuild commented Jun 9, 2026

Copy link
Copy Markdown
Contributor

-1

Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-ebd0ad/53761/summary.html
COMMIT: 6bbf5cb
CMSSW: CMSSW_20_0_X_2026-06-08-2300/el8_amd64_gcc13
User test area: For local testing, you can use /cvmfs/cms-ci.cern.ch/week1/cms-sw/cmsdist/10605/53761/install.sh to create a dev area with all the needed externals and cmssw changes.

Failed External Build

I found compilation warning when building: See details on the summary page.

@smuzaffar

Copy link
Copy Markdown
Contributor

@BenjaminRS , ideally this should have the revision=1 as this is new file ( and then in future increment the revision when tool definition changes). But for revision 2 does not hurt (it is just an indication of the revision of the tool definition).

By the way, looks like https://github.com/cms-hls4ml/NNVtx does not contin tag v1.0.0.tar.gz. build fails to download the sources

@cmsbuild

cmsbuild commented Jun 9, 2026

Copy link
Copy Markdown
Contributor

-1

Failed Tests: RelVals
Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-ebd0ad/53764/summary.html
COMMIT: 026735d
CMSSW: CMSSW_20_0_X_2026-06-08-2300/el8_amd64_gcc13
User test area: For local testing, you can use /cvmfs/cms-ci.cern.ch/week1/cms-sw/cmsdist/10605/53764/install.sh to create a dev area with all the needed externals and cmssw changes.

Failed RelVals

----- Begin Fatal Exception 09-Jun-2026 10:56:45 CEST-----------------------
An exception of category 'StdException' occurred while
   [0] Constructing the EventProcessor
   [1] Constructing module: class=VertexProducer label='l1tVertexFinder'
Exception Message:
A std::exception was thrown.
hls4ml emulator model library dlopen failure!
----- End Fatal Exception -------------------------------------------------
----- Begin Fatal Exception 09-Jun-2026 10:54:12 CEST-----------------------
An exception of category 'StdException' occurred while
   [0] Constructing the EventProcessor
   [1] Constructing module: class=VertexProducer label='l1tVertexFinder'
Exception Message:
A std::exception was thrown.
hls4ml emulator model library dlopen failure!
----- End Fatal Exception -------------------------------------------------
----- Begin Fatal Exception 09-Jun-2026 10:56:05 CEST-----------------------
An exception of category 'StdException' occurred while
   [0] Constructing the EventProcessor
   [1] Constructing module: class=VertexProducer label='l1tVertexFinder'
Exception Message:
A std::exception was thrown.
hls4ml emulator model library dlopen failure!
----- End Fatal Exception -------------------------------------------------
Expand to see more relval errors ...

@smuzaffar

Copy link
Copy Markdown
Contributor

please test with cms-sw/cmssw#51008

20.1.X IB is available now

@cmsbuild

cmsbuild commented Jun 9, 2026

Copy link
Copy Markdown
Contributor

-1

Failed Tests: RelVals
Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-ebd0ad/53785/summary.html
COMMIT: 026735d
CMSSW: CMSSW_20_1_X_2026-06-09-1100/el9_amd64_gcc13
User test area: For local testing, you can use /cvmfs/cms-ci.cern.ch/week1/cms-sw/cmsdist/10605/53785/install.sh to create a dev area with all the needed externals and cmssw changes.

The following merge commits were also included on top of IB + this PR after doing git cms-merge-topic:

You can see more details here:
https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-ebd0ad/53785/git-recent-commits.json
https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-ebd0ad/53785/git-merge-result

Failed RelVals

----- Begin Fatal Exception 09-Jun-2026 19:18:21 CEST-----------------------
An exception of category 'StdException' occurred while
   [0] Constructing the EventProcessor
   [1] Constructing module: class=VertexProducer label='l1tVertexFinder'
Exception Message:
A std::exception was thrown.
hls4ml emulator model library dlopen failure!
----- End Fatal Exception -------------------------------------------------
----- Begin Fatal Exception 09-Jun-2026 19:18:22 CEST-----------------------
An exception of category 'StdException' occurred while
   [0] Constructing the EventProcessor
   [1] Constructing module: class=VertexProducer label='l1tVertexFinder'
Exception Message:
A std::exception was thrown.
hls4ml emulator model library dlopen failure!
----- End Fatal Exception -------------------------------------------------
----- Begin Fatal Exception 09-Jun-2026 19:20:06 CEST-----------------------
An exception of category 'StdException' occurred while
   [0] Constructing the EventProcessor
   [1] Constructing module: class=VertexProducer label='l1tVertexFinder'
Exception Message:
A std::exception was thrown.
hls4ml emulator model library dlopen failure!
----- End Fatal Exception -------------------------------------------------
Expand to see more relval errors ...

@BenjaminRS

Copy link
Copy Markdown
Contributor Author

please test with cms-sw/cmssw#51008

  • There was a bug in the make file in the hls4ml repo. Fixed here

@cmsbuild

Copy link
Copy Markdown
Contributor

-1

Failed Tests: RelVals
Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-ebd0ad/53810/summary.html
COMMIT: 026735d
CMSSW: CMSSW_20_1_X_2026-06-09-2300/el9_amd64_gcc13
User test area: For local testing, you can use /cvmfs/cms-ci.cern.ch/week1/cms-sw/cmsdist/10605/53810/install.sh to create a dev area with all the needed externals and cmssw changes.

Failed RelVals

----- Begin Fatal Exception 10-Jun-2026 10:21:57 CEST-----------------------
An exception of category 'StdException' occurred while
   [0] Constructing the EventProcessor
   [1] Constructing module: class=VertexProducer label='l1tVertexFinder'
Exception Message:
A std::exception was thrown.
hls4ml emulator model library dlopen failure!
----- End Fatal Exception -------------------------------------------------
----- Begin Fatal Exception 10-Jun-2026 10:22:13 CEST-----------------------
An exception of category 'StdException' occurred while
   [0] Constructing the EventProcessor
   [1] Constructing module: class=VertexProducer label='l1tVertexFinder'
Exception Message:
A std::exception was thrown.
hls4ml emulator model library dlopen failure!
----- End Fatal Exception -------------------------------------------------
----- Begin Fatal Exception 10-Jun-2026 10:24:11 CEST-----------------------
An exception of category 'StdException' occurred while
   [0] Constructing the EventProcessor
   [1] Constructing module: class=VertexProducer label='l1tVertexFinder'
Exception Message:
A std::exception was thrown.
hls4ml emulator model library dlopen failure!
----- End Fatal Exception -------------------------------------------------
Expand to see more relval errors ...

@smuzaffar

Copy link
Copy Markdown
Contributor

@BenjaminRS , I only see L1TNNVtx_Pattern_Model_v0.so in the NNVtx/lib directory (/cvmfs/cms-ci.cern.ch/week1/PR_ba439238/el9_amd64_gcc13/external/NNVtx/1.0.0-84320ba4a694afd596fe782a45515293/lib64) but looks like cmssw PR is also looking for L1TNNVtx_Weight_Model_v0 ?

@smuzaffar

smuzaffar commented Jun 10, 2026

Copy link
Copy Markdown
Contributor

@BenjaminRS , I see that you have fixed the build system cms-hls4ml/NNVtx#2 but we need a new tag of NNVtx with your fix and update NNVtx.spec here to use the new tag

@BenjaminRS

Copy link
Copy Markdown
Contributor Author

Hi @smuzaffar - this is what this morning's PR fixed: cms-hls4ml/NNVtx#2
When I tested locally I saw the 3 files being created under the lib64 folder

@cmsbuild

Copy link
Copy Markdown
Contributor

Pull request #10605 was updated.

@BenjaminRS

Copy link
Copy Markdown
Contributor Author

please test with cms-sw/cmssw#51008

@cmsbuild

Copy link
Copy Markdown
Contributor

-1

Failed Tests: RelVals
Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-ebd0ad/53820/summary.html
COMMIT: 902ed82
CMSSW: CMSSW_20_1_X_2026-06-09-2300/el9_amd64_gcc13
User test area: For local testing, you can use /cvmfs/cms-ci.cern.ch/week1/cms-sw/cmsdist/10605/53820/install.sh to create a dev area with all the needed externals and cmssw changes.

The following merge commits were also included on top of IB + this PR after doing git cms-merge-topic:

You can see more details here:
https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-ebd0ad/53820/git-recent-commits.json
https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-ebd0ad/53820/git-merge-result

Failed RelVals

----- Begin Fatal Exception 10-Jun-2026 13:27:23 CEST-----------------------
An exception of category 'ProductNotFound' occurred while
   [0] Processing  Event run: 1 lumi: 1 event: 1 stream: 0
   [1] Running path 'Phase2L1GTProducer'
   [2] Prefetching for module L1GTProducer/'l1tGTProducer'
   [3] Prefetching for module L1TrackJetEmulatorProducer/'l1tTrackJetsExtendedEmulation'
   [4] Calling method for module L1TrackVertexAssociationProducer/'l1tTrackVertexAssociationProducerExtendedForJets'
Exception Message:
Principal::getByToken: Found zero products matching all criteria
Looking for type: std::vector<l1t::io_v1::Vertex>
Looking for module label: l1tVertexFinder
Looking for productInstanceName: L1Vertices

   Additional Info:
      [a] If you wish to continue processing events after a ProductNotFound exception,
add "TryToContinue = cms.untracked.vstring('ProductNotFound')" to the "options" PSet in the configuration.

----- End Fatal Exception -------------------------------------------------
----- Begin Fatal Exception 10-Jun-2026 13:27:25 CEST-----------------------
An exception of category 'ProductNotFound' occurred while
   [0] Processing  Event run: 1 lumi: 1 event: 1 stream: 0
   [1] Running path 'Phase2L1GTProducer'
   [2] Prefetching for module L1GTProducer/'l1tGTProducer'
   [3] Prefetching for module L1TrackJetEmulatorProducer/'l1tTrackJetsExtendedEmulation'
   [4] Calling method for module L1TrackVertexAssociationProducer/'l1tTrackVertexAssociationProducerExtendedForJets'
Exception Message:
Principal::getByToken: Found zero products matching all criteria
Looking for type: std::vector<l1t::io_v1::Vertex>
Looking for module label: l1tVertexFinder
Looking for productInstanceName: L1Vertices

   Additional Info:
      [a] If you wish to continue processing events after a ProductNotFound exception,
add "TryToContinue = cms.untracked.vstring('ProductNotFound')" to the "options" PSet in the configuration.

----- End Fatal Exception -------------------------------------------------
----- Begin Fatal Exception 10-Jun-2026 13:29:14 CEST-----------------------
An exception of category 'ProductNotFound' occurred while
   [0] Processing  Event run: 1 lumi: 1 event: 1 stream: 0
   [1] Running path 'Phase2L1GTProducer'
   [2] Prefetching for module L1GTProducer/'l1tGTProducer'
   [3] Prefetching for module L1TrackJetEmulatorProducer/'l1tTrackJetsExtendedEmulation'
   [4] Calling method for module L1TrackVertexAssociationProducer/'l1tTrackVertexAssociationProducerExtendedForJets'
Exception Message:
Principal::getByToken: Found zero products matching all criteria
Looking for type: std::vector<l1t::io_v1::Vertex>
Looking for module label: l1tVertexFinder
Looking for productInstanceName: L1Vertices

   Additional Info:
      [a] If you wish to continue processing events after a ProductNotFound exception,
add "TryToContinue = cms.untracked.vstring('ProductNotFound')" to the "options" PSet in the configuration.

----- End Fatal Exception -------------------------------------------------
Expand to see more relval errors ...

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.

3 participants