⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 bnr_merge.cpp

📁 MPICH是MPI的重要研究,提供了一系列的接口函数,为并行计算的实现提供了编程环境.
💻 CPP
字号:
#include "bnr_internal.h"/* calling process must be in the local group and * must not be in the remote group.  Collective  * over the union of the two groups.  */MPICH_BNR_API int BNR_Merge( BNR_Group local_group, BNR_Group remote_group, BNR_Group *new_group ){	// Check parameters.	if (local_group == BNR_GROUP_NULL || local_group == BNR_INVALID_GROUP || remote_group == BNR_INVALID_GROUP)	{		*new_group = BNR_INVALID_GROUP;		return BNR_FAIL;	}	// Handle the case of merging with a NULL group	if (remote_group == BNR_GROUP_NULL)	{		*new_group = local_group;		return BNR_SUCCESS;	}	*new_group = MergeBNRGroupToList((BNR_Group_node*)local_group, (BNR_Group_node*)remote_group);	return (*new_group == BNR_INVALID_GROUP) ? BNR_FAIL : BNR_SUCCESS;}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -