// SPDX-FileCopyrightText: 2026 Filip Leonarski, Paul Scherrer Institute // SPDX-License-Identifier: GPL-3.0-only #pragma once #include #include // Sort pairs of finite doubles ascending, first by .first then by .second, on the GPU. Two pairs that // compare equal are the same two numbers, so this is the sequence std::sort leaves, to the bit. Only // built with CUDA; a device without room for about 40 bytes a pair throws (run on the CPU then: rugnux --no-gpu). void SortPairsGPU(std::vector> &v);