info(消息)
<p><strong>info</strong></p>
<p>消息模块</p>
<p><strong>数据类型执行代码</strong>
<a href="https://github.com/qianyongjun895/HPIPS/tree/master/OpenMpi-Chain/ompi/info">https://github.com/qianyongjun895/HPIPS/tree/master/OpenMpi-Chain/ompi/info</a></p>
<p><strong>ompi_info_t定义</strong></p>
<p>ompi_info_t {</p>
<p>opal_list_t super;</p>
<p>/*<em>< 泛型列表指针, 它是 (键、值) 对的容器 </em>/</p>
<p>int i_f_to_c_index;</p>
<p>/*<em>< fortran 处理的信息。这是需要转化从 fortran 到 C 和反之亦然 </em>/</p>
<p>opal_mutex_t *i_lock;</p>
<p>/*<em>< 线程安全的互斥锁</em>/</p>
<p>bool i_freed;</p>
<p>/*<em><此信息是否已被释放 </em>/
}
typedef struct ompi_info_t ompi_info_t</p>
<p><strong>ompi_info_entry_t定义</strong>
struct ompi_info_entry_t {</p>
<pre><code>opal_list_item_t super; /**&lt;opal_list_t 类型所需*/
char *ie_value; /**&lt;(键值) 对的值部分。最大长度为 MPI_MAX_INFO_VAL */
char ie_key[MPI_MAX_INFO_KEY + 1]; /**&lt; &quot;键 &quot;(键、值) 对的一部分 */</code></pre>
<p>}
typedef struct ompi_info_entry_t ompi_info_entry_t</p>
<p><strong>初始化消息</strong>
int ompi_info_init(void)</p>
<p><strong>消息执行结束</strong>
int ompi_info_finalize(void)</p>
<p><strong>消息数据用户</strong>
int ompi_info_dup (ompi_info_t *info, ompi_info_t **newinfo)</p>
<p><strong>消息设置函数</strong>
ompi_info_set (ompi_info_t <em>info, const char </em>key, const char *value)</p>
<p><strong>消息设置列举值</strong>
mpi_info_set_value_enum (ompi_info_t <em>info, const char </em>key, int value,
mca_base_var_enum_t *var_enum)</p>
<p><strong>消息释放函数</strong>
ompi_info_free (ompi_info_t **info)</p>
<p><strong>获取消息标志位</strong>
ompi_info_get_bool (ompi_info_t <em>info, char </em>key, bool <em>value,int </em>flag)</p>
<p><strong>获取消息列举值</strong>
ompi_info_get_value_enum (ompi_info_t <em>info, const char </em>key,
int <em>value, int default_value,
mca_base_var_enum_t </em>var_enum, int *flag)</p>
<p><strong>获取消息</strong>
int ompi_info_get (ompi_info_t <em>info, const char </em>key, int valuelen,char <em>value, int </em>flag)</p>
<p><strong>释放消息</strong>
ompi_info_delete (ompi_info_t <em>info, const char </em>key)</p>
<p><strong>获取消息的值</strong>
ompi_info_get_valuelen (ompi_info_t <em>info, const char </em>key, int <em>valuelen,int </em>flag)</p>
<p><strong>获取消息指定标号的值</strong>
ompi_info_get_nthkey (ompi_info_t <em>info, int n, char </em>key)</p>
<p><strong>获取消息的标志值</strong>
ompi_info_value_to_bool(char <em>value, bool </em>interp)</p>
<p><strong>获取消息的INT值</strong>
ompi_info_value_to_int(char <em>value, int </em>interp)</p>
<p><strong>判断是不是释放消息</strong>
ompi_info_is_freed(ompi_info_t *info)</p>
<p><strong>获取消息密钥</strong>
ompi_info_get_nkeys(ompi_info_t <em>info, int </em>nkeys)</p>