Skip to content

Update to new ONNXRuntime api#41118

Merged
cmsbuild merged 6 commits intocms-sw:masterfrom
iarspider-cmssw:onnxruntime-new-api
Apr 10, 2023
Merged

Update to new ONNXRuntime api#41118
cmsbuild merged 6 commits intocms-sw:masterfrom
iarspider-cmssw:onnxruntime-new-api

Conversation

@iarspider
Copy link
Contributor

PR description:

Companion PR for cms-sw/cmsdist#8397

PR validation:

Bot tests

@iarspider
Copy link
Contributor Author

please test with cms-sw/cmsdist#8397

@cmsbuild
Copy link
Contributor

-code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-41118/34755

ERROR: Build errors found during clang-tidy run.

PhysicsTools/ONNXRuntime/src/ONNXRuntime.cc:42:40: error: no member named 'GetInputNameAllocated' in 'Ort::Session' [clang-diagnostic-error]
      std::string input_name(session_->GetInputNameAllocated(i, allocator));
                                       ^
PhysicsTools/ONNXRuntime/src/ONNXRuntime.cc:60:41: error: no member named 'GetOutputNameAllocated' in 'Ort::Session' [clang-diagnostic-error]
      std::string output_name(session_->GetOutputNameAllocated(i, allocator));
                                        ^
Suppressed 356 warnings (355 in non-user code, 1 with check filters).
--
gmake: *** [config/SCRAM/GMake/Makefile.coderules:129: code-checks] Error 2
gmake: *** [There are compilation/build errors. Please see the detail log above.] Error 2

@cmsbuild
Copy link
Contributor

-code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-41118/34756

ERROR: Build errors found during clang-tidy run.

PhysicsTools/ONNXRuntime/src/ONNXRuntime.cc:42:40: error: no member named 'GetInputNameAllocated' in 'Ort::Session' [clang-diagnostic-error]
      std::string input_name(session_->GetInputNameAllocated(i, allocator).get());
                                       ^
PhysicsTools/ONNXRuntime/src/ONNXRuntime.cc:60:41: error: no member named 'GetOutputNameAllocated' in 'Ort::Session' [clang-diagnostic-error]
      std::string output_name(session_->GetOutputNameAllocated(i, allocator).get());
                                        ^
Suppressed 356 warnings (355 in non-user code, 1 with check filters).
--
gmake: *** [config/SCRAM/GMake/Makefile.coderules:129: code-checks] Error 2
gmake: *** [There are compilation/build errors. Please see the detail log above.] Error 2

@cmsbuild
Copy link
Contributor

-code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-41118/34802

ERROR: Build errors found during clang-tidy run.

PhysicsTools/ONNXRuntime/src/ONNXRuntime.cc:42:40: error: no member named 'GetInputNameAllocated' in 'Ort::Session' [clang-diagnostic-error]
      std::string input_name(session_->GetInputNameAllocated(i, allocator).get());
                                       ^
PhysicsTools/ONNXRuntime/src/ONNXRuntime.cc:60:41: error: no member named 'GetOutputNameAllocated' in 'Ort::Session' [clang-diagnostic-error]
      std::string output_name(session_->GetOutputNameAllocated(i, allocator).get());
                                        ^
Suppressed 356 warnings (355 in non-user code, 1 with check filters).
--
DQM/EcalMonitorClient/src/MLClient.cc:167:37: error: no member named 'GetInputNameAllocated' in 'Ort::Session' [clang-diagnostic-error]
    const char* inputName = session.GetInputNameAllocated(0, allocator).get();
                                    ^
DQM/EcalMonitorClient/src/MLClient.cc:174:38: error: no member named 'GetOutputNameAllocated' in 'Ort::Session' [clang-diagnostic-error]
    const char* outputName = session.GetOutputNameAllocated(0, allocator).get();
                                     ^
Suppressed 1367 warnings (1366 in non-user code, 1 with check filters).
--
gmake: *** [config/SCRAM/GMake/Makefile.coderules:129: code-checks] Error 2
gmake: *** [There are compilation/build errors. Please see the detail log above.] Error 2

@cmsbuild
Copy link
Contributor

cmsbuild commented Apr 3, 2023

+code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-41118/34997

@cmsbuild
Copy link
Contributor

cmsbuild commented Apr 3, 2023

A new Pull Request was created by @iarspider for master.

It involves the following packages:

  • DQM/EcalMonitorClient (dqm)
  • PhysicsTools/ONNXRuntime (reconstruction)

@micsucmed, @emanueleusai, @clacaputo, @cmsbuild, @syuvivida, @pmandrik, @mandrenguyen, @rvenditti can you please review it and eventually sign? Thanks.
@rchatter, @AnnikaStein, @riga, @argiro, @thomreis, @wang0jin 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

@smuzaffar
Copy link
Contributor

smuzaffar commented Apr 5, 2023

test parameters:

@smuzaffar
Copy link
Contributor

please test

@cmsbuild
Copy link
Contributor

cmsbuild commented Apr 6, 2023

+1

Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-6f04c2/31828/summary.html
COMMIT: 8f038cc
CMSSW: CMSSW_13_1_X_2023-04-04-2300/el8_amd64_gcc11
Additional Tests: THREADING,PROFILING,GPU
User test area: For local testing, you can use /cvmfs/cms-ci.cern.ch/week1/cms-sw/cmssw/41118/31828/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-6f04c2/31828/git-recent-commits.json
https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-6f04c2/31828/git-merge-result

Comparison Summary

Summary:

  • You potentially added 8 lines to the logs
  • Reco comparison results: 6 differences found in the comparisons
  • DQMHistoTests: Total files compared: 47
  • DQMHistoTests: Total histograms compared: 3365163
  • DQMHistoTests: Total failures: 6
  • DQMHistoTests: Total nulls: 0
  • DQMHistoTests: Total successes: 3365135
  • DQMHistoTests: Total skipped: 22
  • DQMHistoTests: Total Missing objects: 0
  • DQMHistoSizes: Histogram memory added: 0.0 KiB( 46 files compared)
  • Checked 202 log files, 155 edm output root files, 47 DQM output files
  • TriggerResults: no differences found

GPU Comparison Summary

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: 19862
  • DQMHistoTests: Total failures: 9
  • DQMHistoTests: Total nulls: 0
  • DQMHistoTests: Total successes: 19853
  • 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

@mandrenguyen
Copy link
Contributor

+reconstruction

@smuzaffar
Copy link
Contributor

@cms-sw/dqm-l2 can you please review this? This change is needed for onnxruntime 1.14.1

@cms-sw/orp-l2 , this should be merged along with cms-sw/cmsdist#8397

@emanueleusai
Copy link
Member

+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)

@rappoccio
Copy link
Contributor

+1

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.

6 participants