JeffersonLab / JANA4ML4FPGA

EIC R&D supported project developing ML on FPGA for streaming readout systems
1 stars 1 forks source link

Use unique_ptr for m_hdevio in EventSources #26

Closed cissieAB closed 1 year ago

cissieAB commented 1 year ago

Call jana4ml4fpga in 2 ways to open multiple EVIO files

2023-03-09 04:08:39.932] [example_evio_analysis] [trace] TestEventProcessor event [INFO] Status: 192 events processed 476.3 Hz (476.3 Hz avg) [INFO] All workers have stopped. [INFO] Merging threads ... [INFO] JArrow: Finalized JEventProcessor '' [INFO] Event processing ended. [INFO] JArrowProcessingController: Final Report Thread team size [count]: 1 Total uptime [s]: 0.4031 Uptime delta [s]: 0.4031 Completed events [count]: 192 Inst throughput [Hz]: 476 Avg throughput [Hz]: 476 Sequential bottleneck [Hz]: 573 Parallel bottleneck [Hz]: 7.33e+04 Efficiency [0..1]: 0.832

+--------------------------+------------+--------+-----+---------+-------+--------+---------+-------------+ | Name | Status | Type | Par | Threads | Chunk | Thresh | Pending | Completed | +--------------------------+------------+--------+-----+---------+-------+--------+---------+-------------+ | sources | Finished | Source | F | 0 | 40 | - | - | 192 | | processors | Finished | Sink | T | 0 | 1 | 80 | 0 | 192 | +--------------------------+------------+--------+-----+---------+-------+--------+---------+-------------+ +--------------------------+-------------+--------------+----------------+--------------+----------------+ | Name | Avg latency | Inst latency | Queue latency | Queue visits | Queue overhead | | | [ms/event] | [ms/event] | [ms/visit] | [count] | [0..1] | +--------------------------+-------------+--------------+----------------+--------------+----------------+ | sources | 1.75 | 1.39 | 0.000449 | 193 | 0.000258 | | processors | 0.0136 | 0.0114 | 0.000226 | 960 | 0.0766 | +--------------------------+-------------+--------------+----------------+--------------+----------------+ +----+----------------------+-------------+------------+-----------+----------------+------------------+ | ID | Last arrow name | Useful time | Retry time | Idle time | Scheduler time | Scheduler visits | | | | [ms] | [ms] | [ms] | [ms] | [count] | +----+----------------------+-------------+------------+-----------+----------------+------------------+ | 0 | idle | 0.131 | 0 | 0 | 0.0002 | 385 | +----+----------------------+-------------+------------+-----------+----------------+------------------+


- Use EVIOBlockedEventFileSource with "-t" option

./install/bin/jana4ml4fpga -Pexample_evio_analysis:LogLevel=trace -t -Pplugins=log,root_output,example_evio_analysis,CDAQfile /gluonraid3/data4/rawdata/trd/DATA/hd_rawdata_002539_000.evio /gluonraid3/data4/rawdata/trd/DATA/hd_rawdata_002539_002.evio ... [INFO] Block 192 read_ok /home/hdtrdops/GemTrd_2023/JANA4ML4FPGA/src/executables/jana4ml4fpga/EVIOBlockProcessor.cc:20 [2023-03-09 04:21:54.819] [example_evio_analysis] [trace] TestEventProcessor event [INFO] No more blocks in "/gluonraid3/data4/rawdata/trd/DATA/hd_rawdata_002539_000.evio"!