I chose a signal-processing task that works on IQ data. IQ data has two values per sample: I (in-phase) and Q (quadrature).
The program does three common steps used in SDR:
This is a realistic workflow in communication/radar/remote-sensing pipelines and is a good target for later multicore, SIMD, and GPU optimization.
The program supports two input modes:
ci16 or cf32, interleaved
I/Q), orThe workload is controlled by command-line options
(--samples, --taps, --decim,
--repeats, …), so runtime can be tuned from seconds to
minutes.
For real-data experiments, I use the HMAP SigMF dataset (Zenodo
record 7416081). Its IQ payload (*.sigmf-data) has 8
files:
*.sigmf-meta).The baseline implementation is iq_baseline.cc (C++17,
standard library only).
Main steps:
--input is given, load file data into two float
arrays (I[], Q[]).--repeats times:
T is taps and D is decimation factor.--check-outputs results with double
precision, then report max absolute error and root-mean-square
error.Printed outputs include main compute time, approximate FIR throughput (GFLOP/s), energy, checksum, and error metrics.
I implemented two versions of the same algorithm:
iq_baseline.cc: serial baseline (plain loops, no
OpenMP).iq_improved.cc: OpenMP-parallel version for multicore
experiments.The most expensive part is FIR + decimation. Each output index is mostly independent, so it maps well to parallel hardware.
Download the data used from the following command lines in code/data:
# Small Zenodo SigMF set
curl -L "https://zenodo.org/api/records/13143544/files/crab-giantpulse.sigmf-data/content" -o code/data/crab-giantpulse.sigmf-data
curl -L "https://zenodo.org/api/records/13143544/files/crab-giantpulse.sigmf-meta/content" -o code/data/crab-giantpulse.sigmf-meta
# Medium size
curl -L "https://zenodo.org/api/records/7416081/files/HMAP_2022-11-16T15:16:06_1ax.sigmf-data/content" -o code/data/HMAP_2022-11-16T15:16:06_1ax.sigmf-data
curl -L "https://zenodo.org/api/records/7416081/files/HMAP_2022-11-16T15:16:06_1ax.sigmf-meta/content" -o code/data/HMAP_2022-11-16T15:16:06_1ax.sigmf-meta