Skip to main content
QUICK REVIEW

[Paper Review] Efficient Architecture-Aware Acceleration of BWA-MEM for Multicore Systems

Vasimuddin Md, Sanchit Misra|arXiv (Cornell University)|Jul 27, 2019
Algorithms and Data CompressionComputer Science51 citations
TL;DR

The paper presents architecture-aware end-to-end optimizations to accelerate BWA-MEM on multicore CPUs, achieving up to 3.5x end-to-end speedup on a single thread and 2.4x on a single socket while preserving identical output.

ABSTRACT

Innovations in Next-Generation Sequencing are enabling generation of DNA sequence data at ever faster rates and at very low cost. Large sequencing centers typically employ hundreds of such systems. Such high-throughput and low-cost generation of data underscores the need for commensurate acceleration in downstream computational analysis of the sequencing data. A fundamental step in downstream analysis is mapping of the reads to a long reference DNA sequence, such as a reference human genome. Sequence mapping is a compute-intensive step that accounts for more than 30% of the overall time of the GATK workflow. BWA-MEM is one of the most widely used tools for sequence mapping and has tens of thousands of users. In this work, we focus on accelerating BWA-MEM through an efficient architecture aware implementation, while maintaining identical output. The volume of data requires distributed computing environment, usually deploying multicore processors. Since the application can be easily parallelized for distributed memory systems, we focus on performance improvements on a single socket multicore processor. BWA-MEM run time is dominated by three kernels, collectively responsible for more than 85% of the overall compute time. We improved the performance of these kernels by 1) improving cache reuse, 2) simplifying the algorithms, 3) replacing small fragmented memory allocations with a few large contiguous ones, 4) software prefetching, and 5) SIMD utilization wherever applicable - and massive reorganization of the source code enabling these improvements. As a result, we achieved nearly 2x, 183x, and 8x speedups on the three kernels, respectively, resulting in up to 3.5x and 2.4x speedups on end-to-end compute time over the original BWA-MEM on single thread and single socket of Intel Xeon Skylake processor. To the best of our knowledge, this is the highest reported speedup over BWA-MEM.

Motivation & Objective

  • Motivate faster sequence mapping in the era of high-throughput NGS data and low sequencing cost.
  • Accelerate the dominant kernels of BWA-MEM (SMEM, SAL, BSW) on multicore CPUs without changing outputs.
  • Demonstrate architecture-aware techniques to improve cache reuse, memory access, and SIMD utilization.
  • Provide a detailed performance analysis to identify bottlenecks and guide future optimizations.

Proposed method

  • Identify the three kernels that dominate BWA-MEM runtime (SMEM, SAL, BSW) and target them for optimization.
  • Reorganize the processing workflow to enable batch-wise SIMD parallelism across reads.
  • Replace small dynamic allocations with large contiguous buffers to improve prefetching and cache reuse.
  • Apply software prefetching for irregular memory accesses in SMEM and integrate SIMD where applicable.
  • Compress and optimize FM-index components (including a compressed O array) and augment SA lookup by using an uncompressed suffix array for direct coordinate extraction.
  • Develop inter-task vectorization for BSW with inter-thread and inter-read parallelism, including sorting by read length to balance vector lanes and converting input data layout for SIMD efficiency.
  • Tune precision and vector widths (8/16-bit scores) and use AVX/AVX-512 instructions to accelerate banded Smith-Waterman.

Experimental results

Research questions

  • RQ1Can BWA-MEM be accelerated end-to-end on a single CPU socket while preserving identical output to the original tool?
  • RQ2What are the bottlenecks within BWA-MEM on multicore CPUs, and how can architecture-aware optimizations improve these kernels (SMEM, SAL, BSW)?
  • RQ3How do memory layout, prefetching, and SIMD enablement affect performance for SMEM, SAL, and BSW in BWA-MEM?
  • RQ4What is the potential end-to-end speedup of optimized BWA-MEM on Skylake/Haswell CPUs compared to the baseline?
  • RQ5Does reorganizing the workflow and memory allocation strategy enable effective vectorization and maintain output fidelity?

Key findings

  • Smem, Sal, and Bsw are responsible for over 85% of the original compute time, targeted for acceleration.
  • Achieved approximately 2x, 183x, and 8x speedups on SMEM, SAL, and BSW kernels respectively.
  • End-to-end speedups of up to 3.5x (single-thread) and 2.4x (single socket) over original BWA-MEM on Intel Xeon Skylake.
  • Output remains identical to the original BWA-MEM, enabling seamless replacement in pipelines.
  • Extensive performance analysis demonstrates architecture bottlenecks and validates the effectiveness of cache-aware and SIMD-enabled optimizations.
  • Claims represent the highest reported speedup over a single CPU instance for BWA-MEM at the time of publication.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.