ACAdrián Castelló

Adrián Castelló

*This is an algorithmically generated author record based on publicly available information.

Current Organizations / Institutes

The organizations/institutes from the scholar's latest article


Adrián Castelló has a total of 85 co-authors. Here are the top co-authors by number of shared publications:


Latest Publications

  • Open Access

    Sparse matrix–vector product on RISC-V processors with SIMD units

    by Andrés E. Tomás, Héctor Martínez, Sandra Catalán, Patricia Siwinska, Adrián Castelló, Marc Casas, Enrique S. Quintana-Ortí

    The sparse matrix–vector multiplication ( SpMV ) kernel is a key kernel in scientific and engineering applications, forming the core of many iterative solvers for linear systems and eigenvalue problems. Due to its low arithmetic intensity and irregular memory access patterns, SpMV remains memory-bound on modern architectures, making its efficient implementation particularly challenging. This paper presents vectorized SpMV routines for RISC-V processors with SIMD support, exploiting the RISC-V Vector Extension (RVV 1.0). We implement and evaluate three storage formats—CSR (Compressed Sparse Row), SELL- p (a vector-friendly variant of ELLPACK), and JDS (Jagged Diagonal Storage)—providing low-level implementations that leverage RVV intrinsics. Performance is assessed on two commercial RISC-V platforms (CanMV-K230 and BananaPi F3) with 128-bit and 256-bit vector registers, and on the EPAC research system featuring 16,384-bit vectors. Results show that the vectorized routines significantly outperform scalar baselines, achieving a variety of speed-ups depending on the format and architecture. These findings highlight the potential of open RISC-V architectures for high-performance sparse linear algebra and provide a foundation for future vector-aware sparse kernel optimizations.

  • Open Access

    Enhancing transformer performance and portability through auto-tuning frameworks

    by Patricia Siwinska, Jie Lei, Adrián Castelló, Pedro Alonso-Jordá, Enrique S. Quintana-Ortí

    Transformer-based models such as BERT and GPT2 have become the foundation of many modern applications, yet their execution requires substantial computational and memory resources. To address these challenges, recent advances in compiler technology and hardware accelerators have introduced new opportunities for performance portability. In this work, we evaluate JAX and TVM as high-level frameworks that combine a NumPy-like programming model with Just-In-Time (JIT) or Ahead-of-Time (AOT) code optimization and compilation, enabling efficient execution across CPUs or GPUs, and in the case of JAX, on TPUs as well. We present systematic implementations of the core Transformer encoder and decoder blocks in JAX and TVM and compare their automatically optimized code against NumPy and CuPy baselines. Our experimental study covers heterogeneous hardware platforms (AMD CPU, NVIDIA GPUs, and Google TPUs) and multiple arithmetic precisions (FP32, BF16, INT8, and INT32). Results show that JAX and TVM deliver significant performance improvements over standard libraries, while reducing the programming effort required to adapt to different hardware. These findings demonstrate the potential of JIT- and AOT-oriented frameworks to serve as a portable and efficient solution for deploying Transformer workloads in diverse computing environments.


  • Open Access

    Inference Acceleration for Graph Convolutional Networks on RISC-V Systems

    by Héctor Martínez, Rafael Rodríguez-Sánchez, Adrián Castelló, José R. Herrero, Enrique S. Quintana-Ortí

    Graph Convolutional Networks (GCNs) are a widely used class of Graph Neural Networks for learning on graph-structured data. Despite their shallow architectures, inference with this class of models remains computationally challenging due to the scale and irregularity of real-world graphs, particularly on low-power multicore CPUs. In this paper, we investigate the optimization of GCN inference on RISC-V processor architectures. We evaluate three popular deep learning frameworks, namely DGL, PyTorch Geometric, and PyTorch, using standard citation benchmarks (Cora, PubMed, and CiteSeer) on a Banana Pi BPI-F3 board with an 8-core RISC-V processor. Based on the initial experimental analysis, we develop optimized kernels for the dense and sparse matrix multiplications, showing that these components dominate GCN inference time on low-power CPUs. Finally, we exploit mixed-precision arithmetic in GEMM to reduce memory bandwidth pressure and improve inference throughput. Overall, this work demonstrates the performance benefits of targeted kernel optimizations for efficient GCN inference on low-power multicore processors.

  • Open Access

    Migration of Ginkgo's Jacobi-Preconditioned CG Solver to Vector RISC-V

    by Patricia Siwinska, Héctor Martínez Pérez, Adrián Castelló

  • Generation of Mixed-Precision Kernels for Quantized Transformer Encoders with Exo

    by Adrián Castelló, Héctor Martínez, Francisco D. Igual, Enrique S. Quintana-Ortí

  • Evaluation of RVV-Enabled COTS Platforms with Matrix Multiplication and Exo

    by Adrián Castelló, Héctor Martínez, Sandra Catalán, Francisco D. Igual, Enrique S. Quintana-Ortí

  • Open Access

    The cambrian explosion of mixed-precision matrix multiplication for quantized deep learning inference

    by Héctor Martínez, Adrián Castelló, Francisco D. Igual, Enrique S. Quintana-Ortí


  • Open Access

    Enhancing Transformer Performance and Portability through Auto-tuning Frameworks

    by Patricia Siwinska, Jie Lei, Adrián Castelló, Pedro Alonso-Jordá, Enrique S. Quintana-Ortí

    Transformer-based models such as BERT and GPT2 have become the foundation of many modern applications, yet their execution requires substantial computational and memory resources. To address these challenges, recent advances in compiler technology and hardware accelerators have introduced new opportunities for performance portability. In this work, we evaluate JAX and TVM as high-level frameworks that combine a NumPy-like programming model with Just-In-Time (JIT) or Ahead-of-Time (AOT) code optimization and compilation, enabling efficient execution across CPUs or GPUs, and, in the case of JAX, on TPUs as well. We present systematic implementations of the core Transformer encoder and decoder blocks in JAX and TVM and compare their automatically optimized code against NumPy and CuPy baselines. Our experimental study covers heterogeneous hardware platforms (AMD CPU, NVIDIA GPUs, and Google TPUs) and multiple arithmetic precisions (FP32, INT8, and INT32). Results show that JAX and TVM deliver significant performance improvements over standard libraries, while reducing the programming effort required to adapt to different hardware. These findings demonstrate the potential of JIT- and AOT-oriented frameworks to serve as a portable and efficient solution for deploying Transformer workloads in diverse computing environments.

  • Open Access

    Characterization of quantized inference with transformer encoders on low power CPUs

    by Héctor Martínez, Sandra Catalán, Adrián Castelló, Enrique S Quintana-Ortí

    Transformers, particularly large language models (LLMs), are revolutionizing applications in natural language processing and computer vision but at a high cost in memory, energy, and computational resources. Quantization has emerged as an effective compression method to alleviate these demands, reducing the bitwidth of model data and arithmetic precision to enable efficient inference on resource-constrained devices. This paper focuses on optimizing inference with transformer encoders on low-power general-purpose CPUs, as those often found in edge devices. Our key contributions include exposing the critical role of linear layers within transformer encoders on CPUs with a limited number of cores; developing mixed integer precision matrix multiplication on ARM and RISC-V CPUs; and evaluating performance impact and energy savings of quantized inference. In summary, this work highlights the advantages of applying quantization to transformer encoders on current single-core and multi-core low power CPUs, offering insights for efficient LLM deployment on edge platforms.


  • One-to-Many Communication Primitives in Dragonfly Networks

    by José Duro, Adrián Castelló, María Engracia Gómez, Julio Sahuquillo, Enrique S. Quintana-Ortí