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

Simplify SonicCore and redesign SonicTriton #30850

Merged
merged 5 commits into from Jul 28, 2020

Conversation

kpedro88
Copy link
Contributor

@kpedro88 kpedro88 commented Jul 21, 2020

PR description:

  • handle different modes in SonicCore w/ helper SonicDispatcher to reduce templating
  • SonicClientBase now handles mode and allowedTries parameters directly (allowedTries can still be disabled)
  • introduce TritonData class to handle more Triton features: multiple named inputs/outputs, different input/output types, and variable dimensions (input and output classes for TritonClient are now maps of TritonData objects)
  • added test setup for a PyTorch graph network (which requires support for the features listed above) using artifacts generated by @lgray
  • updated documentation, and added documentation for SonicTriton usage
  • modified SonicTriton LogInfo time messages slightly to account for above changes

PR validation:

Ran TritonImageProducer and TritonGraphProducer many many times (and SonicCore unit tests).

attn: @violatingcp @drankincms @nhanvtran @jeffkrupa @jmduarte @lgray @jpata

@cmsbuild
Copy link
Contributor

The code-checks are being triggered in jenkins.

@cmsbuild
Copy link
Contributor

-code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-30850/17200

  • This PR adds an extra 84KB to repository

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

@cmsbuild
Copy link
Contributor

The code-checks are being triggered in jenkins.

@cmsbuild
Copy link
Contributor

+code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-30850/17202

  • This PR adds an extra 92KB to repository

@cmsbuild
Copy link
Contributor

A new Pull Request was created by @kpedro88 (Kevin Pedro) for master.

It involves the following packages:

HeterogeneousCore/SonicCore
HeterogeneousCore/SonicTriton

@makortel, @cmsbuild, @fwyzard can you please review it and eventually sign? Thanks.
@makortel, @rovere this is something you requested to watch as well.
@silviodonato, @dpiparo you are the release manager for this.

cms-bot commands are listed here

@kpedro88
Copy link
Contributor Author

please test

@cmsbuild
Copy link
Contributor

The tests are being triggered in jenkins.

@makortel
Copy link
Contributor

@cmsbuild, please test

@fwyzard
Copy link
Contributor

fwyzard commented Jul 21, 2020

Could you squash the commit history ?
It doesn't seem particularly useful to keep it around after the merge.

@cmsbuild
Copy link
Contributor

The code-checks are being triggered in jenkins.

@cmsbuild
Copy link
Contributor

+code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-30850/17339

  • This PR adds an extra 40KB to repository

  • Found files with invalid states:

    • HeterogeneousCore/SonicTriton/interface/TritonUtils.h:
    • HeterogeneousCore/SonicTriton/src/TritonUtils.cc:

@cmsbuild
Copy link
Contributor

Pull request #30850 was updated. @makortel, @cmsbuild, @fwyzard can you please check and sign again.

@kpedro88
Copy link
Contributor Author

please test

@cmsbuild
Copy link
Contributor

cmsbuild commented Jul 27, 2020

The tests are being triggered in jenkins.

void SonicClientBase::fillBasePSetDescription(edm::ParameterSetDescription& desc, bool allowRetry) {
desc.add<std::string>("mode");
if (allowRetry)
desc.addUntracked<unsigned>("allowedTries", 0);
Copy link
Contributor

Choose a reason for hiding this comment

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

Mhm, sorry, this was meant for the ifValue above :-)

int64_t nOutput = sizeShape();
dataOut.resize(nOutput * batchSize_, 0);
for (unsigned i0 = 0; i0 < batchSize_; ++i0) {
const uint8_t* r0;
Copy link
Contributor

Choose a reason for hiding this comment

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

OK.

@cmsbuild
Copy link
Contributor

+1
Tested at: 27b8006
https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-f08a41/8324/summary.html
CMSSW: CMSSW_11_2_X_2020-07-27-1100
SCRAM_ARCH: slc7_amd64_gcc820

@cmsbuild
Copy link
Contributor

Comparison job queued.

@fwyzard
Copy link
Contributor

fwyzard commented Jul 27, 2020

+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. @silviodonato, @dpiparo, @qliphy (and backports should be raised in the release meeting by the corresponding L2)

@cmsbuild
Copy link
Contributor

Comparison is ready
https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-f08a41/8324/summary.html

Comparison Summary:

  • No significant changes to the logs found
  • Reco comparison results: 4 differences found in the comparisons
  • DQMHistoTests: Total files compared: 34
  • DQMHistoTests: Total histograms compared: 2525444
  • DQMHistoTests: Total failures: 7
  • DQMHistoTests: Total nulls: 0
  • DQMHistoTests: Total successes: 2525390
  • DQMHistoTests: Total skipped: 47
  • DQMHistoTests: Total Missing objects: 0
  • DQMHistoSizes: Histogram memory added: 0.0 KiB( 33 files compared)
  • Checked 144 log files, 17 edm output root files, 34 DQM output files

@silviodonato
Copy link
Contributor

+1

@cmsbuild cmsbuild merged commit 01319e4 into cms-sw:master Jul 28, 2020
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

5 participants