Аннотация:The results of computer simulation of the process of collision of rotating molecular clouds in the interstellar medium are presented. As matter is compressed, the gas density in the area of their collision increases; this leads to local changes in the shape and fragmentation of clouds. The gas density in the resulting condensations increases by many orders of magnitude, and gravitationally bound domains appear where star clusters can form. The process of star formation is accompanied by considerable spatial and temporal changes in the interstellar gas in these domains, turbulence of the interstellar medium, gravity, and a sharp change in magnetic and radiation fields at the prestellar stage of the evolution of new formations. The rotation of colliding molecular clouds has a great influence on the ongoing processes. The evolution of the matter of protostellar regions from the moment when they begin to form until the moment when they reach stellar density covers a huge range of scales. Simulation of such astrophysical processes on ultra-high resolution computational grids requires a substantial increase in computer power, and optimization of parallel computing on heterogeneous computing systems is required.