MPI中的mpi_type_struct和mpi_type_create_struct之间有什么区别
What is the difference between MPI_Type_struct and MPI_Type_create_struct in MPI?
我已经看到两个命令都用于创建用于发送和接收消息的数据类型。
据我了解,采取相同的输入参数,他们返回给定较旧数据的新数据类型。
那么有什么区别,我什么时候应该使用一个而不是另一个?
文档说第一个被弃用,并且应该使用mpi_type_create_struct。两者都做同样的事情。
来源:https://www.open-mpi.org/doc/v4.0/man3/mpi_type_struct.3.phphttps://www.open-mpi.org/doc/v4.0/man3/mpi_type_create_struct.3.php
相关文章:
- std::map<struct,struct>::find 找不到匹配项,但是如果我循环通过 begin() 到 end(),我在那里看到匹配项
- Openssl 1.1.1d无效使用不完整的类型"struct dsa_st"
- C++Union/Struct位域的实现和可移植性
- 使用 [] 运算符时"binding reference of type discards qualifiers"
- 如何在c++中定义以struct为数据成员的类中的构造函数
- 在 QVector<std::unique_ptr 上使用 std::find<Type>>
- 在类型和包装器之间reinterpret_cast是否安全<Type>?
- 使用 cmake 的 Linux 终端上的"Conversion to non-scalar type is requested"错误
- 结构体 S { int align; } 之间的区别;(struct 关键字后的名称)和 struct { int al
- 控制到达非空函数clang(-Wreturn-type)的末尾
- struct.error:解压缩 C++ 结构时,解包需要 288 字节的缓冲区
- std::unordered_map 类型对象声明期间出现"field has incomplete type"错误
- 错误:"Left of getValue must have class/struct/union"
- 为什么具有 list<struct type>::itrator 的 struct 不能通过 clear() 删除?
- "struct type variablename"声明有效吗?
- C++错误:" 'class' does not name a type"和"invalid use of incomplete type ‘struct ...' "
- 获取"Use of undefined type"和"Must have class/struct/union"错误
- 提升精神语法错误 - "no type named ‘size’ in ‘struct boost::spirit::unused_type’"
- Type def struct C objective to C++
- 编译错误"'struct' type redefinition"尽管它是它的第一个定义