The application discloses an inter-graphic processor communication method, product, device and medium, relates to the field of high-
performance computing and
artificial intelligence acceleration technology, and is applied to a single computer
system comprising multiple graphic processors and a central optoelectronic
hybrid switching
chip interconnected based on an
electrical switching matrix and an optical switching matrix. The graphic processors are connected with the central optoelectronic
hybrid switching
chip through optical links and electrical links. The method comprises the following steps: performing
data type division on to-be-transmitted data of a source graphic processor; if the to-be-transmitted data is a
control flow, controlling the source graphic processor to send the to-be-transmitted data to the
electrical switching matrix through the electrical link, and then routing the to-be-transmitted data to a destination graphic processor in each graphic processor; if the to-be-transmitted data is a data flow, controlling the source graphic processor to send the to-be-transmitted data to the optical switching matrix through the
optical link, and then routing the to-be-transmitted data to the destination graphic processor. The
interconnection between the graphic processors is optimized to improve the inter-graphic processor communication efficiency.