Alice Weekly Meeting: Software for Hardware Accelerators / PDP-SRC

→ Europe/Zurich
Zoom Meeting ID
61230224927
Host
David Rohr
Useful links
Join via phone
Zoom URL
    • 11:00 → 11:20
      Discussion 20m
      Speakers: David Rohr (CERN), Ole Schmidt (CERN)

      Color code: (critical, news during the meeting: green, news from this week: blue, news from last week: purple, no news: black)

      High priority framework topics:

      • Problem at end of run with lots of error messages and breaks many calibration runs https://alice.its.cern.ch/jira/browse/O2-3315
        • Unfortunately, online there are still errors after fixing those that are seen in the FST (e.g. partition 2e5XVwXYwvX).
        • After a recent O2 update, these messages started to appear in the FST as well again. At least this case can be reproduced locally.
        • Debug session with Giulio later today.
      • Fix START-STOP-START for good
      • START/STOP test successful, all segfaults fixed. START/STOP/START not yet working. Identified only 2 segfaults at SHUTDOWN, in DPL raw proxy only on the FLPs, and in DD TfScheduler.
      • Multi-threaded pipeline still not working in FST / sync processing, but only in standalone benchmark.
        • Discussed with Giulio that it might not converge until Pb-Pb, so I'll try to implement a standalone multi-threading solution in DPL.
      • Problem with QC topologies with expendable tasks- For items to do see: https://alice.its.cern.ch/jira/browse/QC-953 - Status?
      • Problem in QC where we collect messages in memory while the run is stopped: https://alice.its.cern.ch/jira/browse/O2-3691
        • Tentative fix by Giulio available, to be tested by Piotr.

      Other framework tickets:

      • TOF problem with receiving condition in tof-compressor: https://alice.its.cern.ch/jira/browse/O2-3681 Pinged TOF what is the status with switching to new TOF compressor?
      • Grafana metrics: Might want to introduce additional rate metrics that subtract the header overhead to have the pure payload: low priority.
      • Backpressure reporting when there is only 1 input channel: no progress.
      • Stop entire workflow if one process segfaults / exits unexpectedly. Tested again in January, still not working despite some fixes. https://alice.its.cern.ch/jira/browse/O2-2710
      • https://alice.its.cern.ch/jira/browse/O2-1900 : FIX in PR, but has side effects which must also be fixed.
      • https://alice.its.cern.ch/jira/browse/O2-2213 : Cannot override debug severity for tpc-tracker
      • https://alice.its.cern.ch/jira/browse/O2-2209 : Improve DebugGUI information
      • https://alice.its.cern.ch/jira/browse/O2-2140 : Better error message (or a message at all) when input missing
      • https://alice.its.cern.ch/jira/browse/O2-2361 : Problem with 2 devices of the same name
      • https://alice.its.cern.ch/jira/browse/O2-2300 : Usage of valgrind in external terminal: The testcase is currently causing a segfault, which is an unrelated problem and must be fixed first. Reproduced and investigated by Giulio.
      • Found a reproducible crash (while fixing the memory leak) in the TOF compressed-decoder at workflow termination, if the wrong topology is running. Not critical, since it is only at the termination, and the fix of the topology avoids it in any case. But we should still understand and fix the crash itself. A reproducer is available.
      • Support in DPL GUI to send individual START and STOP commands.
      • Problem I mentioned last time with non-critical QC tasks and DPL CCDB fetcher is real. Will need some extra work to solve it. Otherwise non-critical QC tasks will stall the DPL chain when they fail.
      • Missing core files on FLPs: Fixed merged in O2. Also needs a fix in AliECS. Have a workaround, but not clear if fix deployed.

      Global calibration topics:

      • TPC IDC workflow problem - no progress.
      • TPC has issues with SAC workflow. Need to understand if this is the known long-standing DPL issue with "Dropping lifetime::timeframe" or something else.
      • Even with latest changes, difficult to ensure guaranteed calibration finalization at end of global run (as discussed with Ruben yesterday).
        • After discussion with Peter, Giulio this morning: We should push for 2 additional states in the state machine at the end of run between RUNNING and READY:
          • DRAIN: For all but O2, the transision RUNNING --> FINALIZE is identical to what we do in STOP: RUNNING --> READY at the moment. I.e. no more data will come in then.
            • O2 could finalize the current TF processing with some time out, where it stops processing incoming data, and at EndOfStream trigger the calibration postprocessing.
          • FINALIZE: No more data is guaranteed to come in, but the calibration could still be running. So we leave FMQ channels open, and have a time out to finalize the calibration. If input proxies have not yet received the EndOfStream, they will inject it to trigger the final calibration.
        • This would require changes in O2, DD, ECS, FMQ, but all changes except for in O2 should be trivial, since all other components would not do anything in these states.
        • Started to draft a document, but want to double-check it will work out this way before making it public.
      • output-proxy cannot send the same data to 2 calib workflows.
        • Still not working, Giulio is investigating.
      • EMCAL bad channel calib too slow for high rate pb-pb.
        • EMCAL is working on a multi-threaded implementation.
      • Problem when calibration aggregators suddenly receive an endOfStream in the middle of the run and stop processing:
        • Happens since ODC 0.78, which checks device states during running: If one device fails, it sends sigkill to all devices of the collection, and FairMQ takes the shortest way through the state machine to EXIT, which involves a STOP transition, which then sends the EoS. The DPL input proxy on the calib node should in principle check that it has received EoS from all nodes, but for some reason that is not working. Todo:
          • Fix the input proxy to correctly count the number of EoS.
          • Change the device behavior such that we do not send EoS in case of sigkill when running on FLP/EPN.

      CCDB:

      Sync reconstruction:

      • Asked detectors to modernize their standalone workflows, and follow several design patterns of global workflow:
        • Use helper to fetch and catch QC JSONs from consul.
        • Check for SYNTHETIC / STAGING run, and do not upload CCDB objects to production CCDB in this case.
        • Support $GLOBALDPLOPT, needed for MI100 workflows.
        • Use the commom helpers we provide to assemble the merged workflow string.

      Async reconstruction

      • Remaining oscilation problem: GPUs get sometimes stalled for a long time up to 2 minutes. No progress
        • Checking 2 things: does the situation get better without GPU monitoring? --> Inconclusive
        • We can use increased GPU processes priority as a mitigation, but doesn't fully fix the issue.
      • EPN vobox for MI100:
        • voboxes recreated and moved to new IP range.
        • Routing of second gateway fixed, vobox2 updated to use that as default route.

      EPN major topics:

      • Fast movement of nodes between async / online without EPN expert intervention.
        • I think we should give this higher priority. On Monday / Tuesday, it took 5 experts ~10 hours to return slurm to a working state.
        • 2 goals I would like to set for the final solution:
          • It should not be needed to stop the SLURM schedulers when moving nodes, there should be no limitation for ongoing runs at P2 and ongoing async jobs.
          • We must not lose which nodes are marked as bad while moving.
      • Interface to change SHM memory sizes when no run is ongoing. Otherwise we cannot tune the workflow for both Pb-Pb and pp: https://alice.its.cern.ch/jira/browse/EPN-250
        • Lubos to provide interface to querry current EPN SHM settings - ETA July 2023, Status?
      • Improve DataDistribution file replay performance, currently cannot do faster than 0.8 Hz, cannot test MI100 EPN in Pb-Pb at nominal rate, and cannot test pp workflow for 100 EPNs in FST since DD injects TFs too slowly. https://alice.its.cern.ch/jira/browse/EPN-244 NO ETA
      • New topology merging tool commissioned with Lubos Friday last week on staging, and deployed on production on Monday. Seems fully working. Merging of full topology down from 14s with the old ODC tool to 1.6s with the new tool, i.e. speeds up environment creation.
        • Some command line checks were incorrect in Lubos tool, so for now copied it to a new place on the EPNs and fixed it manually. To be review by Lubos next week.
        • Still lacking the insertion of number of MI50 and MI100 from the provided "equivalent number of MI50" and node utilization at the end of topology generation after topology caching.
          • Currently, would be inserted too early, and cached topologies would contain final, possibly incorrect numbers.
          • To be fixed after Lubos' vacation, for now I added an extra env variable to hardcode the number of MI100 nodes.
        • Also missing is proper installation via RPMs. Could simply add the tool to O2DPG EPN tools folder, but to be discussed with Lubos.
      • Interface to communicate list of active EPNs to epn2eos monitoring: https://alice.its.cern.ch/jira/browse/EPN-381
        • List is no published via URL, Alice is working on the EPN2EOS monitoring integration.

      Other EPN topics:

      EPN farm upgrade:

      • Finally managed to obtain a working ROCm setup that runs on MI50 and MI100 (without workarounds in our code, and without performance impact):
        • ROCm 5.5.3 basis.
        • ROCm 5.6 kernel module (cannot use 5.6 due to new regression in compiler)
        • Custom 5.5.1 compiler with a commit revert (revert is a workaround, AMD is still checking what exactly goes wrong).
      • With this, validated running on MI100 online (SYNTHETIC and TECHNICAL runs), and also tested with heterogeneous deployment.
      • Largest test yesterday was with 271 EPN nodes (out of which 15 were MI100).

      TPC Raw decoding checks:

      • Did checks with TPC randomPattern generator, no problem observed.
      • Add additional check on DPL level, to make sure firstOrbit received from all detectors is identical, when creating the TimeFrame first orbit.

      Full system test issues:

      Topology generation:

      • Should test to deploy topology with DPL driver, to have the remote GUI available. Fix merged in O2, to be tested. Status?
      • Fixed some minor bugs in topology generation.
      • Added setting to configure a postprocessing command after topology caching, to be used by new topology merger to insert final number of MI50 and MI100 EPNs.

      Software deployment at P2.

      • Software update on Monday was smooth.
        • Fixed TPC correction map with scaling now available, to be tested in data replay and once beam is back.
      • Missing for next week:
        • output-proxy fix
        • Fix "dropping lifetime::timeframe"
        • Improve TPC cluster error parameterization
        • Standalone multi-threading implementation

      QC / Monitoring / InfoLogger updates:

      • TPC has opened first PR for monitoring of cluster rejection in QC. Trending for TPC CTFs is work in progress. Ole will join from our side, and plan is to extend this to all detectors, and to include also trending for raw data sizes.

      AliECS related topics:

      • Extra env var field still not multi-line by default.

      GPU ROCm / compiler topics:

      • Found new HIP internal compiler error when compiling without optimization: -O0 make the compilation fail with unsupported LLVM intrinsic. Reported to AMD.
      • Found a new miscompilation with -ffast-math enabled in looper folllowing, for now disabled -ffast-math.
      • Must create new minimal reproducer for compile error when we enable LOG(...) functionality in the HIP code. Check whether this is a bug in our code or in ROCm. Lubos will work on this.
      • Found another compiler problem with template treatment found by Ruben. Have a workaround for now. Need to create a minimal reproducer and file a bug report.
      • Debugging the calibration, debug output triggered another internal compiler error in HIP compiler. No problem for now since it happened only with temporary debug code. But should still report it to AMD to fix it.
      • New compiler regression in ROCm 5.6, need to create testcase and send to AMD.

      TPC GPU Processing

      • Random GPU crashes under investigation.
      • Bug in TPC QC with MC embedding, TPC QC does not respect sourceID of MC labels, so confuses tracks of signal and of background events.
      • Problems with distortion correction:
        • Sergey's latest fix seems to solve the FPEs for me.
        • Map currently in CCDB not compatible to latest O2/dev. Will change CCDB path of the map, and upload new maps (to be generated by Matthias today).
        • With this, we can hopefully try to reenable the distortion corrections with scaling in online processing with the SW update next week.
      • Robert observed a segfault on the GPU in latest laser runs.
        • Crash was with a custom-built O2 by TPC, not official release. Cannot reproduce the crash with official version.
        • Investigating that, found a problem in the TPC timebin out of bounds check for triggered data, which is fixed in latest O2. In my test, this cut away plenty of clusters that were out of the trigger range. To be tested by TPC, and to be verified if the trigger handling is correct.
      • First version of new Cluster Error Parameterization in PR, Add more cluster error cases and further validation.

      ANS Encoding

      • Again more commits to the PR, Status?

      Issues currently lacking manpower, waiting for a volunteer:

      • For debugging, it would be convenient to have a proper tool that (using FairMQ debug mode) can list all messages currently in the SHM segments, similarly to what I had hacked together for https://alice.its.cern.ch/jira/browse/O2-2108
      • Redo / Improve the parameter range scan for tuning GPU parameters. In particular, on the AMD GPUs, since they seem to be affected much more by memory sizes, we have to use test time frames of the correct size, and we have to separate training and test data sets.
    • 11:20 → 11:25
      TRD Tracking 5m
      Speaker: Ole Schmidt (CERN)
    • 11:25 → 11:30
      TPC ML Clustering 5m
      Speaker: Christian Sonnabend (Heidelberg University (DE))
    • 11:30 → 11:35
      ITS Tracking 5m
      Speaker: Matteo Concas (CERN)
      • Progressing with porting of the fitting function
        • Currently checking propagator status on GPU