arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1811.00156cs.DCcs.PF
收藏

基于结构无关特征的OpenCL性能预测

OpenCL Performance Prediction using Architecture-Independent Features

Beau Johnston, Greg Falzon, Josh Milthorpe

摘要:

OpenCL是异构高性能计算系统的一个有吸引力的模型,具有广泛的支持,从硬件供应商和显着的性能可移植性。为了支持HPC系统上的高效调度,有必要对不同计算设备上的OpenCL工作负载进行准确的性能预测,这是具有挑战性的,因为不同的计算,通信和内存访问特性会导致设备之间的性能变化。架构独立的内核表征(AIWC)工具可用于根据一组架构独立的功能来表征OpenCL内核。这项工作提出了一种方法,AIWC功能被用来形成一个模型,能够预测加速器执行时间。我们使用这种方法来预测一组37个计算内核在15个不同的设备上运行的执行时间,这些设备代表了广泛的CPU,GPU和MIC架构。预测是高度准确的,与测量的实验运行时间的平均差异仅为1.2%,并对应于9 μs到1秒的实际执行时间的错误预测,根据问题的大小。以前未遇到的代码可以被检测一次,AIWC指标嵌入内核中,以允许在整个建模设备范围内进行性能预测。结果表明,这种方法支持正确选择最合适的设备,以前未遇到的代码,这是高度相关的HPC调度设置。

英文摘要:

OpenCL is an attractive model for heterogeneous high-performance computing systems, with wide support from hardware vendors and significant performance portability. To support efficient scheduling on HPC systems it is necessary to perform accurate performance predictions for OpenCL workloads on varied compute devices, which is challenging due to diverse computation, communication and memory access characteristics which result in varying performance between devices. The Architecture Independent Workload Characterization (AIWC) tool can be used to characterize OpenCL kernels according to a set of architecture-independent features. This work presents a methodology where AIWC features are used to form a model capable of predicting accelerator execution times. We used this methodology to predict execution times for a set of 37 computational kernels running on 15 different devices representing a broad range of CPU, GPU and MIC architectures. The predictions are highly accurate, differing from the measured experimental run-times by an average of only 1.2%, and correspond to actual execution time mispredictions of 9 μs to 1 sec according to problem size. A previously unencountered code can be instrumented once and the AIWC metrics embedded in the kernel, to allow performance prediction across the full range of modelled devices. The results suggest that this methodology supports correct selection of the most appropriate device for a previously unencountered code, which is highly relevant to the HPC scheduling setting.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