Automatic vectorization in Faust - Archive ouverte HAL Accéder directement au contenu
Communication Dans Un Congrès Année : 2003

Automatic vectorization in Faust

Résumé

Faust is a Block-Diagram language for sound signal processing and synthesis. It implements a new algebraic representation of block-diagrams and adopts a functional model of semantics instead of a data flow model. Based on these elements, a compiler able to translate DSP block diagram specification into C code is briefly presented. The code produced proves to be efficient and can compete with a hand written code. The optimization process is even pushed further: the C code produced can be automatically vectorized to address Altivec extension for PowerPC (instruction-motorola) and SSE and SSE2 extensions for Intel architecture (instruction-intel). A method is proposed to determine whether or not a Faust expression can be vectorized by crossing a type information (synthesized during an upward run-around in the syntactic tree to be compiled) and a contextual information (inherited during a downward run-around in the syntactic tree). Thanks to this method, we are able to find expressions that can be vectorized inside recursive expressions that are not supposed to be vectorizable. The quality of the code produced by Faust is evaluated. On one hand, scalar code produced by Faust is compared to vector code produced by Faust, on the other hand, scalar and vector code are compared to code optimized by hand. In the end, we briefly present code transformations to vectorize the expressions classed as non-vectorizable by the previous method so that even better performances can be achieved in the future.
Fichier principal
Vignette du fichier
JIM2003vect.pdf (699.81 Ko) Télécharger le fichier
Origine : Fichiers produits par l'(les) auteur(s)

Dates et versions

hal-02158949 , version 1 (18-06-2019)

Identifiants

  • HAL Id : hal-02158949 , version 1

Citer

Nicolas Scaringella, Yann Orlarey, Stéphane Letz, Dominique Fober. Automatic vectorization in Faust. Journées d'Informatique Musicale, 2003, Montbeliard, France. ⟨hal-02158949⟩
59 Consultations
35 Téléchargements

Partager

Gmail Facebook X LinkedIn More