Multi-node heterogeneous parallel acceleration method

Through the multi-node heterogeneous parallel acceleration method, Open CL is used to allocate optical analysis tasks to the CPU and GPU of multiple computing nodes, solving the problem of limited computing resources of traditional optical software, achieving efficient optical analysis and reducing energy consumption, and adapting to complex optical simulations and high-precision rendering requirements.

CN118363763BActive Publication Date: 2024-09-17CHANGCHUN INST OF OPTICS FINE MECHANICS & PHYSICS CHINESE ACAD OF SCI
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410787047.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-18
Publication Date
2024-09-17
Estimated Expiration
2044-06-18

AI Technical Summary

Technical Problem

When dealing with large-scale and complex optical analysis problems, traditional optical software has limited computing resources, resulting in low computing efficiency, slow analysis speed, insufficient scalability and high energy consumption, making it difficult to adapt to the growing computing needs.

Method used

Using a multi-node heterogeneous parallel acceleration method, the optical analysis task is allocated to the CPU and GPU of multiple computing nodes for parallel processing through Open CL, and the computing resources of the CPU and GPU are used to achieve efficient optical analysis calculations.

Benefits of technology

It significantly reduces computing time, improves computing performance and accuracy, reduces energy consumption and development costs, enables efficient optical analysis on conventional PCs and workstations, and adapts to different scales and types of computing needs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118363763B
    Figure CN118363763B
Patent Text Reader

Abstract

The present invention belongs to the field of general parallel computing technology, and in particular, relates to a multi-node heterogeneous parallel acceleration method. It includes: S1: the user selects an optical analysis algorithm on the optical analysis software according to the work task; S2: creating a user input data module, and the user customizes the input of optical system parameter information corresponding to the optical analysis algorithm; S3: grouping each tracing light according to the optical system parameter information; S4: according to the grouping result obtained in step S3, writing the calculation parameters assigned to the CPU and GPU based on Open CL, and assigning the calculation parameters to each computing node for parallel processing, so as to realize multi-node heterogeneous parallel acceleration. The present invention can improve the computing efficiency, speed up the analysis speed and reduce the energy consumption.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of general parallel computing, and in particular relates to a multi-node heterogeneous parallel acceleration method. Background Art

[0002] In traditional optical analysis software, simulation and analysis of complex optical systems are usually performed in a single computing environment. However, when processing large optical data sets and high-resolution optical simulations using a single-core CPU or a simple multi-core processing method, the single-machine or single-processor architecture has strict physical limitations on computing resources. For large-scale computing tasks, this limitation will lead to low computational efficiency of traditional methods. Complex optical system simulation and optimization require massive data processing and long computing cycles, but the limited computing speed of traditional methods will seriously prolong data analysis time. Traditional optical software has limited scalability for computing resources and is difficult to adapt to the growing computing needs and complexity. In addition, high-intensity computing on a single node will increase energy consumption, bringing higher economic costs to enterprises. Summary of the invention

[0003] In view of this, the present invention aims to provide a multi-node heterogeneous parallel acceleration method to solve the technical challenges of limited computing resources, slow analysis speed, insufficient scalability, high energy consumption and economic cost encountered by traditional single-node optical software when dealing with large-scale and complex optical analysis problems.

[0004] To achieve the above object, the technical solution created by the present invention is implemented as follows:

[0005] A multi-node heterogeneous parallel acceleration method specifically comprises the following steps:

[0006] S1: The user selects the optical analysis algorithm on the optical analysis software according to the work task;

[0007] S2: creating a user input data module, where the user inputs optical system parameter information corresponding to the optical analysis algorithm in a customized manner;

[0008] S3: grouping each tracing light beam according to the optical system parameter information;

[0009] S4: According to the grouping results obtained in step S3, the calculation parameters assigned to the CPU and GPU are written based on Open CL, and the calculation parameters are distributed to each computing node for parallel processing to achieve multi-node heterogeneous parallel acceleration.

[0010] Furthermore, the number of computing nodes is greater than two, and each computing node is provided with no less than one CPU and no less than one GPU.

[0011] The further step S3 specifically comprises the following steps:

[0012] S31: Divide each tracing light into m×n groups according to different field of view ranges and different wavelengths, and calculate k×k tracing rays for each group of tracing light;

[0013] S32: Calculate the light information of m×n groups of tracing light rays, and obtain m×n text data according to the light information of each group of tracing light rays;

[0014] S33: Draw a picture based on the m×n text data to obtain m×n drawing data.

[0015] Furthermore, m is the number of field of view ranges, n is the number of wavelengths, and k×k is the sampling resolution of the tracing light.

