The invention relates to the technical field of
ion beam physical calculation, in particular to an
ion beam
optical property evaluation method based on a CPU-GPU
hybrid parallel stable double-gradient conjugate
algorithm. According to the technical scheme, the method comprises the following steps that a CPU-GPU
hybrid parallel architecture is initialized, and CPU end and GPU end memory allocation,
CUDA related object creation and GPU equipment initialization and parameter setting are completed; constructing a linear equation set, a
sparse coefficient matrix A and a right-end vector b, and setting an initial solution vector, convergence precision epsilon and related parameters of the number of iterations; and analyzing the sparseness of the
coefficient matrix A. Through combination of three core mechanisms of CPU-GPU cooperative calculation,
dynamic load balancing and intelligent
preprocessor selection, efficient, stable and universal evaluation of the
ion beam optical characteristics is successfully realized, and an excellent solution is provided for solving the solving problem of a large-scale sparse linear equation set in the field of high-performance calculation.