NUK - logo
E-viri
Celotno besedilo
Recenzirano Odprti dostop
  • Hardware acceleration of co...
    Wojenski, A.; Zbroszczyk, H.; Kruszewski, M.; Szymanski, P.; Wawrzyn, E.; Wielanek, D.; Zabolotny, W.; Pawlowska, D.; Gniazdowski, T.

    Computer physics communications, 02/2024, Letnik: 295
    Journal Article

    The amount of data coming from modern acquisition systems, especially working in extreme experimental conditions, is significantly rising over the years. Combined with complex algorithms, the computation time and power consumption are considerably increasing. The issue usually occurs in many world laboratories, such as CERN, Brookhaven National Laboratory, GSI Helmholtzzentrum für Schwerionenforschung, and tokamak devices (JET, WEST, MAST, and more). Often well verified, but legacy codes are used as a main computational engine, resulting in weak performance unsuitable for current needs. The paper presents a methodology to appropriately adapt the legacy C/C++ high-energy physics (HEP) algorithms for computation acceleration using FPGAs, which may improve the designing of real-time systems based on verified codes. The main idea is to separate the HLS-FPGA code work areas between groups of experts: physicists and electronics. The methodology consists of several parts: interfacing, storage, verification methods, defining the algorithm and data structures, program refactoring in the scope of CPU and FPGA, performance and results analysis, FPGA verification methods, FPGA performance estimation, and automatization of the process. The methodology has been successfully tested by implementing a legacy, complex HEP algorithm for femtoscopy correlations in the HLS framework for FPGA. It works with extensive input data from international experiments, like STAR at RHIC. The implementation and verification were done successfully on the FPGA hardware platform. Following the methodology results in a clearer to analyze and debug HEP code than a machine-generated version by tools. We also confirmed that it is possible to make a working, HLS-compliant program designed by non-FPGA experts. Using the modern implementation tools, FPGA resource usage is low despite unoptimized syntax. It gives a large field for further significant optimizations and good performance. The proposed approach should be interesting to introduce in devices like tokamaks, synchrotrons, and similar, where the real-time monitoring of the experimental processes is essential. •Methodology for complex algorithm conversion from legacy code to hardware accelerated in FPGA in high level synthesis (HLS) languages.•Guidelines to achieve the performance improvement of legacy (C, Fortran etc.) high energy physics algorithms.•Discussion about the pros and cons of using the high-level synthesis (HLS) languages for acceleration.•Preliminary in-hardware FPGA laboratory tests of the presented approach based on Monte-Carlo HEP algorithm for heavy-ion collisions.•Use for high energy physics experiments, however not limited to.