The invention belongs to the field of
software design and relates to a GPU-oriented virtual IO ringbuffer realization method. The method comprises the steps of writing to-be-stored data in a continuous space starting from a head address of a
free space of a ringbuffer if the
free space of the ringbuffer can store current data when the
data needs to be stored in the ringbuffer, and updating
write pointer information; if the
free space of the ringbuffer cannot store the current data, initiating synchronization operation to ringbuffer IO control (3) by ringbuffer virtual IO control (2), and re-performing data storage operation; when a
data transmission startup instruction is received, sending
data information stored in the ringbuffer, and after the sending is finished, updating read pointer information in the ringbuffer IO control (3); and when the space is full of the data in the ringbuffer, actively initiating
data transmission operation, and after the sending is finished, updating the read pointer information in the ringbuffer IO control (3). According to the method, ringbuffer management of virtual IO is constructed, so that the costs of the ringbuffer in
data transmission and
space management are reduced, the communication arbitration cost of a
host interface of a GPU is reduced, and the utilization efficiency of the
host interface of the GPU is improved.