Home » Downloads » Fun with Beagle – Exploring the GPU – 《與BeagleBone GPU 愉快玩耍》繁體中文版

Fun with Beagle – Exploring the GPU – 《與BeagleBone GPU 愉快玩耍》繁體中文版

Version 1.0

Version 1.0: 21st January 2021

Traditional Version 1.0: 26st March 2021

The purpose of this document is to explain how Imagination Technologies PowerVR SGXTM 530 Graphics Processing Unit (GPU) in the processor on the BeagleBone® Black (BBB) board can be used to enhance applications running on the main Arm® Cortex® A8 core.

This is both in the traditional role as a graphics renderer using OpenGL® ES and as an offload engine for tasks that can parallelised using OpenCLTM with a newly published library. The target audience are Hobbyists and Universities who wish to experiment and see if they can improve their embedded systems.

The focus in the document will be on the how to use the new OpenCLTM library and very importantly understand its strengths and weaknesses. This is done using a matrix multiplication example. With this understanding of the type of application that can benefit from an OpenCL offload to the SGX530, it then explains how to integrate OpenCLTM into an ALSA audio Sample Rate Convertor. This implementation can see the CPU load reduced from 55% to 20% by using OpenCL as long as the application can trade off latency.

本文件旨在介紹如何使用BeagleBone® Black(BBB)電路板上處理器中的Imagination Technologies PowerVR SGXTM 530圖形處理單元(Graphics Processing Unit,GPU),從 而增強主Arm® Cortex® A8核心上執行應用程式的能力。這款GPU不僅是使用OpenGL® ES的 傳統圖形渲染器,也可作為使用OpenCLTM和新發佈的程式庫來平行處理任務的卸載引擎。本 文件的目標受眾是希望借助實驗來改進嵌入式系統的業餘愛好者和大學。 本文件重點關注如何使用新的OpenCLTM程式庫,並幫助讀者瞭解其優勢和劣勢。我們通過一 個矩陣乘法範例來介紹這些內容。在瞭解可從SGX530的OpenCL卸載功能受益的應用程式類 型之後,本文件將繼續介紹如何將OpenCLTM整合到ALSA音訊採樣率轉換器中。只要應用程 式可以對延遲採用折衷方案,就可以通過使用OpenCL將CPU負載從55%降低到20%。