我想用MPI_Allgather()
发送一个结构数组,但我的结构有一个动态数组:
typedef struct { float a; int* b; } structure_t;
我的结构通过以下方式初始化:
structure_t *resultat = (structure_t*) malloc( sizeof( structure_t ) + n * sizeof( int ) );
但是如何使用MPI_Allgather
发送我的结构? 如何创建两个(发送和接收)数组?
以上就是c/c++开发分享MPI_Allgather和动态结构相关内容,想了解更多C/C++开发(异常处理)及C/C++游戏开发关注(猴子技术宅)。
”本文来自网络收集,不代表猴子技术宅立场,如涉及侵权请点击右边联系管理员删除。
如若转载,请注明出处:https://www.ssfiction.com/c-cyuyankaifa/545990.html