Files
gnss-sdr/tests
Carles Fernandez 37e830c0e0 benchmark_pcps_grid: skip all channel threads when setup fails
If the multi-channel fixture setup fails on thread 0 (no CUDA device,
or out of device memory at high channel counts), thread 0 skips and
returns before the timed loop. Google Benchmark then releases the other
threads from the start barrier, and they call compute_grid() on engines
that were never created, which crashes the whole benchmark binary.

Add a ready flag that setup() sets only on success. Every thread checks
it at the top of the timed loop, which is the first point where threads
1..N-1 can see the outcome of the setup, and skips the run instead.

Also add the missing <string> include for the fixture's error member.
2026-10-08 19:06:32 +02:00
..
2026-07-16 12:31:00 +02:00