gpt4 book ai didi

c++ - 使用 Boost.MPI 库的目的是什么?

转载 作者:塔克拉玛干 更新时间:2023-11-02 23:52:48 25 4
gpt4 key购买 nike

使用 Boost.MPI 库的目的是什么?它会 boost 性能吗?它和MPICH库有什么区别?

最佳答案

Boost.MPI provides

an alternative C++ interface to MPI that better supports modern C++ development styles, including complete support for user-defined data types and C++ Standard Library types, arbitrary function objects for collective algorithms, and the use of modern C++ library techniques.

它打算

to maintain maximal efficiency

但实际上并不是改进 MPI 的性能;它不能,因为它仍然与现有的 MPI 实现相关联(尽管它可能以比您编写它们更有效的方式实现一些高级模式,具体取决于您是 MPI 专家的程度)。它主要比常规的 C API 更方便。

关于c++ - 使用 Boost.MPI 库的目的是什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9850885/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com