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

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

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

      1. <tfoot id='Thqrt'></tfoot>
          <bdo id='Thqrt'></bdo><ul id='Thqrt'></ul>

        英特尔 TBB 和微软 PPL 有什么区别?

        What are the differences between Intel TBB and Microsoft PPL?(英特尔 TBB 和微软 PPL 有什么区别?)

        1. <small id='rr59o'></small><noframes id='rr59o'>

            <bdo id='rr59o'></bdo><ul id='rr59o'></ul>
              <tbody id='rr59o'></tbody>
            <tfoot id='rr59o'></tfoot>

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

                  本文介绍了英特尔 TBB 和微软 PPL 有什么区别?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我打算开始玩"一个跨平台项目的基于任务的并行性.我想使用英特尔线程构建块.我从 Windows 和 Visual Studio 开始.

                  I'm planning to start "playing" with task-based parallelism for a cross-platform project. I wanted to use Intel Threading Building Blocks. I'm starting with Windows and Visual Studio.

                  因为我现在只想做原型,所以我想只在 Windows 上玩",然后有足够的知识在所有兼容平台上使用该库.

                  As I just want to prototype for the moment, I'm thinking about "playing" only on windows, then have enough knowledge to use the library on all compatible platforms.

                  我了解到,自 VS2010 以来,Microsoft 提供了一个类似的库,即并行处理库,其接口(几乎)与英特尔 TBB 相同.

                  I've learned that since VS2010, Microsoft provide a similar library, Parallel Processing Library, that have (almost) the same interface than Intel TBB.

                  一些消息来源(包括 TBB 的团队博客)表明,他们是一起构建的,并且是同一个库.

                  Some sources suggest, including TBB's team blog, that they build it together and that it's the same library.

                  然而,它并不是很明确,因为人们经常认为这两个库之间存在细微差别.

                  However its not really explicit because it's often suggested that there are minor differences between the two libraries.

                  那么,如果有的话,那些差异是什么?我应该直接从最后一个稳定的 ITBB 开始,还是只在原型中使用 Microsoft PPL 并在跨平台上使用 ITBB 的风险低真正的"项目?

                  So, what are those differences, if any? Should I start directly with last stable ITBB or is it low-risk to just play with Microsoft PPL in prototypes and use ITBB on the cross-platform "real" project?

                  推荐答案

                  TBB 是 PPL(如在 VS2010 中),因此它提供了所有 PPL API 以及 PPL 没有的自己的 API.

                  TBB is a superset of PPL (as in VS2010), so it provides all PPL API plus its own APIs that PPL does not have.

                  请注意,VS2010 中的namespace Concurrency 还包含以下 API并发运行时(ConcRT,在其上构建了 PPL)、异步代理等.TBB 没有大部分,尽管它有一些(例如 critical_section).作为异步代理的替代方案,TBB 的最新版本具有新的流图 API.

                  Note that namespace Concurrency in VS2010 also contains APIs of Concurrency Runtime (ConcRT, on top of which PPL is built), Asynchronous Agents and etc. TBB does not have most of that, though it has some (e.g. critical_section). As an alternative to Asynchronous Agents, the recent version of TBB features the new flow graph API.

                  理论上,要从 PPL 切换到 TBB,您只需要替换您获取 ppl.h 的路径(使用 TBB,标题位于 <tbbdir>/include/tbb/compat),当然还有与 TBB DLL 的链接.但是,在这种情况下,您将仅限于 PPL API.要使用 PPL 中不存在的额外"TBB API(例如 parallel_pipelineparallel_reduceconcurrent_priority_queue 等),您需要从一开始就与 TBB 合作.

                  In theory, to switch from PPL to TBB, you just need to replace a path from where you take ppl.h (with TBB, the header comes in <tbbdir>/include/tbb/compat) and of course link with the TBB DLL. However in this case you will be limited to PPL API. To use the "extra" TBB API that does not exist in PPL (such as parallel_pipeline, parallel_reduce, concurrent_priority_queue and other), you need to work with TBB from the very beginning.

                  这篇关于英特尔 TBB 和微软 PPL 有什么区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

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

                  相关文档推荐

                  Constructor initialization Vs assignment(构造函数初始化 Vs 赋值)
                  Is a `=default` move constructor equivalent to a member-wise move constructor?(`=default` 移动构造函数是否等同于成员移动构造函数?)
                  Has the new C++11 member initialization feature at declaration made initialization lists obsolete?(声明时新的 C++11 成员初始化功能是否使初始化列表过时了?)
                  Order of constructor call in virtual inheritance(虚继承中构造函数调用的顺序)
                  How to use sfinae for selecting constructors?(如何使用 sfinae 选择构造函数?)
                  Initializing a union with a non-trivial constructor(使用非平凡的构造函数初始化联合)

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

                  • <small id='tLemb'></small><noframes id='tLemb'>

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