随着计算机硬件的快速变化,如何充分利用计算机资源,使软件性能尽可能逼近处理器峰值是人们关心的问题.针对特定硬件平台手工优化程序,或者依赖编译器优化技术,存在人工介入,难与硬件更新同步等问题.而采用自适应性能优化技术实现的高性能数学软件包(SANS)如FFTW,ATLAS,PHiPAC,OSKI等,可有效解决前两种方法存在的问题,降低开发成本,提高软件可移植性.针对自适应性能优化技术中,优化参数搜索过程十分耗时的问题,提出对优化搜索过程的评价指标Pt,并给出用此指标控制优化搜索过程的方法.实验表明运用该指标可以在较短的时间内得到一个合理的性能值.
With the rapid development of computer hardware, researchers pay more and more attentions to how to make efficient use of computer resources and develop the high performance software. Traditionally, researchers produce manual-optimized software for a given machine or resort to the optimization of compiler. There are many problems in these two methods, including poor portability and the difficulty to synchronize with the development of hardware. When designing high performance self-adapting numerical software packages (SANS), such as FFTW, ATLAS, PHiPAC, OSKI, ere, using auto-tuning method becomes a very useful way and could avoid the problems mentioned above. However, the searching process always consumes too much time. In the experiment, it is found that the current best performance does not change rapidly during the whole process, which is completely the opposite of the change of performance gained at the runtime, and the best performance gained at the beginning is or almost close to the best performance gained after the whole search process. In order to search efficiently, a criterion Pt is proposed to evaluate the self- adapting searching process and the method on how to use the criterion to control the searching process for reducing the search time is also given. The experiment result shows that the method given can get an acceptable performance in a short time.