Abstract:
A communication system includes a first device, a second device, and a cable that connects the first device and the second device, and the cable stores cable information of the cable. A link training method includes: obtaining device information of the first device, obtaining the cable information from the cable, and obtaining device information of the second device; and performing link training between the first device and the second device based on the device information of the first device, the cable information, and the device information of the second device.
Abstract:
A data transmission method and apparatus are provided. The method includes: obtaining service data; and sending first data, where the first data is obtained based on the service data, where a data structure of the first data is the same as a data structure of second data, the second data is for performing link training, and the link training is performed before the first data is sent.
Abstract:
A task allocation method, a chip are disclosed. The method includes: determining a number of threads included in a to-be-processed task; determining, in a network-on-chip formed by a multi-core processor, a continuous area formed by routers-on-chip corresponding to multiple continuous idle processor cores whose number is equal to the number of the threads; if the area is a non-rectangular area, determining a rectangular area extended from the area; and if predicted traffic of each router-on-chip that is connected to a non-idle processor core and in the extended rectangular area does not exceed a preset threshold, allocating the multiple threads of the to-be-processed task to the idle processor cores in the area. According to the task allocation method provided in the embodiments of the present invention, problems of large hardware overheads, a low network throughput, low system utilization are avoided.
Abstract:
A communication system includes a first device, a second device, and a cable that connects the first device and the second device, and the cable stores cable information of the cable. A link training method includes: obtaining device information of the first device, obtaining the cable information from the cable, and obtaining device information of the second device; and performing link training between the first device and the second device based on the device information of the first device, the cable information, and the device information of the second device.
Abstract:
A data transmission method and apparatus, where the method comprises checking full-bandwidth transmission paths of a bus, and When a fault occurs in the full-bandwidth transmission paths and a quantity of faulty full-bandwidth transmission paths is less than or equal to M, selecting N full-bandwidth transmission paths from full-bandwidth transmission paths that are not faulty to transmit a data unit, and when a fault occurs in the full-bandwidth transmission paths and a quantity of faulty full-bandwidth transmission paths is greater than M, reconfiguring a size of a data unit according to a quantity of full-bandwidth transmission paths that are not faulty and a target burst quantity.
Abstract:
A task allocation method, a chip are disclosed. The method includes: determining the number of threads included in a to-be-processed task; determining, in a network-on-chip formed by a multi-core processor, a continuous area formed by routers-on-chip corresponding to multiple continuous idle processor cores whose number is equal to the number of the threads; when the area is a non-rectangular area, determining an extended area extended from the non-rectangular area; and when predicted traffic of each router-on-chip that is connected to a processor core in the extended area does not exceed a preset threshold, allocating the multiple threads of the to-be-processed task to the idle processor cores in the non-rectangular area. According to the task allocation method provided in the embodiments of the present invention, problems of large hardware overheads, a low network throughput, low system utilization are avoided.
Abstract:
A data transmission method and apparatus, where the method comprises checking full-bandwidth transmission paths of a bus, and When a fault occurs in the full-bandwidth transmission paths and a quantity of faulty full-bandwidth transmission paths is less than or equal to M, selecting N full-bandwidth transmission paths from full-bandwidth transmission paths that are not faulty to transmit a data unit, and when a fault occurs in the full-bandwidth transmission paths and a quantity of faulty full-bandwidth transmission paths is greater than M, reconfiguring a size of a data unit according to a quantity of full-bandwidth transmission paths that are not faulty and a target burst quantity.
Abstract:
A task allocation method, a chip are disclosed. The method includes: determining a number of threads included in a to-be-processed task; determining, in a network-on-chip formed by a multi-core processor, a continuous area formed by routers-on-chip corresponding to multiple continuous idle processor cores whose number is equal to the number of the threads; if the area is a non-rectangular area, determining a rectangular area extended from the area; and if predicted traffic of each router-on-chip that is connected to a non-idle processor core and in the extended rectangular area does not exceed a preset threshold, allocating the multiple threads of the to-be-processed task to the idle processor cores in the area. According to the task allocation method provided in the embodiments of the present invention, problems of large hardware overheads, a low network throughput, low system utilization are avoided.
Abstract:
A task allocation method, a chip are disclosed. The method includes: determining the number of threads included in a to-be-processed task; determining, in a network-on-chip formed by a multi-core processor, a continuous area formed by routers-on-chip corresponding to multiple continuous idle processor cores whose number is equal to the number of the threads; when the area is a non-rectangular area, determining an extended area extended from the non-rectangular area; and when predicted traffic of each router-on-chip that is connected to a processor core in the extended area does not exceed a preset threshold, allocating the multiple threads of the to-be-processed task to the idle processor cores in the non-rectangular area. According to the task allocation method provided in the embodiments of the present invention, problems of large hardware overheads, a low network throughput, low system utilization are avoided.