You may want to know what version of openmp you are using at compile time in order to activate or not some functionalities. This is possible using the _OPENMP Macro/directive.
In this post I put the code of a bitonic sort in distributed memory. The method are templatized so you can use it as you like. Be aware that this version needs a number of processes that is a power… Read more[C++][Mpi] Bitonic parallel Sort (Bitonic Sorting network in parallel)
Openmp give a barrier for all threads. Here is a class to perform a barrier with only a group of threads.
This quicksort class is a copy of the one from ScalFMM.