SIMD-Optimized Search Over Sorted Data

Benjamin Mastripolito, Nicholas Koskelo, Dylan Weatherred, David A. Pimentel, Daniel Sheppard +3 more
12/6/2021
cs.DCcs.DS

Official code: lanl/eospac (10 stars, C, last commit 2026-11-15).

Abstract

Applications often require a fast, single-threaded search algorithm over sorted data, typical in table-lookup operations. We explore various search algorithms for a large number of search candidates over a relatively small array of logarithmically-distributed sorted data.

Show full abstract

These include an innovative hash-based search that takes advantage of floating point representation to bin data by the exponent. Algorithms that can be optimized to take advantage of SIMD vector instructions are of particular interest. We then conduct a case study applying our results and analyzing algorithmic performance with the EOSPAC package. EOSPAC is a table look-up library for manipulation and interpolation of SESAME equation-of-state data. Our investigation results in a couple of algorithms with better performance with a best case 8x speedup over the original EOSPAC Hunt-and-Locate implementation. Our techniques are generalizable to other instances of search algorithms seeking to get a performance boost from vectorization.

View on arXivView PDF

Code Implementations(1)

lanl/eospacOfficial100%

The Equation-of-State Package (EOSPAC) is a library of routines that are used by simulation codes to read and manipulate equation-of-state data contained in the Sesame formatted data libraries.

103C, PerlDec 9, 20202 weeks ago

Similar Papers

Cite this paper

@article{mastripolito2021simdoptimized,
  title  = {SIMD-Optimized Search Over Sorted Data},
  author = {Benjamin Mastripolito and Nicholas Koskelo and Dylan Weatherred and David A. Pimentel and Daniel Sheppard and Anna Pietarila Graham and Laura Monroe and Robert Robey},
  year   = {2021},
  eprint = {2112.03229},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2112.03229}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2112.03229.svg)](https://codeofpaper.com/paper/2112.03229)

Discussion