Selecting Linear Algebra Kernel Composition Using Response Time Prediction - Université Toulouse III - Paul Sabatier - Toulouse INP Accéder directement au contenu
Article Dans Une Revue Software: Practice and Experience Année : 2015

Selecting Linear Algebra Kernel Composition Using Response Time Prediction

Résumé

Numerical linear algebra libraries provide many kernels that can be composed to perform complex computations. For a given computation, there is typically a large number of functionally equivalent kernel compositions. Some of these compositions achieve better response times than others for particular data and when executed on a particular computer architecture. Previous research provides methods to enumerate (a subset of) these kernel compositions. In this work, we study the problem of determining the composition that yields the lowest response time. Our approach is based on a response time prediction for each candidate combination. While this prediction could in principle be obtained using analytical and/or empirical performance models, developing accurate such models is known to be challenging. Instead, we define a feature space that captures salient properties of kernel combinations and predict response time using supervised machine learning. We experiment with a standard set of machine learning algorithms and identify an effective algorithm for our kernel composition selection problem. Using this algorithm, our approach widely outperforms the strategy that would consist in always using the simplest kernel composition and is often close to the fastest kernel compositions among those evaluated. We quantify the potential benefit of our approach if it were to be implemented as part of an interactive computational tool. We find that although the potential benefit is substantial, a limiting factor is the kernel composition enumeration overhead.

Dates et versions

hal-03190207 , version 1 (06-04-2021)

Identifiants

Citer

Aurélie Hurault, Baek Kyungim, Henri Casanova. Selecting Linear Algebra Kernel Composition Using Response Time Prediction. Software: Practice and Experience, 2015, 45 (12), pp.1659--1676. ⟨10.1002/spe.2307⟩. ⟨hal-03190207⟩
26 Consultations
0 Téléchargements

Altmetric

Partager

Gmail Facebook X LinkedIn More