<legend id='baRoI'><style id='baRoI'><dir id='baRoI'><q id='baRoI'></q></dir></style></legend>

<small id='baRoI'></small><noframes id='baRoI'>

  • <i id='baRoI'><tr id='baRoI'><dt id='baRoI'><q id='baRoI'><span id='baRoI'><b id='baRoI'><form id='baRoI'><ins id='baRoI'></ins><ul id='baRoI'></ul><sub id='baRoI'></sub></form><legend id='baRoI'></legend><bdo id='baRoI'><pre id='baRoI'><center id='baRoI'></center></pre></bdo></b><th id='baRoI'></th></span></q></dt></tr></i><div id='baRoI'><tfoot id='baRoI'></tfoot><dl id='baRoI'><fieldset id='baRoI'></fieldset></dl></div>

      • <bdo id='baRoI'></bdo><ul id='baRoI'></ul>
        <tfoot id='baRoI'></tfoot>

        如何分析 OpenMP 瓶颈

        How to profile OpenMP bottlenecks(如何分析 OpenMP 瓶颈)
      1. <small id='lzbwj'></small><noframes id='lzbwj'>

        • <i id='lzbwj'><tr id='lzbwj'><dt id='lzbwj'><q id='lzbwj'><span id='lzbwj'><b id='lzbwj'><form id='lzbwj'><ins id='lzbwj'></ins><ul id='lzbwj'></ul><sub id='lzbwj'></sub></form><legend id='lzbwj'></legend><bdo id='lzbwj'><pre id='lzbwj'><center id='lzbwj'></center></pre></bdo></b><th id='lzbwj'></th></span></q></dt></tr></i><div id='lzbwj'><tfoot id='lzbwj'></tfoot><dl id='lzbwj'><fieldset id='lzbwj'></fieldset></dl></div>
            <tbody id='lzbwj'></tbody>
                <tfoot id='lzbwj'></tfoot><legend id='lzbwj'><style id='lzbwj'><dir id='lzbwj'><q id='lzbwj'></q></dir></style></legend>
                  <bdo id='lzbwj'></bdo><ul id='lzbwj'></ul>
                  本文介绍了如何分析 OpenMP 瓶颈的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我有一个由 OpenMP 并行化的循环,但由于任务的性质,有 4 个 critical 子句.

                  I have a loop that has been parallelized by OpenMP, but due to the nature of the task, there are 4 critical clauses.

                  分析加速并找出哪个关键子句(或者可能是非关键子句(!))在循环中占用最多时间的最佳方法是什么?

                  What would be the best way to profile the speed up and find out which of the critical clauses (or maybe non-critical(!) ) take up the most time inside the loop?

                  我使用 Ubuntu 10.04 和 g++ 4.4.3

                  I use Ubuntu 10.04 with g++ 4.4.3

                  推荐答案

                  OpenMP 包括用于测量时序性能的函数 omp_get_wtime() 和 omp_get_wtick() (此处的文档),我建议使用这些.

                  OpenMP includes the functions omp_get_wtime() and omp_get_wtick() for measuring timing performance (docs here), I would recommend using these.

                  否则尝试分析器.我更喜欢可以在此处找到的 google CPU 分析器.

                  Otherwise try a profiler. I prefer the google CPU profiler which can be found here.

                  还有这个 答案.

                  这篇关于如何分析 OpenMP 瓶颈的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  Unable to access non-const member functions of objects in C++ std::set(无法访问 C++ std::set 中对象的非常量成员函数)
                  Constructing std::function argument from lambda(从 lambda 构造 std::function 参数)
                  STL BigInt class implementation(STL BigInt 类实现)
                  Sync is unreliable using std::atomic and std::condition_variable(使用 std::atomic 和 std::condition_variable 同步不可靠)
                  Move list element to the end in STL(在 STL 中将列表元素移动到末尾)
                  Why is overloading operatoramp;() prohibited for classes stored in STL containers?(为什么禁止对存储在 STL 容器中的类重载 operatoramp;()?)
                  • <bdo id='DcfO6'></bdo><ul id='DcfO6'></ul>
                      <tbody id='DcfO6'></tbody>

                    <small id='DcfO6'></small><noframes id='DcfO6'>

                    1. <i id='DcfO6'><tr id='DcfO6'><dt id='DcfO6'><q id='DcfO6'><span id='DcfO6'><b id='DcfO6'><form id='DcfO6'><ins id='DcfO6'></ins><ul id='DcfO6'></ul><sub id='DcfO6'></sub></form><legend id='DcfO6'></legend><bdo id='DcfO6'><pre id='DcfO6'><center id='DcfO6'></center></pre></bdo></b><th id='DcfO6'></th></span></q></dt></tr></i><div id='DcfO6'><tfoot id='DcfO6'></tfoot><dl id='DcfO6'><fieldset id='DcfO6'></fieldset></dl></div>

                      <legend id='DcfO6'><style id='DcfO6'><dir id='DcfO6'><q id='DcfO6'></q></dir></style></legend>

                            <tfoot id='DcfO6'></tfoot>