Font Size: a A A

Porting And Implementation Of OpenCL Based On FT-M7002

Posted on:2022-07-01Degree:MasterType:Thesis
Country:ChinaCandidate:W ZhangFull Text:PDF
GTID:2518306605472124Subject:Master of Engineering
Abstract/Summary:PDF Full Text Request
With the continuous development of integrated circuit process technology and design technology,related technologies have supported the integration of multiple processor cores in a single processor,realizing the upgrade from single-core processors to multi-core processors,compared with single-core processors,The multi-core structure has the performance to complete relatively larger tasks and more complex and difficult calculations,but after the number of cores using the same architecture reaches a certain limit,the improvement of processor performance becomes no longer obvious,and it needs to be in the processor architecture Heterogeneous design is used to solve the bottleneck problem of processor performance improvement.Due to the heterogeneous design of the underlying hardware architecture and the multi-level hierarchical memory,processors of different architectures use instructions of different instruction sets,which obviously increases the difficulty of application development and makes programming for heterogeneous processors restrict the development of heterogeneous systems An important obstacle.In response to this problem,Khronos Group launched the first free and open heterogeneous computing programming standard OpenCL,established a general heterogeneous parallel programming framework,and received the support and favor of software and hardware manufacturers and program developers.The FT-M7002 high-performance heterogeneous multi-core processor independently developed by the Institute of Microelectronics,School of Computer Science and Technology,National University of Defense Technology,is oriented to highperformance computing needs and adopts a multi-core heterogeneous processor structure combining DSP and RISC CPU.Heterogeneous platform of multi-core processor with DSP core,how to transplant general heterogeneous parallel programming framework on this heterogeneous platform,and study the problems and implementation methods in the process of OpenCL transplantation,develop and implement FT-M7002 The multi-core parallel programming environment of multi-core processors is of great significance to the design iteration and industrial application of my country's independent multi-core processors.The main research work and results of the thesis are as follows:1.The paper analyzes the current mainstream heterogeneous computing programming models,include CUDA,Open MP,C++AMP,Open ACC and OpenCL,etc.,based on the current multi-core coprocessors on the main OpenCL device side and their hardware architecture characteristics and advantages.The language and compiler,programming features and the best hardware architecture platform supported by it are briefly analyzed.By comparing the support and portability of the hardware platform,OpenCL is selected as the best programming architecture for this migration.2.The paper takes the OpenCL programming framework as the transplantation target,and conducts an in-depth analysis of its three core component models,combined with the FTM7002 multi-core processor independently developed by the National University of Defense Technology,analyzes its hardware architecture characteristics,memory structure characteristics and related software The development process and software development tools give the realization principle of mapping the OpenCL core model to the FT-M7002multi-core processor.According to the FT-M7002 multi-core processor software development process as a model,the design basis and realization principle of OpenCL code compilation are given.,It realizes the OpenCL code compilation system with Clang compiler as the front end.3.Based on the time-consuming and labor-consuming deficiencies of the project engineering migration process in the traditional code migration method,the paper gives a specific method for module migration.The method is based on the FT-M7002 integrated development software platform to support the C programming language,combined with its richness The underlying functions of OpenCL are compiled and run on mature platforms.The paper analyzes the characteristics of cross-compilation and transplantation of the transplantation platform,and the difference between the standard library files required by the OpenCL underlying library and the FT-M7002 underlying library files,and realizes that the FTM7002 multi-core processor platform fully supports the OpenCL framework.4.In the theory of cross-compilation,the thesis gives the toolchain required for crosscompilation on the x86 platform on Linux,cross-compiles the libraries required by OpenCL,and writes the Toolchain ARM.cmake script file for the FT-M7002 platform.As well as the CMake tool,the Po CL source code is compiled to generate a build file.The work of the thesis finally realized the transplantation of OpenCL to FT-M7002,and gave the general method of this type of transplantation.The thesis proved the applicability of the transplantation method by testing the integrity of the transplantation library.
Keywords/Search Tags:Heterogeneous multi-core processor, FT-M7002, OpenCL, compilation system, cross compilation
PDF Full Text Request
Related items