This command-line utility generates a bitonic merge sort network based on number of sortable items n, and workgroup size.
Choose workgroup size to be ==n for an ideal sorting network. Number of sortable elements n must be power of two.
In-depth discussion, GPU implementation, and context for this code: https://poniesandlight.co.uk/reflect/bitonic_merge_sort/