This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

使用openMP就不用考虑cache维护了吗

我看到好多多核openMP例程,都没有用到cache一致性维护(在openmp并行部分是多核运行的,但是没有在这部分没有对cache一致性维护),请问大家,是否openMP自动进行了cache一致性维护?看了一下openmp的源码,发现openmp好像进行cache一致性维护了

  • 请看下面的FAQ。

    OpenMP is cache coherent only at barriers. Threads will flush their temporary view of shared memory at these barriers.

    http://processors.wiki.ti.com/index.php/Keystone/Trainings/FrequentlyAskedQuestions