HcclCommConfigInit
产品支持情况
产品 |
是否支持 |
|---|---|
√ |
|
√ |
|
x |
|
x |
|
√ |
|
√ |
针对
功能说明
初始化通信域配置项,并将其中的可配置参数设为默认值。
函数原型
1 | inline void HcclCommConfigInit(HcclCommConfig *config) |
参数说明
参数名 |
输入/输出 |
描述 |
|---|---|---|
config |
输出 |
需要初始化的通信域配置项。 HcclCommConfig类型的定义可参见HcclCommConfig。 |
返回值
无
约束说明
无
调用示例
1 2 3 4 5 6 7 | // 创建并初始化通信域配置项 HcclCommConfig config; HcclCommConfigInit(&config); // 按需修改通信域配置 config.hcclBufferSize = 1024; // 共享数据的缓存区大小,单位为:MB,取值需 >= 1,默认值为:200 config.hcclDeterministic = 1; // 开启归约类通信算子的确定性计算,默认值为:0,表示关闭确定性计算功能 std::strcpy(config.hcclCommName, "comm_1"); |
父主题: 通信域管理