增強式矩陣延伸架構

Enhanced RISC-V Matrix Extension Architecture

檔案

日期

2023

類型

語言

英文

摘要

矩陣計算在許多現實世界的應用中起着關鍵作用,如機器學習和圖像處理。現代並行架構,如GPU和TPU,包括大量的並行處理元素,以有效地執行大型矩陣計算。然而,新興的應用,如TinyML和邊緣人工智能,由許多中小尺寸的矩陣組成。現有的大規模並行矩陣處理引擎並不能爲這些新興的應用提供明顯的加速,因爲硬件資源利用不足,主機和設備之間的數據移動開銷極高。爲了減少中小尺寸矩陣計算的執行時間,最近的工作將矩陣擴展架構嵌入到CPU處理器中。與矢量架構相比,這種矩陣擴展架構可以同時服務於更多的矩陣元素,並消除了離散加速器上數據傳輸的運行時間開銷。然而,目前矩陣擴展架構中低效的內存加載和存儲(LD/ST)操作大大增加了閒置的並行處理元素的數量。我們的工作設計了一個流表,重新安排了LD/ST指令,並重疊了算術和內存執行,以隱藏矩陣擴展架構的內存訪問延時。因此,我們的增強型矩陣擴展架構提高了矩陣計算的性能,與基線RISC-V矩陣和向量擴展架構相比,分別實現了1.71倍和2.31倍的加速。
Matrix computation plays a key role in many real-world applications such as machine learning and image processing. Modern parallel architecture such as GPU and TPU includes a significant number of parallel processing elements to perform the large matrix computation efficiently. However, the emerging applications such as TinyML and edge AI consist of many small and medium size matrices. Existing massive parallel matrix processing engines don’t provide a significant acceleration for these emerging applications because of the hardware resource under-utilization and extremely high data movement overhead between the host and the device. To reduce the execution time of small and medium size matrix computation, recent work embeds the matrix extension architecture in CPU processors. This matrix extension architecture can serve more elements of a matrix simultaneously than the vector architecture and removes the runtime overhead of the data transfer on discrete accelerators. However, inefficient memory load and store (LD/ST) operations in the current matrix extension architecture significantly increases the number of idle parallel processing elements. Our work designs a streaming table that reschedules the LD/ST instructions and overlaps the arithmetic and memory execution to hide memory access latency of the matrix extension architecture. As a result, our enhanced matrix extension architecture improves the performance of the matrix computation and achieves up to 1.71x and 2.31X speedup over the baseline RISC-V matrix and vector extension architecture, respectively.

所屬典藏

網路工程研究所
顯示完整詮釋資料 統計資料

引用此條目

Tai, H.-Y. (2023). Enhanced RISC-V Matrix Extension Architecture. https://thesis.lib.nycu.edu.tw/handle/20.500.14371/83209

BibTeX RIS

引用文字依 APA 第 7 版格式自動產生,使用前請再核對。

分享

永久網址:https://thesis.lib.nycu.edu.tw/handle/20.500.14371/83209