Исследование структуры гетерогенного реконфигурируемого вычислителя для эффективной работы матричного метода муравьиных колоний
Ю. И. Титов · Sovremennye informacionnye tehnologii i IT-obrazovanie. · 2025
Развитие современных вычислительных систем направлено на увеличение количества вычислителей и ускорителей, в том числе и разнородных: матричных ускорителей, MIMD, SIMD и др., что требует модернизации вычислительных алгоритмов с учетом структуры компьютера. В работе рассматривается матричная модификация метода муравьиных колоний (ACO) для решения параметрической задачи. Для решения параметрической задачи, поиска оптимальных значений параметров, в методе ACOприменяется графовая структура данных, в которой для каждого значения каждого параметра выделяется одна вершина, а муравей-агент должен выбрать по одному значению для каждого параметра. Данная структура позволяет рассматривать работу ACO как операции над матрицами. Предложенная матричная модификация, работающая с оптимизированной графовой структурой, позволяет достичь ускорения от 13 до 22 раз по сравнению с оригинальным методом при выполнении на CPU. Во многом такое ускорение обусловлено работой современного оптимизирующего компилятора C++. Предложен алгоритм представления матричного ACOдля SIMD ускорителя и гетерогенного вычислителя. Проведены исследования на ускорителе с применением технологии NVIDIA CUDA, ускорение составило от 7 до 18 раз. Для применения ACO на CUDA требуется пересмотр алгоритма, разделение данных по типам памяти, правильное разделение на потоки и блоки, решения проблем синхронизации и передачи данных между CPU и GPU. Предложен алгоритм для гетерогенного вычислителя, выполняющего матричные преобразования на CPU и вычисление пути муравья-агента на GPU, который показал ускорение от 24 до 38 раз. Проведено теоретическое исследование эффективности применения гетерогенного матричного ACOна гетерогенном вычислителе, состоящем из наборов MIMD ядер и SIMD ускорителей. Предложен подход к определению предела теоретического ускорения алгоритма и оптимальная структура гетерогенного реконфигурируемого вычислителя. The advancement of modern computing systems focuses on increasing the number of computational units and accelerators, including heterogeneous types such as matrix accelerators, MIMD, SIMD, and others. This trend necessitates the modernization of computational algorithms to align with the underlying architecture of the computer. This paper presents a matrix modification of the Ant Colony Optimization (ACO) method for addressing parametric problems. In this context, the ACO method employs a graph data structure where each vertex corresponds to a specific value of a parameter, and the ant agent is tasked with selecting one value for each parameter. This framework allows us to interpret the workings of ACO as matrix operations. The proposed matrix modification, which utilizes an optimized graph structure, achieves speedups ranging from 13 to 22 times compared to the original method when executed on a CPU. Much of this acceleration can be attributed to the capabilities of modern optimizing C++ compilers. Additionally, we introduce an algorithm for implementing matrix ACO on SIMD accelerators and heterogeneous computing systems. Research conducted on an accelerator using NVIDIA CUDA technology demonstrated speedups between 7 and 18 times. To effectively apply ACO in a CUDA environment, it is essential to revise the algorithm, categorize data by memory types, properly organize streams and blocks, and address synchronization and data transfer challenges between the CPU and GPU. Furthermore, we propose an algorithm for heterogeneous computers that performs matrix transformations on the CPU while calculating the path of the ant agent on the GPU, achieving acceleration factors ranging from 24 to 38 times. A theoretical analysis of the efficiency of utilizing heterogeneous matrix ACO on a system comprising MIMD cores and SIMD accelerators has also been conducted. This study includes a novel approach for determining the theoretical limits of algorithmic acceleration and outlines an optimal architecture for a reconfigurable heterogeneous computer.
Cited by 0 works. doi:10.25559/sitito.021.202502.176-190 Open-access PDF
Authors
References
- Ant Colony Optimization
- Exploration and exploitation in evolutionary algorithms
- Parallelization Strategies for the Ant System
- A Parallel Implementation of Ant Colony Optimization
- Some New Test Functions for Global Optimization and Performance of Repulsive Particle Swarm Method
- Swarm intelligence
- A critical analysis of parameter adaptation in ant colony optimization
- Matheuristics
- Implementing a GPU-based parallel MAX–MIN Ant System
- An optimized resource scheduling algorithm based on GA and ACO algorithm in fog computing