I have a quite big vector. Some of the vector members are matching a certain condition in parallel. I would like to find the first element matching to the condition.
With OpenMP you can try to build a for loop with #pragma omp for schedule(dynamic). Each thread will execute one iteration in same order as your vector.
If you want to check 4 elements by thread, try #pragma omp for schedule(dynamic, 4)