MPI中的mpi_type_struct和mpi_type_create_struct之间有什么区别

What is the difference between MPI_Type_struct and MPI_Type_create_struct in MPI?

本文关键字:type struct mpi 什么 区别 之间 create 中的 MPI      更新时间:2023-10-16

我已经看到两个命令都用于创建用于发送和接收消息的数据类型。

据我了解,采取相同的输入参数,他们返回给定较旧数据的新数据类型。

那么有什么区别,我什么时候应该使用一个而不是另一个?

文档说第一个被弃用,并且应该使用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