Multi-processor parallel computing method for decoding underwater acoustic communication, computer and storage medium
By employing a multiprocessor parallel computing approach, and utilizing task allocation and data sharing between the main processor and coprocessors, the problem of high computational complexity in underwater acoustic communication decoding algorithms is solved, thereby improving hardware resource utilization and algorithm real-time performance.
Patent Information
- Application Number
- CN202311630912.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-11-30
- Publication Date
- 2026-11-24
- Estimated Expiration
- 2043-11-30
AI Technical Summary
Existing underwater acoustic communication decoding algorithms have high computational complexity and require a large amount of computing resources. In particular, how to quickly complete communication decoding of multiple parallel signal channels under low signal-to-noise ratio conditions is an urgent problem to be solved.
A multi-processor parallel computing method is adopted, which utilizes multiple coprocessors to perform parallel computing through task allocation and data sharing between the main processor and coprocessors, and realizes underwater acoustic communication decoding.
It improves hardware resource utilization and algorithm real-time performance, optimizes the application of processor computing resources, and achieves fast underwater acoustic communication decoding.
Smart Images

Figure CN117459154B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of underwater acoustic communication, and in particular to a multiprocessor parallel computing method for underwater acoustic communication decoding, a computer, and a storage medium. Background Technology
[0002] Underwater acoustic communication is a technology that uses underwater sound waves to transmit information and is widely used in fields such as marine resource exploration, underwater robot control, and underwater environmental monitoring. However, due to the complexity of the underwater environment and the special characteristics of sound wave transmission, underwater acoustic communication faces many challenges, such as signal attenuation, multipath effects, and noise interference.
[0003] To improve the performance of underwater acoustic communication, researchers have proposed various signal processing algorithms, such as equalization algorithms, encoding algorithms, and decoding algorithms. However, these algorithms have high computational complexity and require a large amount of computing resources.
[0004] Under low signal-to-noise ratio conditions, large-scale arrays are usually used for beamforming to improve the receiving gain and thus enhance communication reliability. In particular, how to quickly complete the communication decoding algorithm simultaneously with multiple parallel signal channels when multiple beams are preformed is an urgent problem to be solved. Summary of the Invention
[0005] The main objective of this invention is to provide a multiprocessor parallel computing method, computer, and storage medium for underwater acoustic communication decoding, aiming to solve the problem that existing methods cannot achieve rapid underwater acoustic communication decoding.
[0006] To achieve the above objectives, the present invention provides a multiprocessor parallel computing method for underwater acoustic communication decoding, comprising:
[0007] S1. Obtain the computing resources of the processor hardware and allocate tasks. The processor hardware includes the main processor and multiple coprocessors corresponding to the main processor. The coprocessors include multiple cores.
[0008] S2. Obtain the establishment status of the communication group between the main processor and the coprocessor, and reallocate tasks;
[0009] S3. Reassign tasks based on the data-parallel computing status of multiple coprocessors.
[0010] Furthermore, it also includes step S4, which includes:
[0011] After receiving the communication signal from the coprocessor, the main processor divides the communication signal into multiple pieces of information to be decoded.
[0012] The main processor sends multiple pieces of information to be decoded, along with their corresponding decoding information, to multiple coprocessors.
[0013] The main processor receives the decoded information generated by the coprocessor after processing the information to be decoded.
[0014] Further, step S1 includes:
[0015] S101. By implementing an initialization thread on the main processor, the number of input channels for the front-end acquisition signal is obtained, and the optimal number of communication decoding beamforming channels is calculated.
[0016] S102. By implementing an initialization thread on the main processor, the computing resources of the processor hardware are obtained, including the number of coprocessors and the number of effective cores of each coprocessor, and the clock frequency of each effective core is also obtained.
[0017] S103. Based on the minimum clock frequency required by each algorithm in the underwater acoustic communication decoding program, calculate the computing power requirements, pre-allocate the number of tasks for each core, and establish a computing task allocation table.
[0018] Further, step S103 is followed by:
[0019] S104. If the processor hardware's computing resources are less than the computing power requirement, then in step S101, the number of communication decoding beamforming channels is extracted at equal intervals to maintain the system's reliability.
[0020] Further, step S103 is followed by:
[0021] S105. If the processor hardware's computing resources exceed the computing power requirements, then in the final allocation of computing resources, the excess computing resources will be allocated to empty data as a hot backup.
[0022] Further, step S2 includes:
[0023] Obtain information on the establishment of the communication group between the main processor and the coprocessor;
[0024] If the communication group fails to be established, the status of the coprocessor in the current group is determined to be abnormal, and step S103 is executed to update the task allocation table.
[0025] Further, step S3 includes:
[0026] After the main processor distributes the data to be processed to the coprocessor core, if it does not receive a receipt completion acknowledgment from the core, it determines that the core is offline and executes step S103 to update the task allocation table.
[0027] The present invention also provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the steps of the above-described multiprocessor parallel computing underwater acoustic communication decoding method.
[0028] The present invention also provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the steps of the above-described multiprocessor parallel computing underwater acoustic communication decoding method.
[0029] The multiprocessor parallel computing underwater acoustic communication decoding method, computer, and storage medium provided by this invention read the computing power of the local processor hardware and the computing power requirements of the algorithm to be run, pre-allocate algorithm adaptation modules, and flexibly and dynamically load underwater acoustic communication algorithms on multiprocessor platforms of different scales, thereby improving hardware resource utilization and algorithm real-time performance. The main processor allocates tasks and data, and other coprocessors perform corresponding communication decoding operations and result feedback. By utilizing master-slave mutual integrated scheduling and data sharing, multiprocessor parallel computing underwater acoustic communication is realized, thereby significantly optimizing the application of processor hardware computing resources. Attached Figure Description
[0030] Figure 1 This is a schematic diagram of the steps of the multiprocessor parallel computing underwater acoustic communication decoding method in the first embodiment of the present invention;
[0031] Figure 2 This is a diagram of the data transmission channel between different central processing units.
[0032] Figure 3 This is the processing workflow of the coprocessor in the second embodiment of the present invention;
[0033] Figure 4 This is a schematic diagram in the third embodiment of the present invention, showing how the main processor periodically sends fixed-length data to the cores of different coprocessors through different task groups;
[0034] Figure 5 This is a schematic diagram of step S4 in the multiprocessor parallel computing underwater acoustic communication decoding method of the fourth embodiment of the present invention;
[0035] Figure 6 This is a schematic diagram of the computer of the present invention.
[0036] The realization of the objective, functional features and advantages of the present invention will be further explained in conjunction with the embodiments and with reference to the accompanying drawings. Detailed Implementation
[0037] It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
[0038] Those skilled in the art will understand that, unless specifically stated otherwise, the singular forms “a,” “an,” “the,” “the,” “the,” and “the” used herein may also include the plural forms. It should be further understood that the term “comprising” as used in this specification means the presence of the stated features, integers, steps, operations, elements, units, modules, and / or components, but does not exclude the presence or addition of one or more other features, integers, steps, operations, elements, units, modules, components, and / or groups thereof. It should be understood that when we say an element is “connected” or “coupled” to another element, it can be directly connected or coupled to the other element, or there may be intermediate elements. Furthermore, “connected” or “coupled” as used herein can include wireless connection or wireless coupling. The term “and / or” as used herein includes all or any of the units and all combinations of one or more associated listed items.
[0039] It will be understood by those skilled in the art that, unless otherwise defined, all terms used herein (including technical and scientific terms) have the same meaning as commonly understood by one of ordinary skill in the art to which this invention pertains. It should also be understood that terms such as those defined in general dictionaries should be understood to have the same meaning as in the context of the prior art, and should not be interpreted in an idealized or overly formal sense unless specifically defined as herein.
[0040] Reference Figure 1 In one embodiment of the present invention, a multiprocessor parallel computing method for decoding underwater acoustic communication includes:
[0041] S1. Obtain the computing resources of the processor hardware and allocate tasks. The processor hardware includes the main processor and multiple coprocessors corresponding to the main processor. The coprocessors include multiple cores.
[0042] S2. Obtain the establishment status of the communication group between the main processor and the coprocessor, and reallocate tasks;
[0043] S3. Reassign tasks based on the data-parallel computing status of multiple coprocessors.
[0044] In existing technologies, underwater acoustic communication algorithms have high computational complexity and require a large amount of computing resources. Under low signal-to-noise ratio conditions, large-scale arrays are usually used for beamforming to improve the receiving gain and thus improve communication reliability. In particular, how to quickly complete the communication decoding algorithm simultaneously with multiple parallel signal channels under multiple pre-formed beams is an urgent problem to be solved.
[0045] refer to Figure 1In this invention, in step S1, the processor hardware's computing resources are acquired and computing tasks are allocated. The processor hardware includes a main processor (MAIN CPU) and multiple coprocessors (CPUs) corresponding to the main processor. Each coprocessor includes multiple cores. The task allocation program allocates resources for the tasks to be executed based on the acquired processor hardware. The total task processing volume and the computing power required for modular task processing are defined by software; the default is to use a single core for single-channel communication decoding.
[0046] In step S2, the establishment status of the communication group between the main processor and the coprocessor is obtained, and tasks are reallocated. The establishment of the communication group completes the construction of the data channel between the main processor and the coprocessor. The success of the communication group establishment depends on the operating status of the coprocessor itself and the smoothness of the data channel between the main processor and the coprocessor. Therefore, by querying the completion status of the communication group establishment dynamically, the communication situation can be determined, thereby enabling the self-organizing allocation of parallel tasks.
[0047] In step S3, tasks are redistributed based on the parallel data computation performed by the multiple coprocessors. Since fixed-length data is transmitted at regular intervals, data and task synchronization between the main processor and coprocessors can be achieved through the periodic distribution of group data, without the need for additional redundancy measures.
[0048] It should be noted that in some cases, the processor hardware consists of multiple coprocessors running in parallel without a main processor. In this case, the main processor in this invention is one of the multiple coprocessors, meaning that the coprocessor is functionally the main processor.
[0049] In summary, by reading the computing power of the local processor hardware and the computing power requirements of the algorithm to be run, and pre-allocating the algorithm adaptation module, underwater acoustic communication algorithms can be flexibly and dynamically loaded on multiprocessor platforms of different scales, improving hardware resource utilization and algorithm real-time performance. The main processor allocates tasks and data, while other coprocessors perform corresponding communication decoding operations and result feedback. By utilizing master-slave integrated scheduling and data sharing, multiprocessor parallel computing of underwater acoustic communication is achieved, thereby significantly optimizing the use of processor hardware computing resources.
[0050] Reference Figure 5 The multiprocessor parallel computing underwater acoustic communication decoding method further includes step S4, wherein step S4 includes:
[0051] After receiving the communication signal from the coprocessor, the main processor divides the communication signal into multiple pieces of information to be decoded.
[0052] The main processor sends multiple pieces of information to be decoded, along with their corresponding decoding information, to multiple coprocessors.
[0053] The main processor receives the decoded information generated by the coprocessor after processing the information to be decoded.
[0054] In the aforementioned embodiments, the signal processing before decoding was relatively independent; that is, the main processor and coprocessors could synchronize tasks and data through unidirectional communication. However, to maximize the capabilities of multi-core parallel processing in underwater acoustic communication, in this embodiment, tasks such as decoding algorithms are also divided into parallel processing. Through the synchronization relay of the main processor, the communication signal calculated within the core of one coprocessor is transmitted to multiple coprocessors for parallel processing. Specifically:
[0055] 1. After the coprocessor completes the parallel computation for demodulation, if there is a communication signal in the current computation beam, the coprocessor processing the current beam will send the result back to the main processor and wait for the next round of data broadcast.
[0056] 2. After receiving the communication signal processed by the coprocessor, the main processor divides the communication signal into multiple pieces of information to be decoded. In the next round of data transmission, the information to be decoded and the decoding branch are sent to the coprocessor, which then processes the data according to the decoding branch. Figure 5 The signal is processed and then decoded.
[0057] 3. After the coprocessor finishes decoding the information to be decoded, it sends the calculated branch information (decoding information) back to the main processor.
[0058] 4. The main processor makes a decision based on the decoding result and uploads the information.
[0059] In one embodiment, step S1 includes:
[0060] S101. By implementing an initialization thread on the main processor, the number of input channels for the front-end acquisition signal is obtained, and the optimal number of communication decoding beamforming channels is calculated.
[0061] S102. By implementing an initialization thread on the main processor, the computing resources of the processor hardware are obtained, including the number of coprocessors and the number of effective cores of each coprocessor, and the clock frequency of each effective core is also obtained.
[0062] S103. Based on the minimum clock frequency required by each algorithm in the underwater acoustic communication decoding program, calculate the computing power requirements, pre-allocate the number of tasks for each core, and establish a computing task allocation table.
[0063] In this embodiment, in step S101, the number of input channels for the front-end acquisition signal is obtained through an initialization thread implemented on the main processor. The specific calculation method of the software is not the focus, as long as the optimal (relative) number of communication decoding beamforming channels can be calculated, based on the software-defined parameters.
[0064] In step S102, the computing resources of the processor hardware are obtained by capturing information such as the number and performance of the coprocessors. The computing resources described in the above steps are the initial computing resources of the processor hardware, which will change during operation.
[0065] In step S103, based on the minimum clock frequency required by each algorithm (beamforming, passband filtering, downconversion, Doppler estimation and compensation, demodulation, etc.) in the underwater acoustic communication decoding program, the number of tasks for each core computation is pre-allocated, and a computation task allocation table is established. The result of executing the computation task allocation table at this point is the optimized computation result, making full use of the processor hardware. The corresponding coordinated tasks are then filled into the computation task allocation table.
[0066] Calculate the task allocation table
[0067] CPU1 CPU2 CPU3 … Core0 … Core1 … Core2 … Core3 …
[0068] The multiprocessor parallel computing underwater acoustic communication decoding method, computer, and storage medium provided by this invention read the computing power of the local processor hardware and the computing power requirements of the algorithm to be run, pre-allocate algorithm adaptation modules, and flexibly and dynamically load underwater acoustic communication algorithms on multiprocessor platforms of different scales, thereby improving hardware resource utilization and algorithm real-time performance. The main processor allocates tasks and data, and other coprocessors perform corresponding communication decoding operations and result feedback. By utilizing master-slave mutual integrated scheduling and data sharing, multiprocessor parallel computing underwater acoustic communication is realized, thereby significantly optimizing the application of processor hardware computing resources.
[0069] In one embodiment, step S103 is followed by:
[0070] S104. If the processor hardware's computing resources are less than the computing power requirement, then in step S101, the number of communication decoding beamforming channels is extracted at equal intervals to maintain the system's reliability.
[0071] In this embodiment, if the computing resources of the processor hardware are less than the computing power requirement, the number of communication decoding beamforming channels in step S101 is sampled at equal intervals to maintain the reliability of the system.
[0072] In one embodiment, step S103 is followed by:
[0073] S105. If the processor hardware's computing resources exceed the computing power requirements, then in the final allocation of computing resources, the excess computing resources will be allocated to empty data as a hot backup.
[0074] In this embodiment, if the processor hardware's computing resources exceed the computing power requirements, the excess computing resources will be allocated to empty data in the final computing resource allocation. This portion of computing resources will serve as a hot backup of the allocated computing resources to maintain system stability.
[0075] In one embodiment, step S2 includes:
[0076] Obtain information on the establishment of the communication group between the main processor and the coprocessor;
[0077] If the communication group fails to be established, the status of the coprocessor in the current group is determined to be abnormal, and step S103 is executed to update the task allocation table.
[0078] Reference Figure 2 Because the data transmission channels between different central processing units in different devices are not consistent, group allocation can be dynamically set by obtaining hardware information. Figure 2 There are two scenarios: some use bus transmission, and some use Ethernet transmission. Furthermore, in some CPUs, different cores are independent, while in others, multi-core data sharing relies on the first core. In this embodiment, a communication group is established to construct the data channel between the main processor and the coprocessor. The success of establishing the communication group depends on the operating status of the coprocessor itself and the smoothness of the data channel between the main processor and the coprocessor. The completion status of the communication group is queried to dynamically assist in the self-organized allocation of parallel tasks. If the communication group fails to establish, the coprocessor status within the current group is determined to be abnormal, the processor hardware's computing resources are updated, and step S103 is executed to update the task allocation table.
[0079] In one embodiment, step S3 includes:
[0080] After the main processor distributes the data to be processed to the coprocessor core, if it does not receive a receipt completion acknowledgment from the core, it determines that the core is offline and executes step S103 to update the task allocation table.
[0081] In this embodiment, the main processor periodically sends fixed-length data to the cores of different coprocessors through different task groups. Upon receiving the data, the coprocessor begins processing it according to... Figure 3 The process flow shown performs calculations for beamforming, passband filtering, down-conversion, Doppler estimation and compensation, demodulation, and other algorithms, saving the results locally and waiting for the main processor to distribute the next batch of data. Parallel computing tasks are synchronized as follows: Figure 4As shown. Since fixed-length data is transmitted periodically, data and task synchronization between the main processor and coprocessors can be completed through the periodic distribution of group data, without the need for additional redundancy measures. After the main processor distributes the data to be processed to the core of the coprocessor, if the core normally sends a receipt completion acknowledgment, the main processor determines that the core is working normally; if it does not receive a receipt completion acknowledgment from the core, it determines that the core is offline, updates the computing resources of the processor hardware, and executes step S103 to update the task allocation table. Correspondingly, since the main processor does not perform high-complexity task calculations, but only acts as a task and data distribution node, this allows the main processor to respond more quickly to task reallocation operations when some coprocessors are offline. It should be noted that in step S3 of this embodiment, the process of updating the task allocation table occurs after the processor hardware starts working; in step S2, the process of updating the task allocation table occurs when the processor hardware starts working.
[0082] Reference Figure 6 The present invention also provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the steps of the above-described multiprocessor parallel computing underwater acoustic communication decoding method.
[0083] The present invention also provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the steps of the above-described multiprocessor parallel computing underwater acoustic communication decoding method.
[0084] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium. When executed, the computer program can include the processes of the embodiments of the above methods. Any references to memory, storage, databases, or other media provided in this application and in the embodiments may include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM can be obtained in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), dual-speed SDRAM (SSRSDRAM), enhanced SDRAM (ESDRAM), synchronous link DRAM (SLDRAM), RAM bus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.
[0085] In summary, the multiprocessor parallel computing underwater acoustic communication decoding method, computer, and storage medium provided by this invention read the computing power of the local processor hardware and the computing power requirements of the algorithm to be run, pre-allocate algorithm adaptation modules, and can flexibly and dynamically load underwater acoustic communication algorithms on multiprocessor platforms of different scales, improving hardware resource utilization and algorithm real-time performance; the main processor allocates tasks and data, and other coprocessors perform corresponding communication decoding operations and result feedback; by utilizing master-slave mutual integrated scheduling and data sharing, multiprocessor parallel computing underwater acoustic communication is realized, thereby significantly optimizing the application of processor hardware computing resources.
[0086] The above description is merely a preferred embodiment of the present invention and does not limit the patent scope of the present invention. Any equivalent structural or procedural transformations made based on the content of the present invention's specification and drawings, or direct or indirect applications in other related technical fields, are similarly included within the patent protection scope of the present invention.
Claims
1. A method for decoding a water acoustic communication by a multi-processor parallel computation, characterized in that, include: S1. Obtain the computing resources of the processor hardware and allocate tasks. The processor hardware includes the main processor and multiple coprocessors corresponding to the main processor. The coprocessors include multiple cores. S2. Obtain the establishment status of the communication group between the main processor and the coprocessor, and reallocate tasks; S3. Reassign tasks based on the data parallel computing status of multiple coprocessors; S4. After receiving the communication signal sent back by the coprocessor, the main processor divides the communication signal into multiple pieces of information to be decoded; the main processor sends the multiple pieces of information to be decoded and the corresponding decoding branches to the multiple coprocessors; the main processor receives the decoded information formed by the coprocessors after processing the information to be decoded. The steps in S1 include: S101. By implementing an initialization thread on the main processor, the number of input channels for the front-end acquisition signal is obtained, and the optimal number of communication decoding beamforming channels is calculated. S102. By implementing an initialization thread on the main processor, the computing resources of the processor hardware are obtained, including the number of coprocessors and the number of effective cores of each coprocessor, and the clock frequency of each effective core is also obtained. S103. Calculate the computing power requirement based on the minimum clock frequency required by each algorithm in the underwater acoustic communication decoding program, pre-allocate the number of tasks for each core, and establish a computing task allocation table.
2. The method according to claim 1, wherein, The step S103 is followed by: S104. If the computing resources of the processor hardware are less than the computing power requirement, the communication decoding beamforming channel in step S101 is extracted at equal intervals to maintain the reliability of the system. S105. If the processor hardware's computing resources exceed the computing power requirements, the excess computing resources will be used as a hot backup in the final allocation of computing resources.
3. The method according to claim 1, wherein, The steps in S2 include: Obtain information on the establishment of the communication group between the main processor and the coprocessor; If the communication group fails to be established, the status of the coprocessor in the current group is determined to be abnormal, and step S103 is executed to update the task allocation table.
4. The multiprocessor parallel computing underwater acoustic communication decoding method according to claim 1, characterized in that, The steps in S3 include: After the main processor distributes the data to be processed to the coprocessor core, if it does not receive a receipt completion acknowledgment from the core, it determines that the core is offline and executes step S103 to update the task allocation table.
5. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that, When the processor executes a computer program, it implements the steps of the multiprocessor parallel computing underwater acoustic communication decoding method according to any one of claims 1 to 4.
6. A computer-readable storage medium having a computer program stored thereon, characterized in that, When a computer program is executed by a processor, it implements the steps of the multiprocessor parallel computing underwater acoustic communication decoding method according to any one of claims 1 to 4.
Citation Information
Patent Citations
Tree-shaped topological mechanism multiprocessor sonar signal processing device and method
CN103217681A
Domestic high-performance underwater acoustic information processing equipment and monitoring method thereof
CN113760815A
