gpt4 book ai didi

mpi - MPI_status 中的未知字段

转载 作者:行者123 更新时间:2023-12-04 19:37:01 26 4
gpt4 key购买 nike

我正在使用 MPI 库,并且在使用 var 类型 MPI_status 时,我厌倦了访问字段计数,但编译器说它不可用。
我发现了 2 个不同的 soucres - 一个声称该结构有一个名为 count 的字段,另一个声称 in 有一个名为 size 的字段。
我都试过了,都不会编译。有什么想法吗?

谢谢。

最佳答案

http://www.netlib.org/utk/papers/mpi-book/node31.html

In C, status is a structure of type MPI_Status that contains three fields named MPI_SOURCE, MPI_TAG, and MPI_ERROR; the structure may contain additional fields.

使用:

MPI_Get_count(MPI_Status *status, MPI_Datatype datatype, int *count) 

关于mpi - MPI_status 中的未知字段,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4831628/

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