Patent ID: 11892970
Assignee: KUNLUNXIN TECHNOLOGY (BEIJING) COMPANY LIMITED
Field: Computer technology (Electrical engineering)
Classification: CPC G | IPC G

Claim 6:
7. A processor chip, comprising:
a control unit, configured to send a first computing instruction and a first relationship instruction to the first coprocessor, and send a second computing instruction and a second relationship instruction to the second coprocessor;
a first coprocessor, configured to perform a first method for data processing, 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 instruction;
acquiring a first query request for a first command queue sent by a control unit;
querying a first remaining storage space comprised in the first command queue based on the first query request; and
sending queried indication information of the first 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 first remaining storage space;

a second coprocessor, configured to perform a second method for data processing, comprising:
acquiring a second relationship instruction sent by a control unit;
stopping acquiring a computing instruction from a command queue corresponding to the second coprocessor in response to acquiring the second relationship instruction;
monitoring acknowledgment information sent by the first coprocessor;
reverting to a state of acquiring a second computing instruction from the command queue based on the monitored acknowledgment information and the second relationship instructions;
acquiring a second query request for a second command queue sent by the control unit;
querying a second remaining storage space comprised in the second command queue based on the second query request; and
sending queried indication information of the second remaining storage space to the control unit, to cause the control unit to store the second relationship instruction or the second computing instruction in the second remaining storage space.