Method and electronic device for sharing data based on scratch pad memory

The invention relates to a method and an electronic device for sharing data based on a scratch pad memory. In the method, a virtual address region in a virtual storage accessible by an accelerator system is allocated to a program based on a definition in the program, the virtual address region is ma...

Ausführliche Beschreibung

Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: SANG YONGQI, XU LIBAO, CHANG LIANG, PENG YONGCHAO, QIU XIAOGANG, YAO FEI, YANG JINGWEI
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 relates to a method and an electronic device for sharing data based on a scratch pad memory. In the method, a virtual address region in a virtual storage accessible by an accelerator system is allocated to a program based on a definition in the program, the virtual address region is mapped to any of a plurality of physical storage devices inclduing a secondary cache and an external storage. The virtual address region is set as a scratch pad memory attribute; and data shared between a first thread and a second thread in the program is managed based on the virtual address region. Further, a corresponding electronic device, a computer readable storage medium, a computer program product, and an accelerator system are provided. By utilizing the exemplary implementation mode of the invention, the storage space can be distributed from various physical storage devices, so that data can be shared among a plurality of threads in a program. 本公开涉及基于便笺存储器来共享数据的方法和电子装置。在一种用于基于便笺存储器来共享数据的方法中,基于程序中的定义,将由加速器系统可访