[0016] Furthermore, in step S4, Open CL is used to evenly distribute the m×n groups of tracing rays to the CPUs of each computing node for processing, and Open CL is used to evenly distribute the text data and drawing data of the same group of tracing rays assigned to the same CPU to the GPU located in the same computing node as the current CPU for processing.

[0017] Compared with the prior art, the invention can achieve the following beneficial effects:

[0018] The present invention makes full use of the computing resources of CPU and GPU to achieve efficient optical analysis calculation, especially when processing large-scale ray tracing tasks, the calculation time is greatly reduced compared with the traditional single computing resource method; the present invention supports computing requirements of different scales and types, and users can adjust the allocation of computing resources according to specific work tasks to optimize computing performance; the present invention uses GPU for large-scale parallel computing to improve the accuracy of optical simulation while maintaining high computing speed, especially in the optical simulation of complex optical effects and high-precision rendering; compared with the traditional method that relies on high-performance computer clusters, the present invention can achieve efficient optical analysis on conventional PCs and workstations, significantly reducing the cost of research and development. When single-node computing is used, heat is concentrated, resource utilization is unbalanced, and power consumption increases superlinearly with period operation frequency, while the multi-node heterogeneous parallel processing method of the present invention can provide a better energy consumption ratio, especially for large-scale data processing tasks and computing-intensive tasks. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] The drawings constituting part of the present invention are used to provide a further understanding of the present invention. The exemplary embodiments and descriptions of the present invention are used to explain the present invention and do not constitute an improper limitation on the present invention. In the drawings:

[0020] Figure 1 A flowchart of a multi-node heterogeneous parallel acceleration method according to an embodiment of the present invention. DETAILED DESCRIPTION

[0021] In order to make the purpose, technical solution and advantages of the invention more clear, the invention is further described in detail below in conjunction with the accompanying drawings and specific embodiments. It should be understood that the specific embodiments described here are only used to explain the invention and do not constitute a limitation of the invention.

[0022] It should be noted that, in the absence of conflict, the embodiments of the present invention and the features in the embodiments may be combined with each other.

[0023] In the description of the present invention, it should be understood that the terms "center", "longitudinal", "lateral", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside", "outside" and the like indicate positions or positional relationships based on the positions or positional relationships shown in the accompanying drawings, and are only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as a limitation on the present invention. In addition, the terms "first", "second", etc. are only used for descriptive purposes, and cannot be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, features defined as "first", "second", etc. may explicitly or implicitly include one or more of the features. In the description of the present invention, unless otherwise specified, "multiple" means two or more.

[0024] In the description of the invention, it should be noted that, unless otherwise clearly specified and limited, the terms "installation", "connection" and "connection" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or it can be indirectly connected through an intermediate medium, or it can be the internal communication of two components. For ordinary technicians in this field, the specific meanings of the above terms in the invention can be understood according to specific circumstances.

[0025] The present invention will be described in detail below with reference to the accompanying drawings and in combination with embodiments.

[0026] like Figure 1 As shown, the multi-node heterogeneous parallel acceleration method provided by the present invention specifically includes the following steps:

[0027] S1: The user selects an optical analysis algorithm on the optical analysis software according to the work task.

[0028] The number of computing nodes is greater than two, and each computing node is provided with at least one CPU (central processing unit) and at least one GPU (graphics processing unit).

[0029] S2: Create a user input data module, where the user inputs optical system parameter information corresponding to the optical analysis algorithm in a customized manner.

[0030] Determination of information about the optical system parameters can help the user determine how to most efficiently distribute the computational load.

[0031] Optical analysis algorithms include pupil diagram algorithm and diffraction MTF algorithm. The optical system parameter information of pupil diagram algorithm includes field of view, wavelength selection and sampling resolution, while the optical system parameter information of diffraction MTF algorithm includes sampling resolution, maximum spatial frequency and spatial frequency increment.

[0032] S3: Grouping the tracing rays according to the optical system parameter information.

[0033] Step S3 specifically includes the following steps:

[0034] S31: Divide the tracing rays into m×n groups according to different fields of view and different wavelengths, and calculate k×k tracing rays for each group of tracing rays.

[0035] m is the number of field of view, n is the number of wavelengths, and k×k is the sampling resolution of the tracing light.

[0036] S32: Calculate the light information of m×n groups of tracing light rays, and obtain m×n text data according to the light information of each group of tracing light rays.

[0037] S33: Draw a picture based on the m×n text data to obtain m×n drawing data.

[0038] Similar rays can share some of the calculation results, which helps to reduce the waste of computing resources.

[0039] S4: According to the division and grouping results obtained in step S3, the calculation parameters assigned to the CPU and GPU are written based on Open CL, and the calculation parameters are distributed to each computing node for parallel processing to achieve multi-node heterogeneous parallel acceleration.

