Barcelona Supercomputing Center, Calderon, Alejandro J., Kosmidis, Leonidas, Nicolás, Carlos F., Cazorla Almeida, Francisco Javier, Barcelona Supercomputing Center, Calderon, Alejandro J., Kosmidis, Leonidas, Nicolás, Carlos F., and Cazorla Almeida, Francisco Javier
Autonomous systems require high-performance processing capabilities, which demand the use of powerful accelerators such as GPUs. However, the use of GPUs in critical systems presents several challenges, since GPU programming models rely on explicit dynamic memory management. Traditionally, dynamic memory allocation in such systems is restricted to certain controlled scenarios, which require programs to be rewritten so that all the required memory is allocated at the beginning of the program and released at its end. However, many GPU applications do not follow this approach. Moreover, when dynamic memory allocation is used, it is critical to compute the exact amount of memory that will be used as well as to minimize it, to guarantee that it fits in the physical system memory. In this paper we present XeroZerox, an open-source tool that automatically converts the traditional dynamic memory allocations of GPU applications into allocations served from a centralized and optimally sized memory pool, which is managed in a way better suited for critical systems. XeroZerox allows legacy GPU applications to be used in a critical setup without rewriting them, minimizing at the same time their memory consumption and memory management runtime overhead., European Union’s Horizon Europe Program through the Modular Model-Based Design and Testing for Applications in Satellites (METASAT) (Grant Number: 101082622) Spanish Ministry of Economy and Competitiveness (Spanish State Research Agency/Agencia Española de Investigación (Grant Number: PID2019-107255GB-C21 and IJC-2020-045931-I) Department of Research and Universities of the Government of Catalonia with a Grant to the Computer Architecture and Operating Systems (CAOS) Research Group (Grant Number: 2021 SGR 00637), Peer Reviewed, Postprint (published version)