Font Size: a A A

Research And Implementation Of OCL Runtime On Mobile Device

Posted on:2016-11-10Degree:MasterType:Thesis
Country:ChinaCandidate:J W LiuFull Text:PDF
GTID:2308330467499151Subject:Software engineering
Abstract/Summary:PDF Full Text Request
Now, with the development of technology, a wide range of mobile chips weregradually into people’s lives, however, in the current state of the existing technology,many mobile chips relatively excess computing capacity. Thus, we need to improvethe utilization of computing power. With the development of parallel computingtechnology, now there has been a number of research work can be performed inparallel computing tasks with the mobile platform, and made a series of achievements,such as image processing, large-scale mathematical tasks.Open-style languages in recent years gradually became more popular dataprocessing category, the most representative example is the OpenCL, OpenGL,WebCL, OpenSL, OpenMax that have been widely carried out in the computerindustry. OpenCL has been participated and cooperated by a number of computermakers which are obtained for parallel programming of heterogeneous systemsdeveloper in a great affirmation. Although the support of all types by commercialagencies already can be performed on equipment to achieve the more popular version,but for Vx chip, a universal chip running under RTEMS system, had not achieve amolded version.This article refers to OpenCL specification and characteristics, considering thecharacteristics of Vx chip architecture, combined with the basic characteristics ofSPARC v8, and will conduct research and discuss the implementation of the platformunder the OpenCL runtime system.The article does researches on OpenCL specification first, an then a Vx detailedstructure of the chip analysis. And then raised some questions in the run-timeimplementation process need to be addressed, such as memory allocation, the main build system, Vx platform features, and how to communicate from the processor, theprogram.Then basing on the OCL specification of the runtime system, do the softwaredesignment, including the specific design of the API, the divided between the variousabstractions, configuration of memory object, kernel translation, task scheduling,run-time environment, the context.According the results of the analysis and designment, finally achieve a set ofrun-time library on this platform. And with the result of development of this thesis,based on LLVM Clang CBackend which supporting the CL compiler compiler tools,compiled kernel code into binary code, and run on top of Vx device platforms. Bymaster task scheduling, eventually execute kernel binary code on blade side, and giveout a way to develop a mobile platform Open Computing Language Runtime library.At last, we use the framework named GTest for the testing on verfyingcorrectness and analyzing performance of the runtime library. By using theconformance test cases which includes built-in functions, memory allocation, API,kernel translation and compilation,events, floationg point precesion, operations onvector, the availability of this software framework has been ensured; and bycomparing the performance of the serial algrithm with the parallel ones on Vxplatform, it has been concluded that the runtime library has a significant performanceadvantage on this embed platform.
Keywords/Search Tags:Open Calculating Language, LLVM, SPARC
PDF Full Text Request
Related items