[0040] In step S4, Open CL is used to evenly distribute the m×n groups of tracing rays to the CPUs of each computing node for processing, and Open CL is used to evenly distribute the text data and drawing data of the same group of tracing rays assigned to the same CPU to the GPU located in the same computing node as the current CPU for processing.

[0041] OpenCL (Open Computing Language) enables task allocation and collaboration across multiple computing nodes due to its following functions, including: environment setup, platform and device query, context and queue creation, kernel code writing, kernel compilation and distribution, and data transmission and synchronization. Among them, the writing of computing parameters assigned to the CPU and GPU is implemented through kernel code, and the distribution of computing parameters to each computing node for parallel processing is implemented by compiling and distributing kernels.

[0042] Example

[0043] Let's take the pupil map algorithm as an example. Calculating the pupil map is an important step in optical design and analysis. It requires a lot of ray tracing, wavefront analysis, and error calculation, and is a computationally intensive task. The following is a description of the specific steps of the multi-node heterogeneous parallel acceleration method for calculating the pupil map:

[0044] S1: The user selects the pupil map algorithm on the optical analysis software according to the work task;

[0045] First, multiple CPU nodes and GPU nodes are integrated in the hardware configuration to ensure that each CPU node has multiple cores and the GPU node can provide large-scale parallel processing capabilities.

[0046] S2: Create a user input data module, and the user inputs optical element parameters and calculation domain parameters in a customized way.

[0047] Optical component parameters include the radius of curvature, thickness, material (refractive index and Abbe number), position, tilt and deflection angle of lenses and mirrors.

[0048] Computational domain parameters include field of view (the size of the scene area that needs to be analyzed, usually expressed in angle), wavelength selection (evaluation of single wavelength or multiple wavelengths), and sampling resolution (the sampling density in the spatial dimensions of the wavefront and pupil images).

[0049] S3: Grouping the tracing rays according to the optical system parameter information.

[0050] Step S3 specifically includes the following steps:

[0051] S31: Divide the tracing rays into 60 groups according to different fields of view and different wavelengths, and calculate 16384 tracing rays for each group of tracing rays.

[0052] The number of field of view ranges is 12, the number of wavelengths is 5, and the sampling resolution of the tracing rays is 16384 (128*128).

[0053] S32: Calculate the light information of 60 groups of tracing light rays, and obtain 60 text data according to the light information of each group of tracing light rays.

[0054] S33: Drawing is performed according to the 60 text data to obtain 60 drawing data.

[0055] The process of calculating text data and obtaining drawing data can be adjusted according to different optical analysis algorithms.

[0056] S4: Based on the division and grouping results obtained in step S3, a parallelized ray tracing algorithm is used for each group of rays, and the calculation parameters assigned to the CPU and GPU are written based on Open CL, and the calculation parameters are distributed to each computing node for parallel processing to achieve multi-node heterogeneous parallel acceleration.

[0057] In step S4, Open CL is used to evenly distribute the 60 groups of ray tracing to the CPU of each computing node for processing, and Open CL is used to distribute the pupil diagram text data and drawing data of the same group of tracing rays assigned to the same CPU to the GPU located in the same computing node as the current CPU for processing.

[0058] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the disclosure of the present invention can be performed in parallel, sequentially or in different orders, as long as the desired results of the technical solution disclosed in the present invention can be achieved, and this document does not limit this.

[0059] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims

1. A multi-node heterogeneous parallel acceleration method, characterized by: The specific steps include: S1: The user selects the optical analysis algorithm on the optical analysis software according to the work task; S2: creating a user input data module, where the user inputs optical system parameter information corresponding to the optical analysis algorithm in a customized manner; S3: grouping the tracing rays according to the optical system parameter information; S31: Divide each tracing light into m×n groups according to different field of view ranges and different wavelengths, and calculate k×k tracing rays for each group of tracing light; S32: Calculate the light information of m×n groups of tracing light rays, and obtain m×n text data according to the light information of each group of tracing light rays; S33: Draw a picture according to the m×n text data to obtain m×n drawing data; m is the number of field of view, n is the number of wavelengths, and k×k is the sampling resolution of the tracing light; S4: According to the grouping result obtained in step S3, the calculation parameters assigned to the CPU and GPU are written based on Open CL, and the calculation parameters are assigned to each computing node for parallel processing to achieve multi-node heterogeneous parallel acceleration; The Open CL is used to evenly distribute the m×n groups of tracing rays to the CPUs of the computing nodes for processing, and the Open CL is used to evenly distribute the text data and drawing data of the same group of tracing rays assigned to the same CPU to the GPU located in the same computing node as the current CPU for processing.

2. The multi-node heterogeneous parallel acceleration method according to claim 1, characterized in that: The number of the computing nodes is greater than two, and each computing node is provided with at least one CPU and at least one GPU.