US 11,892,970 B2
Synchronizing coprocessors using synchronization instructions to force a second coprocessor to wait until receiving an acknowledgement signal from a first coprocessor
Jing Wang, Beijing (CN); Jiaxin Shi, Beijing (CN); Hanlin Xie, Beijing (CN); and Xiaozhang Gong, Beijing (CN)
Assigned to KUNLUNXIN TECHNOLOGY (BEIJING) COMPANY, Beijing (CN)
Filed by KUNLUNXIN TECHNOLOGY (BEIJING) COMPANY LIMITED, Beijing (CN)
Filed on Jul. 19, 2022, as Appl. No. 17/867,832.
Claims priority of application No. 202110819670.6 (CN), filed on Jul. 20, 2021.
Prior Publication US 2022/0350774 A1, Nov. 3, 2022
Int. Cl. G06F 9/52 (2006.01); G06F 15/78 (2006.01)
CPC G06F 15/7807 (2013.01) 9 Claims
OG exemplary drawing
 
1. A method for data processing, performed by a first coprocessor in a chip, the method comprising:
acquiring a first relationship instruction;
executing at least one first computing instruction acquired before the first relationship instruction based on the first relationship instruction;
sending acknowledgment information based on the first relationship instruction in response to completing executing the at least one first computing instruction, to cause a second coprocessor receiving the acknowledgment information to revert to a state of acquiring a second computing instruction based on the acknowledgment information, wherein the second computing instruction is acquired after the second coprocessor receives a second relationship instructions;
acquiring a query request for a command queue sent by a control unit;
querying a remaining storage space comprised in the command queue based on the query request; and
sending queried indication information of the remaining storage space to the control unit, to cause the control unit to store the first relationship instruction or the first computing instruction in the remaining storage space.