In OpenMP I can flush either a specified set of variables or the whole cache.
Does anybody have an idea of the performance of this operation? Does it make sense to flush only the variables that really have changed or is the "flush all" so fast, that I should not worry?
I have linked lists that I need to flush in my threads from time to time. Should I iterate through the list and flush each element individually, or simply flush everything ?