GPU parallel search method and device for Fourier domain accelerated search of pulsar binary stars
By designing a parallel search pipeline on the GPU platform and using multiple GPUs to perform Fourier domain accelerated search of pulsar binary stars, the problem of slow pulsar binary search speed under the traditional CPU platform has been solved, and efficient pulsar candidate screening and identification have been achieved, significantly improving The speed of discovery of celestial objects.
Patent Information
- Application Number
- CN202410806587.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-21
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2044-06-21
AI Technical Summary
The Fourier domain accelerated search algorithm for pulsar binary stars under the traditional CPU platform is slow and cannot meet the needs of efficient processing and real-time search of large-scale observation data. Especially when the data volume is at the petabyte level, traditional methods are difficult to meet the rapid identification of pulsar candidates. and screening.
Using GPU parallel computing technology, by designing a GPU-parallel search pipeline and using multiple GPUs for parallel acceleration, we can achieve parallel traversal search and candidate screening within the Fourier frequency range, improving the efficiency and accuracy of pulsar binary searches.
Through GPU parallel computing, the pulsar binary search process is significantly accelerated, the search speed is doubled, multi-GPU parallel processing is supported, the speed of celestial body discovery is greatly improved, and the demand for real-time processing and efficient analysis is met.
Smart Images

Figure CN118377537B
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of Fourier domain accelerated search for pulsars, and in particular relates to a GPU parallel search method and device for Fourier domain accelerated search for pulsars. Background Art
[0002] Pulsars are high-density matter bodies in the universe. They have stable rotation periods, fast rotation speeds, and strong electromagnetic radiation capabilities. Therefore, they play an important role in astronomical research and are crucial for in-depth research in fields such as cosmology and astrophysics. Among them, binary pulsar systems are composed of two pulsars orbiting each other, providing scientists with a unique perspective to deeply explore the mysteries of the universe and at the same time providing the possibility of verifying the general theory of relativity.
[0003] However, the orbital motion in binary systems also poses a challenge to the search and observation of pulsars. Due to the orbital motion in binary systems, the apparent spin frequency of pulsars will drift, reducing the sensitivity of periodic searches. To solve this problem, an acceleration search method that takes into account the influence of orbital acceleration is needed.
[0004] With the continuous advancement of astronomical observation technology, the amount of pulsar observation data has shown explosive growth. Especially since the Five-hundred-meter Aperture Spherical radioTelescope (FAST) was officially put into operation, with the efficient operation of FAST, the amount of observation data generated each year will reach the PB level, and at least tens of millions of pulsar candidates will be generated. A large amount of observation data needs to be searched quickly and needs to meet the requirements of real-time processing. Faced with such a huge amount of data, traditional data processing methods can no longer meet the needs, and new technical means are urgently needed to improve the speed and efficiency of data processing.
[0005] In this context, the Fourier Domain Accelerated Search (FDAS) algorithm came into being. The FDAS algorithm is an accelerated search method based on Fourier transform, which can efficiently process observation data in the frequency domain, thereby realizing rapid search and identification of pulsars. Compared with traditional time domain search methods, the FDAS algorithm has higher search speed and lower computational complexity, which can greatly improve the efficiency and accuracy of pulsar searches. However, based on the current CPU platform, most of them are serial structures with slow search speeds, which still cannot meet these computational challenges.
[0006] In order to meet the requirements of efficient and real-time processing, GPU, with its powerful parallel computing capabilities and efficient data processing capabilities, provides strong support for the efficient operation of the FDAS algorithm, and the GPU implementation of the FDAS algorithm has become a research hotspot. By using GPU for parallel computing, it is expected to achieve rapid processing and analysis of observation data, thereby realizing real-time search and identification of pulsars, which will greatly shorten the pulsar search cycle, improve the real-time and accuracy of the search, and provide richer data and deeper insights for astronomical research. With the continuous advancement of observation technology and the continuous research of data processing methods, a GPU implementation of the FDAS algorithm is urgently needed to accelerate the search process for binary pulsars. Summary of the invention
[0007] In view of the above, the purpose of the present invention is to provide a GPU parallel search method and device for Fourier domain accelerated search of pulsars, which supports the use of multi-GPU parallel acceleration, can exponentially improve the pulsar search process, and greatly accelerate the speed of celestial body discovery in this discipline.
[0008] In order to achieve the above-mentioned invention object, the technical solution provided by the present invention is as follows:
[0009] In a first aspect, an embodiment of the present invention provides a GPU parallel search method for Fourier domain accelerated search of pulsar binary stars, comprising the following steps:
[0010] Get the pre-processed file of the pulsar observation data, read the parameters including the lowest Fourier frequency and the highest Fourier frequency, create a subharmonic information array set from it, and copy the required data to the GPU memory;
[0011] In the GPU, the frequency step length multiplied by the Fourier frequency range of the batch size is used as the step length, and the subharmonic information array set is traversed and searched from the lowest Fourier frequency to the highest Fourier frequency to obtain the candidate set. Each traversal search process includes: calculating the initial subharmonic array and the subharmonic array set other than the initial subharmonic array, and then calculating the harmonic summation and candidate screening in parallel;
[0012] All the candidate sets that meet the requirements are sorted according to the positions of the candidates in the initial subharmonic array, and the sorted candidate sets are copied from the GPU back to the host memory and saved.
[0013] Preferably, in the GPU, calculating the initial subharmonic array includes:
[0014] For the Fourier frequency range of the frequency step multiplied by the batch size, the subharmonic information array corresponding to the first summation in the first harmonic summation stage in the subharmonic information array set is obtained, and the subharmonic information array is fast Fourier transformed by the GPU to obtain the initial subharmonic array in the Fourier frequency range.
[0015] Preferably, in the GPU, calculating a set of subharmonic arrays other than the initial subharmonic array includes:
[0016] For a Fourier frequency range of the frequency step multiplied by the batch size, obtain the subharmonic information arrays corresponding to the summation times of all harmonic summation stages except the first summation in the first harmonic summation stage in the subharmonic information array set, traverse each summation in each harmonic summation stage except the first summation in the first harmonic summation stage through the GPU, perform fast Fourier transform on the subharmonic information array through the GPU, and obtain the subharmonic array set except the initial subharmonic array within the Fourier frequency range.
[0017] Preferably, in a GPU, the harmonic summation and candidate screening are calculated in parallel, including:
[0018] For the element value corresponding to any position in the initial subharmonic array, find the element value corresponding to the position in each subharmonic array in the subharmonic array set and form an element set;
[0019] The GPU starts multiple threads in parallel to perform parallel calculations, wherein for each thread, first, the element value corresponding to any position in the initial subharmonic array is compared with the candidate screening threshold corresponding to the first harmonic summation stage. If the element value corresponding to any position is greater than the candidate screening threshold corresponding to the first harmonic summation stage, the arbitrary position and the element value are added to the candidate set. Then, according to the element value of the arbitrary position, the element set and the candidate screening threshold corresponding to each harmonic summation stage, the harmonic summation and candidate screening process of all harmonic summation stages are executed for the element value of the arbitrary position in the initial subharmonic array.
[0020] Preferably, for the element value at any position in the initial subharmonic array, the harmonic summation and candidate screening process of all harmonic summation stages is performed, including:
[0021] The element value, element set and candidate screening threshold corresponding to each harmonic summation stage are put into a thread of the GPU, and each harmonic summation stage and each summation therein are traversed. When the first summation is performed, the harmonic value of the first summation of the first harmonic summation stage in the corresponding element set is accumulated to the element value to obtain the current accumulated value. Subsequent summations will successively accumulate the harmonic values based on the previous accumulated value. When a harmonic summation stage ends, the total accumulated value of this harmonic summation stage is compared with the candidate screening threshold corresponding to this harmonic summation stage. If the total accumulated value of this harmonic summation stage is greater than the candidate screening threshold corresponding to this harmonic summation stage, the position of the corresponding element value and the total accumulated value of this harmonic summation stage are added to the candidate set.
[0022] Preferably, the number of the multiple threads launched in parallel by the GPU is consistent with the number of positions in the initial subharmonic array.
[0023] In a second aspect, to achieve the above-mentioned invention object, an embodiment of the present invention further provides a GPU parallel search device for Fourier domain accelerated search of pulsar binary stars, comprising: an observation data acquisition module, a GPU parallel search module and a candidate set storage module;
[0024] The observation data acquisition module is used to obtain the pre-processed file of the pulsar observation data, read the parameters including the lowest Fourier frequency and the highest Fourier frequency, create a subharmonic information array set from it, and copy the required data to the GPU memory;
[0025] The GPU parallel search module is used to traverse and search the subharmonic information array set from the lowest Fourier frequency to the highest Fourier frequency in the GPU to obtain a candidate set, with the frequency step length multiplied by the Fourier frequency range of the batch size as the step length, and each traversal search process includes: calculating the initial subharmonic array and the subharmonic array set other than the initial subharmonic array, and then calculating the harmonic summation and candidate screening in parallel;
[0026] The candidate set storage module is used to sort all the candidate sets that meet the requirements according to the positions of the candidates in the initial subharmonic array, and copy the sorted candidate sets from the GPU back to the host memory and save them.
[0027] In the third aspect, in order to achieve the above-mentioned invention objectives, an embodiment of the present invention also provides a GPU parallel search device for Fourier domain accelerated search of pulsars, comprising a memory and one or more processors, wherein the memory is used to store computer programs, and the processor is used to implement the above-mentioned GPU parallel search method for Fourier domain accelerated search of pulsars when executing the computer program.
[0028] In a fourth aspect, in order to achieve the above-mentioned purpose of the invention, an embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a computer, the above-mentioned pulsar Fourier domain accelerated search GPU parallel search method is implemented.
[0029] In a fifth aspect, in order to achieve the above-mentioned purpose of the invention, an embodiment of the present invention further provides a computer product, which includes a computer program. When the computer program is executed by a processor, it implements the above-mentioned GPU parallel search method for Fourier domain accelerated search of pulsars.
[0030] Compared with the prior art, the present invention has the following beneficial effects:
[0031] The present invention designs a GPU-parallel search pipeline, and uses a large number of GPU threads to parallelly execute the harmonic summation and candidate screening processes, which can exponentially improve the pulsar search process. At the same time, accelerating the search calculation process will require processing a large number of files, and supports the use of multiple GPUs to accelerate the processing of different file data in parallel, which helps to greatly improve the discovery speed of celestial bodies in this subject. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0033] Figure 1 It is a flowchart of a GPU parallel search method for Fourier domain accelerated search of pulsar binary stars provided by an embodiment of the present invention;
[0034] Figure 2 It is a schematic diagram of a process of traversing and searching a sub-harmonic information array set provided by an embodiment of the present invention;
[0035] Figure 3 is a schematic diagram of a process of GPU parallel computing harmonic summation and candidate screening provided by an embodiment of the present invention;
[0036] Figure 4 2 is a schematic diagram of the structure of a GPU parallel search device for Fourier domain accelerated search of pulsar binary stars provided by an embodiment of the present invention;
[0037] Figure 5 It is a structural diagram of a GPU parallel search device for Fourier domain accelerated search of pulsar binary stars. DETAILED DESCRIPTION
[0038] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific implementation methods described herein are only used to explain the present invention and do not limit the scope of protection of the present invention.
[0039] The inventive concept of the present invention is: in response to the problem of slow speed of Fourier domain accelerated search algorithm for pulsars in the prior art, the embodiment of the present invention provides a GPU parallel search method and device for Fourier domain accelerated search for pulsars. By designing a GPU parallel search pipeline and executing harmonic summation and candidate screening in parallel through a large number of GPU threads, the pulsar search process can be improved exponentially, and at the same time, it supports the use of multi-GPU parallel acceleration, greatly accelerating the speed of celestial body discovery in this discipline.
[0040] Figure 1 FIG. 1 is a flow chart of a GPU parallel search method for Fourier domain accelerated search of pulsar binary stars provided by an embodiment of the present invention. Figure 1 As shown, the embodiment provides a GPU parallel search method for Fourier domain accelerated search of pulsar binary stars, including the following steps:
[0041] S1, obtains the pulsar observation data, reads the parameters including the lowest Fourier frequency and the highest Fourier frequency, creates a subharmonic information array set from the observation data, and copies the required data to the GPU memory.
[0042] Specifically, the program integer parameter batch size Batchsize, the serial number a of each harmonic summation stage, the total number A of the harmonic summation stages, the number of summations b in each harmonic summation stage, and the candidate screening threshold Powercut (a) corresponding to each harmonic summation stage are obtained. In the embodiment, the obs->powercut[twon_to_index()] method in the accel_utils.c file in the presto software is used to calculate the candidate screening threshold Powercut (a) according to the total number of summations in the current harmonic summation stage.
[0043] Obtain the pre-processed file of the pulsar observation data fits file, which includes performing RFI labeling (RFIFIND), de-dispersion and de-interference (PrepSubband) and Fourier transform (RealFFT) on the observation data in the Presto software. Since there are many pre-processed files, they can be processed in parallel by multiple GPUs. Read the parameters including the lowest Fourier frequency and the highest Fourier frequency from the pre-processed file, create a subharmonic information array set from it, and copy the required data to the GPU video memory. In the embodiment, the create_subharminfos function in the accelsearch.c file in the Presto software is used to calculate the subharmonic information array.
[0044] The required data including the lowest Fourier frequency, the highest Fourier frequency and the subharmonic information array are copied to the GPU video memory.
[0045] S2, in the GPU, the frequency step multiplied by the Fourier frequency range of the batch size is used as the step size, and the subharmonic information array set is traversed and searched from the lowest Fourier frequency to the highest Fourier frequency to obtain the candidate set. Each traversal search process includes: calculating the initial subharmonic array and calculating the thickness of the subharmonic array set except the initial subharmonic array, and calculating the harmonic summation and candidate screening in parallel.
[0046] Specifically, the process of traversing and searching the subharmonic information array set is as follows: Figure 2 As shown, each traversal search includes the following steps:
[0047] S2.1, GPU calculates the initial subharmonic array:
[0048] For the Fourier frequency range rstep*Batchsize of the set frequency step (rstep) multiplied by the batch size (Batchsize), obtain the subharmonic information array corresponding to the first summation (b=1) in the first harmonic summation stage (a=1) in the subharmonic information array set, and perform fast Fourier transform on the subharmonic information array through GPU to obtain the initial subharmonic array within the Fourier frequency range.
[0049] S2.2, GPU calculation of subharmonic array collection:
[0050] For the Fourier frequency range of rstep*Batchsize, obtain the subharmonic information arrays corresponding to the summation times of all harmonic summation stages except the first summation in the first harmonic summation stage in the subharmonic information array set, traverse each summation b in each harmonic summation stage a except the first summation in the first harmonic summation stage through the GPU, perform fast Fourier transform on the subharmonic information array through the GPU, and obtain the subharmonic array set except the initial subharmonic array within the Fourier frequency range.
[0051] In the embodiment, for performing fast Fourier transform on the subharmonic information array by GPU in S2.1 and S2.2, the pre-processing logic before the fast Fourier transform in the accelerate.c file in the presto software is executed, and then the fast Fourier transform is performed by the cufftExecC2C function built into the GPU, and then the post-processing logic after the fast Fourier transform in the accelerate.c file in the presto software is executed.
[0052] S2.3, GPU parallel computing harmonic summation and candidate screening, such as Figure 3 As shown:
[0053] S2.3.1, perform element matching of the corresponding positions of the initial subharmonic array and the subharmonic array set. Input the initial subharmonic array and the subharmonic array set, first determine that the length of the initial subharmonic array is F, that is, corresponding to F positions, for the element value k (that is, the pulse signal power) corresponding to any position index in the initial subharmonic array, find the element value k corresponding to the position index of each subharmonic array in the subharmonic array set and form the element set S_index.
[0054] S2.3.2, GPU starts multiple threads in parallel to perform parallel calculations according to each position. GPU starts F threads in parallel to perform parallel calculations, and the number of multiple threads started in parallel by GPU is consistent with the number of positions in the initial subharmonic array. For each thread, first, compare the element value k corresponding to any position index in the initial subharmonic array with the candidate screening threshold Powercut (a=1) corresponding to the first harmonic summation stage. If the element value k corresponding to any position is greater than the candidate screening threshold Powercut (a=1) corresponding to the first harmonic summation stage, then add the position index and element value k to the candidate set, and then, according to the element value k of the position index, the element set S_index and the set Powercut (A) of candidate screening thresholds corresponding to all harmonic summation stages, calculate the harmonic summation and candidate screening process of all harmonic summation stages of the element value k at the position index in the initial subharmonic array to obtain the candidate set.
[0055] In which, when calculating the harmonic summation and candidate screening process of all harmonic summation stages of the index element value k at the position in the initial subharmonic array, the element value k, the element set S_index and the candidate screening threshold Powercut (A) corresponding to all harmonic summation stages are placed in a thread of the GPU, and each harmonic summation stage and each summation therein are traversed. In which, when the first summation is performed, the harmonic value of the subsummation of the harmonic summation stage in the corresponding element set S_index (similar to k, which is the power of the pulse signal) is accumulated to the element value k The current accumulated value t is obtained from the above. Subsequent summations will successively accumulate harmonic values based on the previous accumulated value. When a harmonic summation stage ends, the total accumulated value T of the harmonic summation stage (i.e., the accumulated power value) is compared with the candidate screening threshold Powercut (a) corresponding to the harmonic summation stage. If the total accumulated value T of the harmonic summation stage is greater than the candidate screening threshold Powercut (a) corresponding to the harmonic summation stage, the position index of the element value and the total accumulated value T of the current harmonic summation stage are added to the candidate set.
[0056] S3, sorting all the candidate sets that meet the requirements according to the positions of the candidates in the initial subharmonic array, and copying the sorted candidate sets from the GPU back to the host memory and saving them.
[0057] Specifically, after all the parallel searches of the F threads of the GPU in the traversal search process are completed, the candidate sets that meet the requirements in all the harmonic summation stages are sorted according to the positions of the candidates in the initial subharmonic array, and then the sorted candidate sets are copied from the GPU back to the host memory and saved.
[0058] In summary, a GPU parallel search method for Fourier domain accelerated search of binary pulsars can quickly and effectively identify potential binary pulsar signals, improve the computing power of pulsar searches by orders of magnitude, and greatly improve the search efficiency. The screened candidate set data will be used in the discovery and research of binary pulsars, which has important scientific value and practical significance.
[0059] Based on the same inventive concept, Figure 4 As shown, the embodiment of the present invention further provides a pulsar Fourier domain accelerated search GPU parallel search device 400, including: an observation data acquisition module 410, a GPU parallel search module 420 and a candidate set storage module 430.
[0060] The observation data acquisition module 410 is used to acquire the pulsar observation data, read the parameters including the lowest Fourier frequency and the highest Fourier frequency, create a subharmonic information array set from the observation data, and copy the required data to the GPU memory;
[0061] The GPU parallel search module 420 is used to traverse and search the subharmonic information array set from the lowest Fourier frequency to the highest Fourier frequency in the GPU to obtain a candidate set, with the frequency step length multiplied by the Fourier frequency range of the batch size as the step length, and each traversal search process includes: calculating the initial subharmonic array and the subharmonic array set other than the initial subharmonic array, and then calculating the harmonic summation and candidate screening in parallel;
[0062] The candidate set storage module 430 is used to sort all the candidate sets that meet the screening requirements according to the positions of the candidates in the initial subharmonic array, and copy the sorted candidate sets from the GPU back to the host memory and save them.
[0063] Based on the same inventive concept, Figure 5 As shown, an embodiment of the present invention further provides a pulsar Fourier domain accelerated search GPU parallel search device 500, comprising: a memory 510 and one or more processors 520, the memory 510 is used to store computer programs, and the processor 520 is used to implement the above-mentioned pulsar Fourier domain accelerated search GPU parallel search method when executing the computer program.
[0064] Based on the same inventive concept, an embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a computer, the above-mentioned GPU parallel search method for Fourier domain accelerated search of pulsar binary stars is implemented.
[0065] Based on the same inventive concept, an embodiment of the present invention further provides a computer product, which includes a computer program. When the computer program is executed by a processor, the above-mentioned GPU parallel search method for Fourier domain accelerated search of pulsars is implemented.
[0066] It should be noted that the device for accelerating the search for binary pulsars by GPU in Fourier domain, the device for accelerating the search for binary pulsars by GPU in Fourier domain, the computer-readable storage medium and the computer product provided in the above-mentioned embodiments all belong to the same inventive concept as the method for accelerating the search for binary pulsars by GPU in Fourier domain. The specific implementation process is detailed in the embodiment of the method for accelerating the search for binary pulsars by GPU in Fourier domain, which will not be repeated here.
[0067] The specific implementation methods described above provide a detailed description of the technical solutions and beneficial effects of the present invention. It should be understood that the above is only the most preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, supplements and equivalent substitutions made within the scope of the principles of the present invention should be included in the protection scope of the present invention.
Claims
1. A GPU parallel search method for Fourier domain accelerated search of pulsar binary stars. It is characterized in that The following steps are involved: Get the pre-processed file of the pulsar observation data, read the parameters including the lowest Fourier frequency and the highest Fourier frequency, create a subharmonic information array set from it, and copy the required data to the GPU memory; In the GPU, the frequency step length multiplied by the Fourier frequency range of the batch size is used as the step length, and the subharmonic information array set is traversed and searched from the lowest Fourier frequency to the highest Fourier frequency to obtain the candidate set. Each traversal search process includes: calculating the initial subharmonic array and the subharmonic array set other than the initial subharmonic array, and then calculating the harmonic summation and candidate screening in parallel; Among them, parallel calculation of harmonic summation and candidate screening includes: for the element value corresponding to any position in the initial subharmonic array, find the element value corresponding to the position of each subharmonic array in the subharmonic array set and form an element set; GPU starts multiple threads in parallel to perform parallel calculations, wherein for each thread, first, compare the element value corresponding to any position in the initial subharmonic array with the candidate screening threshold corresponding to the first harmonic summation stage, if the element value corresponding to any position is greater than the candidate screening threshold corresponding to the first harmonic summation stage, then add the any position and element value to the candidate set, and then, according to the element value of the any position, the element set and the candidate screening threshold corresponding to each harmonic summation stage, perform all harmonic summations for the element value of the any position in the initial subharmonic array. The harmonic summation and candidate screening process of each stage is to put the element value, element set and candidate screening threshold corresponding to each harmonic summation stage into a thread of the GPU, and traverse each harmonic summation stage and each summation therein. In the first summation, the harmonic value of the first summation of the first harmonic summation stage in the corresponding element set is accumulated to the element value to obtain the current accumulated value. The subsequent summation will successively accumulate the harmonic value based on the previous accumulated value. When a harmonic summation stage ends, the total accumulated value of this harmonic summation stage is compared with the candidate screening threshold corresponding to this harmonic summation stage. If the total accumulated value of this harmonic summation stage is greater than the candidate screening threshold corresponding to this harmonic summation stage, the position of the corresponding element value and the total accumulated value of this harmonic summation stage are added to the candidate set. All the candidate sets that meet the requirements are sorted according to the positions of the candidates in the initial subharmonic array, and the sorted candidate sets are copied from the GPU back to the host memory and saved.
2. The GPU parallel search method for Fourier domain accelerated search of pulsar binary stars according to claim 1, It is characterized in that On the GPU, the initial subharmonic array is calculated, including: For the Fourier frequency range of the frequency step multiplied by the batch size, the subharmonic information array corresponding to the first summation in the first harmonic summation stage in the subharmonic information array set is obtained, and the subharmonic information array is fast Fourier transformed by the GPU to obtain the initial subharmonic array in the Fourier frequency range.
3. The GPU parallel search method for Fourier domain accelerated search of pulsar binary stars according to claim 1, It is characterized in that On the GPU, a set of subharmonic arrays other than the initial subharmonic array is calculated, including: For a Fourier frequency range of the frequency step multiplied by the batch size, obtain the subharmonic information arrays corresponding to the summation times of all harmonic summation stages except the first summation in the first harmonic summation stage in the subharmonic information array set, traverse each summation in each harmonic summation stage except the first summation in the first harmonic summation stage through the GPU, perform fast Fourier transform on the subharmonic information array through the GPU, and obtain the subharmonic array set except the initial subharmonic array within the Fourier frequency range.
4. The GPU parallel search method for Fourier domain accelerated search of pulsar binary stars according to claim 1, It is characterized in that The GPU launches multiple threads in parallel in a number that matches the number of positions in the initial subharmonic array.
5. A GPU parallel search device for Fourier domain accelerated search of pulsar binary stars, It is characterized in that include: Observation data acquisition module, GPU parallel search module and candidate set storage module; The observation data acquisition module is used to obtain the pre-processed file of the pulsar observation data, read the parameters including the lowest Fourier frequency and the highest Fourier frequency, create a subharmonic information array set from it, and copy the required data to the GPU memory; The GPU parallel search module is used to traverse and search the subharmonic information array set from the lowest Fourier frequency to the highest Fourier frequency in the GPU to obtain a candidate set, with the frequency step length multiplied by the Fourier frequency range of the batch size as the step length, and each traversal search process includes: calculating the initial subharmonic array and the subharmonic array set other than the initial subharmonic array, and then calculating the harmonic summation and candidate screening in parallel; Among them, parallel calculation of harmonic summation and candidate screening includes: for the element value corresponding to any position in the initial subharmonic array, find the element value corresponding to the position of each subharmonic array in the subharmonic array set and form an element set; GPU starts multiple threads in parallel to perform parallel calculations, wherein for each thread, first, compare the element value corresponding to any position in the initial subharmonic array with the candidate screening threshold corresponding to the first harmonic summation stage, if the element value corresponding to any position is greater than the candidate screening threshold corresponding to the first harmonic summation stage, then add the any position and element value to the candidate set, and then, according to the element value of the any position, the element set and the candidate screening threshold corresponding to each harmonic summation stage, perform all harmonic summations for the element value of the any position in the initial subharmonic array. The harmonic summation and candidate screening process of each stage is to put the element value, element set and candidate screening threshold corresponding to each harmonic summation stage into a thread of the GPU, and traverse each harmonic summation stage and each summation therein. In the first summation, the harmonic value of the first summation of the first harmonic summation stage in the corresponding element set is accumulated to the element value to obtain the current accumulated value. The subsequent summation will successively accumulate the harmonic value based on the previous accumulated value. When a harmonic summation stage ends, the total accumulated value of this harmonic summation stage is compared with the candidate screening threshold corresponding to this harmonic summation stage. If the total accumulated value of this harmonic summation stage is greater than the candidate screening threshold corresponding to this harmonic summation stage, the position of the corresponding element value and the total accumulated value of this harmonic summation stage are added to the candidate set. The candidate set storage module is used to sort all the candidate sets that meet the requirements according to the positions of the candidates in the initial subharmonic array, and copy the sorted candidate sets from the GPU back to the host memory and save them.
6. A GPU parallel search device for Fourier domain accelerated search of pulsar binary stars, comprising a memory and one or more processors, wherein the memory is used to store a computer program, It is characterized in that The processor is used to implement the GPU parallel search method for Fourier domain accelerated search of pulsar binary stars as described in any one of claims 1 to 4 when executing the computer program.
7. A computer-readable storage medium having a computer program stored thereon, It is characterized in that When the computer program is executed by a computer, the GPU parallel search method for Fourier domain accelerated search of pulsar binary stars described in any one of claims 1 to 4 is implemented.
8. A computer product comprising a computer program, It is characterized in that When the computer program is executed by a processor, the GPU parallel search method for Fourier domain accelerated search of pulsar binary stars described in any one of claims 1 to 4 is implemented.
