Skip to content
Snippets Groups Projects

Infrastructure for Machine Learning inference with ONNX Runtime

Merged Xiangyang Ju requested to merge xju/athena:mr_onnx_onetool into main

This MR regroups the existing OnnxRuntime packages into an Onnx-specific package located at Control/AthOnnx. Breakdown of the changes.

  • The new Onnx package implementation can be found in commit 61a8f24f. Accordingly, the ONNX example and GNN tracking are updated in the commit c3bf27d9.

  • A small change in Control/AthenaConfiguration/python/AllConfigFlags.py to include the ONNX flags so that users can easily configure Onnx backends: here

  • Remove the two packages that are no longer needed: Control/AthOnnxruntimeService and Control/AthOnnxruntimeUtils, see 0ac0c9a2. Because a couple of other packages are using the Control/AthOnnxruntimeService, keep it for now and update the Onnx inference in another MR.

Adding @akraszna @dbakshig

Edited by Xiangyang Ju

Merge request reports

Pipeline #6857396 passed

Pipeline passed for 08aaed04 on xju:mr_onnx_onetool

Approval is optional

Merged by Tadej NovakTadej Novak 1 year ago (Feb 9, 2024 8:48am UTC)

Merge details

  • Changes merged into main with b32b15bd (commits were squashed).
  • Did not delete the source branch.

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Tadej Novak
  • Tadej Novak
  • Tadej Novak
  • Tadej Novak
  • Tadej Novak
  • Tadej Novak
  • Tadej Novak
  • Tadej Novak
  • Tadej Novak
  • Tadej Novak
  • Tadej Novak
  • Tadej Novak
  • Tadej Novak
  • Tadej Novak
  • :pencil: :scissors: CI integration tests for projects Athena,AnalysisBase,AthAnalysis are cancelled because of compilation error(s)

  • :x: CI Result FAILURE (hash 0ac0c9a2)

    Athena AthSimulation AthGeneration AnalysisBase AthAnalysis
    externals :white_check_mark: :white_check_mark: :white_check_mark: :white_check_mark: :white_check_mark:
    cmake :white_check_mark: :white_check_mark: :white_check_mark: :warning: :warning:
    make :o: :white_check_mark: :white_check_mark: :o: :o:
    tests :white_check_mark: :white_check_mark: :white_check_mark: :o: :white_check_mark:

    Full details available on this CI monitor view. Check the JIRA CI status board for known problems
    :o: Athena: number of compilation errors 6, warnings 1
    :white_check_mark: AthSimulation: number of compilation errors 0, warnings 0
    :white_check_mark: AthGeneration: number of compilation errors 0, warnings 0
    :o: AnalysisBase: number of compilation errors 1, warnings 0
    :o: AthAnalysis: number of compilation errors 1, warnings 0
    :pencil: For experts only: Jenkins output [CI-MERGE-REQUEST-EL9 3128]

  • Xiangyang Ju added 1 commit

    added 1 commit

    Compare with previous version

  • This merge request affects 10 packages:

    • Control/AthOnnx/AthOnnxComps
    • Control/AthOnnx/AthOnnxConfig
    • Control/AthOnnx/AthOnnxInterfaces
    • Control/AthOnnx/AthOnnxUtils
    • Control/AthOnnxruntimeService
    • Control/AthOnnxruntimeUtils
    • Control/AthenaConfiguration
    • Control/AthenaExamples/AthExOnnxRuntime
    • InnerDetector/InDetGNNTracking
    • InnerDetector/InDetRecTools/InDetRecToolInterfaces

    Affected files list will not be printed in this case

    Adding @goetz ,@ssnyder ,@gavrilen ,@maszyman ,@rbianchi ,@sroe ,@gemmeren as watchers

  • Xiangyang Ju added 1 commit

    added 1 commit

    Compare with previous version

  • This merge request affects 10 packages:

    • Control/AthOnnx/AthOnnxComps
    • Control/AthOnnx/AthOnnxConfig
    • Control/AthOnnx/AthOnnxInterfaces
    • Control/AthOnnx/AthOnnxUtils
    • Control/AthOnnxruntimeService
    • Control/AthOnnxruntimeUtils
    • Control/AthenaConfiguration
    • Control/AthenaExamples/AthExOnnxRuntime
    • InnerDetector/InDetGNNTracking
    • InnerDetector/InDetRecTools/InDetRecToolInterfaces

    Affected files list will not be printed in this case

    Adding @gavrilen ,@rbianchi ,@gemmeren ,@ssnyder ,@goetz ,@sroe ,@maszyman as watchers

  • Xiangyang Ju resolved all threads

    resolved all threads

  • :pencil: :scissors: CI integration tests for projects Athena,AnalysisBase,AthAnalysis are cancelled because of compilation error(s)

  • :x: CI Result FAILURE (hash a6fbcebb)

    Athena AthSimulation AthGeneration AnalysisBase AthAnalysis
    externals :white_check_mark: :white_check_mark: :white_check_mark: :white_check_mark: :white_check_mark:
    cmake :white_check_mark: :white_check_mark: :white_check_mark: :warning: :warning:
    make :o: :white_check_mark: :white_check_mark: :o: :o:
    tests :white_check_mark: :white_check_mark: :white_check_mark: :o: :white_check_mark:

    Full details available on this CI monitor view. Check the JIRA CI status board for known problems
    :o: Athena: number of compilation errors 6, warnings 8
    :white_check_mark: AthSimulation: number of compilation errors 0, warnings 0
    :white_check_mark: AthGeneration: number of compilation errors 0, warnings 0
    :o: AnalysisBase: number of compilation errors 1, warnings 8
    :o: AthAnalysis: number of compilation errors 1, warnings 7
    :pencil: For experts only: Jenkins output [CI-MERGE-REQUEST-EL9 3135]

  • Xiangyang Ju added 1 commit

    added 1 commit

    • cc52c20c - Revert "remove redundant packages"

    Compare with previous version

  • :pencil: :scissors: CI integration tests for projects Athena,AnalysisBase,AthAnalysis are cancelled because of compilation error(s)

  • Xiangyang Ju changed the description

    changed the description

  • This merge request affects 8 packages:

    • Control/AthOnnx/AthOnnxComps
    • Control/AthOnnx/AthOnnxConfig
    • Control/AthOnnx/AthOnnxInterfaces
    • Control/AthOnnx/AthOnnxUtils
    • Control/AthenaConfiguration
    • Control/AthenaExamples/AthExOnnxRuntime
    • InnerDetector/InDetGNNTracking
    • InnerDetector/InDetRecTools/InDetRecToolInterfaces

    Affected files list will not be printed in this case

    Adding @sroe ,@gavrilen ,@gemmeren ,@ssnyder ,@goetz ,@maszyman ,@rbianchi as watchers

  • :x: CI Result FAILURE (hash d0928e2a)

    Athena AthSimulation AthGeneration AnalysisBase AthAnalysis
    externals :white_check_mark: :white_check_mark: :white_check_mark: :white_check_mark: :white_check_mark:
    cmake :white_check_mark: :white_check_mark: :white_check_mark: :warning: :warning:
    make :o: :white_check_mark: :white_check_mark: :o: :o:
    tests :white_check_mark: :white_check_mark: :white_check_mark: :o: :white_check_mark:

    Full details available on this CI monitor view. Check the JIRA CI status board for known problems
    :o: Athena: number of compilation errors 6, warnings 8
    :white_check_mark: AthSimulation: number of compilation errors 0, warnings 0
    :white_check_mark: AthGeneration: number of compilation errors 0, warnings 0
    :o: AnalysisBase: number of compilation errors 1, warnings 8
    :o: AthAnalysis: number of compilation errors 1, warnings 7
    :pencil: For experts only: Jenkins output [CI-MERGE-REQUEST-EL9 3136]

  • :white_check_mark: CI Result SUCCESS (hash cc52c20c)

    Athena AthSimulation AthGeneration AnalysisBase AthAnalysis
    externals :white_check_mark: :white_check_mark: :white_check_mark: :white_check_mark: :white_check_mark:
    cmake :white_check_mark: :white_check_mark: :white_check_mark: :white_check_mark: :white_check_mark:
    make :white_check_mark: :white_check_mark: :white_check_mark: :white_check_mark: :white_check_mark:
    tests :white_check_mark: :white_check_mark: :white_check_mark: :white_check_mark: :white_check_mark:

    Full details available on this CI monitor view. Check the JIRA CI status board for known problems
    :white_check_mark: Athena: number of compilation errors 0, warnings 0
    :white_check_mark: AthSimulation: number of compilation errors 0, warnings 0
    :white_check_mark: AthGeneration: number of compilation errors 0, warnings 0
    :white_check_mark: AnalysisBase: number of compilation errors 0, warnings 0
    :white_check_mark: AthAnalysis: number of compilation errors 0, warnings 0
    :pencil: For experts only: Jenkins output [CI-MERGE-REQUEST-EL9 3140]

  • Tadej Novak
  • Tadej Novak
    • Resolved by Xiangyang Ju

      What's the rational for creating 4 packages of which one of them (AthOnnxUtils) contains exactly one file? Do we expect that this grows significantly over time? If not, it might make more sense to just have two packages overall: one interface package and one that contains all the rest including the python configuration and utilities.

  • Setting back to review-user-action-required until threads are resolved.

    Best, Thomas - L2

  • Xiangyang Ju added 745 commits

    added 745 commits

    Compare with previous version

  • This merge request affects 6 packages:

    • Control/AthOnnx/AthOnnxComps
    • Control/AthOnnx/AthOnnxInterfaces
    • Control/AthenaConfiguration
    • Control/AthenaExamples/AthExOnnxRuntime
    • InnerDetector/InDetGNNTracking
    • InnerDetector/InDetRecTools/InDetRecToolInterfaces

    Affected files list will not be printed in this case

    Adding @maszyman ,@gemmeren ,@rbianchi ,@sroe ,@gavrilen ,@goetz ,@ssnyder as watchers

  • Xiangyang Ju resolved all threads

    resolved all threads

  • :x: CI Result FAILURE (hash 76a83735)

    Athena AthSimulation AthGeneration AnalysisBase AthAnalysis
    externals :white_check_mark: :white_check_mark: :white_check_mark: :white_check_mark: :white_check_mark:
    cmake :white_check_mark: :white_check_mark: :white_check_mark: :white_check_mark: :white_check_mark:
    make :white_check_mark: :white_check_mark: :white_check_mark: :white_check_mark: :white_check_mark:
    tests :o: :white_check_mark: :white_check_mark: :white_check_mark: :white_check_mark:

    Full details available on this CI monitor view. Check the JIRA CI status board for known problems
    :white_check_mark: Athena: number of compilation errors 0, warnings 0
    :white_check_mark: AthSimulation: number of compilation errors 0, warnings 0
    :white_check_mark: AthGeneration: number of compilation errors 0, warnings 0
    :white_check_mark: AnalysisBase: number of compilation errors 0, warnings 0
    :white_check_mark: AthAnalysis: number of compilation errors 0, warnings 0
    :pencil: For experts only: Jenkins output [CI-MERGE-REQUEST-EL9 3834]

  • It looks like the CI can't find the test script added by the MR. Is this expected? Lucy (L1)

  • Xiangyang Ju added 47 commits

    added 47 commits

    Compare with previous version

  • This merge request affects 6 packages:

    • Control/AthOnnx/AthOnnxComps
    • Control/AthOnnx/AthOnnxInterfaces
    • Control/AthenaConfiguration
    • Control/AthenaExamples/AthExOnnxRuntime
    • InnerDetector/InDetGNNTracking
    • InnerDetector/InDetRecTools/InDetRecToolInterfaces

    Affected files list will not be printed in this case

    Adding @gavrilen ,@sroe ,@maszyman ,@gemmeren ,@ssnyder ,@rbianchi ,@goetz as watchers

  • Xiangyang Ju added 2 commits

    added 2 commits

    Compare with previous version

  • Thomas Strebler resolved all threads

    resolved all threads

  • :x: CI Result FAILURE (hash 32ad840b)

    Athena AthSimulation AthGeneration AnalysisBase AthAnalysis
    externals :white_check_mark: :white_check_mark: :white_check_mark: :white_check_mark: :white_check_mark:
    cmake :white_check_mark: :white_check_mark: :white_check_mark: :white_check_mark: :white_check_mark:
    make :white_check_mark: :white_check_mark: :white_check_mark: :white_check_mark: :white_check_mark:
    tests :o: :white_check_mark: :white_check_mark: :white_check_mark: :white_check_mark:

    Full details available on this CI monitor view. Check the JIRA CI status board for known problems
    :white_check_mark: Athena: number of compilation errors 0, warnings 0
    :white_check_mark: AthSimulation: number of compilation errors 0, warnings 0
    :white_check_mark: AthGeneration: number of compilation errors 0, warnings 0
    :white_check_mark: AnalysisBase: number of compilation errors 0, warnings 0
    :white_check_mark: AthAnalysis: number of compilation errors 0, warnings 0
    :pencil: For experts only: Jenkins output [CI-MERGE-REQUEST-EL9 3898]

  • This merge request affects 6 packages:

    • Control/AthOnnx/AthOnnxComps
    • Control/AthOnnx/AthOnnxInterfaces
    • Control/AthenaConfiguration
    • Control/AthenaExamples/AthExOnnxRuntime
    • InnerDetector/InDetGNNTracking
    • InnerDetector/InDetRecTools/InDetRecToolInterfaces

    Affected files list will not be printed in this case

    Adding @goetz ,@sroe ,@ssnyder ,@maszyman ,@gemmeren ,@gavrilen ,@rbianchi as watchers

  • :white_check_mark: CI Result SUCCESS (hash e40a6155)

    Athena AthSimulation AthGeneration AnalysisBase AthAnalysis
    externals :white_check_mark: :white_check_mark: :white_check_mark: :white_check_mark: :white_check_mark:
    cmake :white_check_mark: :white_check_mark: :white_check_mark: :white_check_mark: :white_check_mark:
    make :white_check_mark: :white_check_mark: :white_check_mark: :white_check_mark: :white_check_mark:
    tests :white_check_mark: :white_check_mark: :white_check_mark: :white_check_mark: :white_check_mark:

    Full details available on this CI monitor view. Check the JIRA CI status board for known problems
    :white_check_mark: Athena: number of compilation errors 0, warnings 0
    :white_check_mark: AthSimulation: number of compilation errors 0, warnings 0
    :white_check_mark: AthGeneration: number of compilation errors 0, warnings 0
    :white_check_mark: AnalysisBase: number of compilation errors 0, warnings 0
    :white_check_mark: AthAnalysis: number of compilation errors 0, warnings 0
    :pencil: For experts only: Jenkins output [CI-MERGE-REQUEST-EL9 3912]

  • There are no issues with the CI and the changes look okay but are extensive, so passing to L2 for comment.

    — James for L1

  • Looks good. Karolos (L2)

  • Hi, seems not affect analysis side, ask expert for a double check. Best regards, Rui AR shifter

  • Attila Krasznahorkay
  • I'm generally okay with this setup. But still went with some comments, just to annoy everyone...

  • Xiangyang Ju added 4 commits

    added 4 commits

    Compare with previous version

  • This merge request affects 7 packages:

    • Control/AthOnnx/AthOnnxComps
    • Control/AthOnnx/AthOnnxInterfaces
    • Control/AthOnnx/AthOnnxUtils
    • Control/AthenaConfiguration
    • Control/AthenaExamples/AthExOnnxRuntime
    • InnerDetector/InDetGNNTracking
    • InnerDetector/InDetRecTools/InDetRecToolInterfaces

    Affected files list will not be printed in this case

    Adding @goetz ,@gavrilen ,@ssnyder ,@maszyman ,@rbianchi ,@sroe ,@gemmeren as watchers

  • added review-pending-level-1 label and removed review-approved label

  • Xiangyang Ju resolved all threads

    resolved all threads

  • Author Developer

    Hi @akraszna Thanks for these constructive comments! They are fully implemented.

  • :white_check_mark: CI Result SUCCESS (hash 4cdd90fe)

    Athena AthSimulation AthGeneration AnalysisBase AthAnalysis
    externals :white_check_mark: :white_check_mark: :white_check_mark: :white_check_mark: :white_check_mark:
    cmake :white_check_mark: :white_check_mark: :white_check_mark: :white_check_mark: :white_check_mark:
    make :white_check_mark: :white_check_mark: :white_check_mark: :white_check_mark: :white_check_mark:
    tests :white_check_mark: :white_check_mark: :white_check_mark: :white_check_mark: :white_check_mark:

    Full details available on this CI monitor view. Check the JIRA CI status board for known problems
    :white_check_mark: Athena: number of compilation errors 0, warnings 0
    :white_check_mark: AthSimulation: number of compilation errors 0, warnings 0
    :white_check_mark: AthGeneration: number of compilation errors 0, warnings 0
    :white_check_mark: AnalysisBase: number of compilation errors 0, warnings 0
    :white_check_mark: AthAnalysis: number of compilation errors 0, warnings 0
    :pencil: For experts only: Jenkins output [CI-MERGE-REQUEST-EL9 4130]

  • Sending back to L2. Clara (L1)

  • added review-approved label and removed review-pending-level-1 label

  • Tim Martin
  • Tim Martin resolved all threads

    resolved all threads

  • All seems OK for a code sense, I'll take @akraszna's "I'm generally okay with this setup" as satisfying expert review on the wider implementation pattern.

    We do still have an analysis-review-expert label here. I'm not sure who's most appropriate to ping on this for this situation.

    Tim (L2)

  • added review-approved label and removed review-pending-level-2 label

  • Will ping @krumnack if he has anything else to say.

  • I don't think we are using ONNX Runtime yet, so I'd say fine for analysis.

    Nils [Analysis RC]

  • Thanks Nils!

    As this is a big MR, I'll postpone it to after we build a release tomorrow or on Friday.

  • Xiangyang Ju added 1 commit

    added 1 commit

    Compare with previous version

  • Xiangyang Ju resolved all threads

    resolved all threads

  • This merge request affects 7 packages:

    • Control/AthOnnx/AthOnnxComps
    • Control/AthOnnx/AthOnnxInterfaces
    • Control/AthOnnx/AthOnnxUtils
    • Control/AthenaConfiguration
    • Control/AthenaExamples/AthExOnnxRuntime
    • InnerDetector/InDetGNNTracking
    • InnerDetector/InDetRecTools/InDetRecToolInterfaces

    Affected files list will not be printed in this case

    Adding @sroe ,@maszyman ,@gavrilen ,@gemmeren ,@rbianchi ,@goetz ,@ssnyder as watchers

  • added review-pending-level-1 label and removed review-approved label

  • :white_check_mark: CI Result SUCCESS (hash 08aaed04)

    Athena AthSimulation AthGeneration AnalysisBase AthAnalysis
    externals :white_check_mark: :white_check_mark: :white_check_mark: :white_check_mark: :white_check_mark:
    cmake :white_check_mark: :white_check_mark: :white_check_mark: :white_check_mark: :white_check_mark:
    make :white_check_mark: :white_check_mark: :white_check_mark: :white_check_mark: :white_check_mark:
    tests :white_check_mark: :white_check_mark: :white_check_mark: :white_check_mark: :white_check_mark:

    Full details available on this CI monitor view. Check the JIRA CI status board for known problems
    :white_check_mark: Athena: number of compilation errors 0, warnings 0
    :white_check_mark: AthSimulation: number of compilation errors 0, warnings 0
    :white_check_mark: AthGeneration: number of compilation errors 0, warnings 0
    :white_check_mark: AnalysisBase: number of compilation errors 0, warnings 0
    :white_check_mark: AthAnalysis: number of compilation errors 0, warnings 0
    :pencil: For experts only: Jenkins output [CI-MERGE-REQUEST-EL9 4193]

  • Changes look fine and the CI is good. All threads have been resolved. Approving.

    Cheers, Yuriy (L1)

  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Please register or sign in to reply
    Loading