Operation method and device of atom counter, equipment and storage medium

The invention discloses an atomic counter operation method and device, equipment and a storage medium, and the method comprises the steps: obtaining a plurality of to-be-processed thread groups in a GPU, and determining an atomic counter corresponding to each thread group; according to the atomic op...

Ausführliche Beschreibung

Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: WANG FEI, ZHANG ZUYING, ZHOU YIMAN, HE HUA
Format: Patent
Sprache:chi ; eng
Schlagworte:
Online-Zugang:Volltext bestellen
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
Beschreibung
Zusammenfassung:The invention discloses an atomic counter operation method and device, equipment and a storage medium, and the method comprises the steps: obtaining a plurality of to-be-processed thread groups in a GPU, and determining an atomic counter corresponding to each thread group; according to the atomic operation function corresponding to each thread group, determining an addition instruction matched with each thread group; one thread group is sequentially obtained from the multiple thread groups to serve as a current processing thread group, and according to the addition instruction matched with the current processing thread group, the original numerical value of the atom counter corresponding to the current processing thread group and the multiple threads included in the current processing thread group, result data corresponding to each thread is subjected to parallel calculation. According to the technical scheme provided by the embodiment of the invention, the access times of the thread to the atomic counter in