I know I can tell OpenMP not to share variables by default within a parallel region by using
#pragma omp parallel default none
But is there a way to set this globally? It seems as though the global default is that everything that isn't declared private is shared, and, at least in my application, there are many more things that should be private than should be shared.
See Question&Answers more detail:os