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

Update SonicTriton client to Triton version 2.3 #31715

Merged
merged 5 commits into from Oct 14, 2020

Conversation

kpedro88
Copy link
Contributor

@kpedro88 kpedro88 commented Oct 8, 2020

PR description:

Triton version 2 redesigns the client API. Most of the redesign is just reorganization and renaming. Important Triton changes:

  1. client-side timeouts now supported
  2. https/ssl now supported (not introduced here, support will come in a followup)
  3. batch size handling changed: models that support triton-style batching have the specified shape modified so that the first entry is the batch size. The handling of shapes in SonicTriton is modified so that the user does not have to worry about this, and can continue to consider batch size and input shape separately, which is conceptually easier.

SonicTriton interface changes:

  1. modelVersion = cms.string() (was cms.int32())
  2. setShape() accessors to change one dimension or all dimensions (rather than non-const ref shape() accessor)
  3. unneeded dims() accessor removed
  4. some other accessors made private (only used by TritonClient)

The cvmfs server image for tests is updated accordingly (see lgray/triton-torchgeo-gat-example#1).

The corresponding external update is cms-sw/cmsdist#6293.

PR validation:

Ran examples in HeterogeneousCore/SonicTriton/test.

@cmsbuild
Copy link
Contributor

cmsbuild commented Oct 8, 2020

The code-checks are being triggered in jenkins.

@cmsbuild
Copy link
Contributor

cmsbuild commented Oct 8, 2020

-code-checks

ERROR: Build errors found during clang-tidy run.

HeterogeneousCore/SonicTriton/interface/triton_utils.h:11:10: error: 'grpc_client.h' file not found [clang-diagnostic-error]
#include "grpc_client.h"
         ^
Suppressed 177 warnings (176 in non-user code, 1 with check filters).
--
HeterogeneousCore/SonicTriton/interface/TritonData.h:15:10: error: 'grpc_client.h' file not found [clang-diagnostic-error]
#include "grpc_client.h"
         ^
Suppressed 518 warnings (517 in non-user code, 1 with check filters).
--
HeterogeneousCore/SonicTriton/interface/TritonData.h:15:10: error: 'grpc_client.h' file not found [clang-diagnostic-error]
#include "grpc_client.h"
         ^
Suppressed 489 warnings (488 in non-user code, 1 with check filters).
--
gmake: *** [config/SCRAM/GMake/Makefile.coderules:128: code-checks] Error 2
gmake: *** [There are compilation/build errors. Please see the detail log above.] Error 2

@cmsbuild
Copy link
Contributor

cmsbuild commented Oct 8, 2020

The tests are being triggered in jenkins.
Tested with other pull request(s) cms-sw/cmsdist#6293

@kpedro88
Copy link
Contributor Author

kpedro88 commented Oct 8, 2020

@smuzaffar @mrodozov what is the right approach to make the code checks work with new headers from an external update?

@cmsbuild
Copy link
Contributor

cmsbuild commented Oct 8, 2020

-1

Tested at: feb3396

  • Build:

I found compilation error when building:


-- Configuring incomplete, errors occurred!
See also "/data/cmsbld/jenkins/workspace/ib-run-pr-tests/testBuildDir/BUILD/slc7_amd64_gcc820/external/triton-inference-server/2.3.0-db7bb5/build/CMakeFiles/CMakeOutput.log".
See also "/data/cmsbld/jenkins/workspace/ib-run-pr-tests/testBuildDir/BUILD/slc7_amd64_gcc820/external/triton-inference-server/2.3.0-db7bb5/build/CMakeFiles/CMakeError.log".
error: Bad exit status from /data/cmsbld/jenkins/workspace/ib-run-pr-tests/testBuildDir/tmp/rpm-tmp.03s2e6 (%build)


RPM build errors:
Bad exit status from /data/cmsbld/jenkins/workspace/ib-run-pr-tests/testBuildDir/tmp/rpm-tmp.03s2e6 (%build)



You can see the results of the tests here:
https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-db7bb5/9813/summary.html

@cmsbuild
Copy link
Contributor

cmsbuild commented Oct 8, 2020

The tests are being triggered in jenkins.
Tested with other pull request(s) cms-sw/cmsdist#6293

@cmsbuild
Copy link
Contributor

cmsbuild commented Oct 8, 2020

+1
Tested at: feb3396
https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-db7bb5/9819/summary.html
CMSSW: CMSSW_11_2_X_2020-10-08-1100
SCRAM_ARCH: slc7_amd64_gcc820

@cmsbuild
Copy link
Contributor

cmsbuild commented Oct 8, 2020

Comparison job queued.

@cmsbuild
Copy link
Contributor

The code-checks are being triggered in jenkins.

@cmsbuild
Copy link
Contributor

-code-checks

ERROR: Build errors found during clang-tidy run.

HeterogeneousCore/SonicTriton/interface/triton_utils.h:11:10: error: 'grpc_client.h' file not found [clang-diagnostic-error]
#include "grpc_client.h"
         ^
Suppressed 177 warnings (176 in non-user code, 1 with check filters).
--
HeterogeneousCore/SonicTriton/interface/TritonData.h:15:10: error: 'grpc_client.h' file not found [clang-diagnostic-error]
#include "grpc_client.h"
         ^
Suppressed 518 warnings (517 in non-user code, 1 with check filters).
--
HeterogeneousCore/SonicTriton/interface/TritonData.h:15:10: error: 'grpc_client.h' file not found [clang-diagnostic-error]
#include "grpc_client.h"
         ^
Suppressed 489 warnings (488 in non-user code, 1 with check filters).
--
gmake: *** [config/SCRAM/GMake/Makefile.coderules:128: code-checks] Error 2
gmake: *** [There are compilation/build errors. Please see the detail log above.] Error 2

@kpedro88
Copy link
Contributor Author

@makortel thanks for the suggestion, my latest commit also includes code-checks and code-format

@cmsbuild
Copy link
Contributor

cmsbuild commented Oct 13, 2020

The tests are being triggered in jenkins.
Tested with other pull request(s) cms-sw/cmsdist#6297

@cmsbuild
Copy link
Contributor

+1
Tested at: 96a3519
https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-452733/9923/summary.html
CMSSW: CMSSW_11_2_X_2020-10-13-1100
SCRAM_ARCH: slc7_amd64_gcc820

@cmsbuild
Copy link
Contributor

Comparison job queued.

@cmsbuild
Copy link
Contributor

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

Comparison Summary:

  • No significant changes to the logs found
  • Reco comparison results: 0 differences found in the comparisons
  • DQMHistoTests: Total files compared: 35
  • DQMHistoTests: Total histograms compared: 2543692
  • DQMHistoTests: Total failures: 3
  • DQMHistoTests: Total nulls: 0
  • DQMHistoTests: Total successes: 2543667
  • DQMHistoTests: Total skipped: 22
  • DQMHistoTests: Total Missing objects: 0
  • DQMHistoSizes: Histogram memory added: 0.0 KiB( 34 files compared)
  • Checked 149 log files, 22 edm output root files, 35 DQM output files

@makortel
Copy link
Contributor

+1

@kpedro88
Copy link
Contributor Author

@silviodonato @qliphy this will need to be force-merged (known problem: bot can't run code checks if CMSSW code uses new headers from an external PR)

please make sure to merge this together with cms-sw/cmsdist#6297

thanks

@silviodonato
Copy link
Contributor

merge

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

4 participants