The embodiment of the invention provides an electromagnetic scattering calculation method based on a heterogeneous
GPU cluster. The method is applied to the field of computational
electromagnetism, and comprises the following steps: constructing a hierarchical
bounding volume geometric acceleration structure of a target object and adding an edge index, and meanwhile, completely
copying and distributing data of the acceleration structure to a
video memory of each computational node in a heterogeneous
GPU cluster; generating a random
ray path starting from an emission source, modeling an electromagnetic
scattering process as a
ray path set in a probability space, and generating a
ray direction through an importance sampling strategy; determining a static scheduling strategy for the ray batch based on the calculation cost of pre-sampling and geometric enhancement, and carrying out non-uniform distribution on task tiles according to the heterogeneous GPU calculation power; and monitoring the execution state of the heterogeneous
GPU cluster in real time, and dynamically adjusting the distribution strategy of the residual ray tasks based on execution feedback. According to the method, the calculation overhead can be remarkably reduced while the calculation precision is ensured, and the efficiency and expandability of complex target electromagnetic scattering calculation are improved.