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

📄 mca_base_param.h

📁 MPI stands for the Message Passing Interface. Written by the MPI Forum (a large committee comprising
💻 H
📖 第 1 页 / 共 3 页
字号:
     * parameter.     */    OPAL_DECLSPEC int mca_base_param_unset(int index);    /**     * Get the string name corresponding to the MCA parameter     * value in the environment.     *     * @param param_name Name of the type containing the parameter.     *     * @retval string A string suitable for setenv() or appending to     * an environ-style string array.     * @retval NULL Upon failure.     *     * The string that is returned is owned by the caller; if     * appropriate, it must be eventually freed by the caller.     */    OPAL_DECLSPEC char *mca_base_param_env_var(const char *param_name);    /**     * Find the index for an MCA parameter based on its names.     *     * @param type Name of the type containing the parameter.     * @param component Name of the component containing the parameter.     * @param param Name of the parameter.     *     * @retval OPAL_ERROR If the parameter was not found.     * @retval index If the parameter was found.     *     * It is not always convenient to widely propagate a parameter's index     * value, or it may be necessary to look up the parameter from a     * different component -- where it is not possible to have the return     * value from mca_base_param_register_int() or     * mca_base_param_register_string().  This function can be used to     * look up the index of any registered parameter.  The returned index     * can be used with mca_base_param_lookup_int() and     * mca_base_param_lookup_string().     */    OPAL_DECLSPEC int mca_base_param_find(const char *type,                                           const char *component,                                           const char *param);    /**     * Set the "internal" flag on an MCA parameter to true or false.     *     * @param index [in] Index previous returned from     * mca_base_param_register_string() or mca_base_param_register_int().      * @param internal [in] Boolean indicating whether the MCA     * parameter is internal (private) or public.     *     * @returns OPAL_SUCCESS If it can find the parameter to reset     * @returns OPAL_ERROR Otherwise     *     * "Internal" MCA parameters are ones that are not intentended to     * be seen or modified by users or user applications.  These     * include values that are set at run time, such as TCP ports, IP     * addresses, etc.  By setting the "internal" flag, internal MCA     * parameters are not displayed during the output of ompi_info and     * MPI_INIT (at least, they're not displayed by default), thus     * keeping them away from prying user eyes.     */    OPAL_DECLSPEC int mca_base_param_set_internal(int index, bool internal);    /**     * Obtain a list of all the MCA parameters currently defined as     * well as their types.       *     * @param info [out] An opal_list_t of mca_base_param_info_t     * instances.     * @param internal [in] Whether to include the internal parameters     * or not.     *     * @retval OPAL_SUCCESS Upon success.     * @retval OPAL_ERROR Upon failure.     *     * This function is used to obtain a list of all the currently     * registered MCA parameters along with their associated types     * (currently: string or integer).  The results from this function     * can be used to repeatedly invoke mca_base_param_lookup_int()     * and/or mca_base_param_lookup_string() to obtain a comprehensive     * list of all MCA parameters and their current values.     *     * Releasing the list, and all the items in the list, is a     * relatively complicated process.  Use the companion function     * mca_base_param_dump_release() when finished with the returned     * info list to release all associated memory.     */    OPAL_DECLSPEC int mca_base_param_dump(opal_list_t **info, bool internal);    /**     * Obtain a list of all the MCA parameters currently defined as     * well as their types.       *     * @param env [out] A pointer to an argv-style array of key=value     * strings, suitable for use in an environment     * @param num_env [out] A pointer to an int, containing the length     * of the env array (not including the final NULL entry).     * @param internal [in] Whether to include the internal parameters     * or not.     *     * @retval OPAL_SUCCESS Upon success.     * @retval OPAL_ERROR Upon failure.     *     * This function is similar to mca_base_param_dump() except that     * its output is in terms of an argv-style array of key=value     * strings, suitable for using in an environment.     */    OPAL_DECLSPEC int mca_base_param_build_env(char ***env, int *num_env,                                               bool internal);    /**     * Release the memory associated with the info list returned from     * mca_base_param_dump().     *     * @param info [in/out] An opal_list_t previously returned from     * mca_base_param_dump().     *     * @retval OPAL_SUCCESS Upon success.     * @retval OPAL_ERROR Upon failure.     *      * This function is intended to be used to free the info list     * returned from mca_base_param_dump().  There are a bunch of     * strings and other associated memory in the list making it     * cumbersome for the caller to free it all properly.  Hence, once     * the caller is finished with the info list, invoke this     * function and all memory associated with the list will be freed.     */    OPAL_DECLSPEC int mca_base_param_dump_release(opal_list_t *info);    /**     * Shut down the MCA parameter system (normally only invoked by the     * MCA framework itself).     *     * @returns OPAL_SUCCESS This function never fails.     *     * This function shuts down the MCA parameter repository and frees all     * associated memory.  No other mca_base_param*() functions can be     * invoked after this function.     *     * This function is normally only invoked by the MCA framework itself     * when the process is shutting down (e.g., during MPI_FINALIZE).  It     * is only documented here for completeness.     */    OPAL_DECLSPEC int mca_base_param_finalize(void);    /***************************************************************     * Deprecated interface     ***************************************************************/    /**     * \deprecated     *     * Register an integer MCA parameter (deprecated).     *     * @param type_name [in] The MCA type (string).     * @param component_name [in] The name of the component (string).     * @param param_name [in] The name of the parameter being registered     * (string).     * @param mca_param_name [in] Optional parameter to override the     * user-visible name of this parameter (string).     * @param default_value [in] The value that is used for this     * parameter if the user does not supply one.     *     * @retval OPAL_ERROR Upon failure to register the parameter.     * @retval index Index value that can be used with     * mca_base_param_lookup_int() to retrieve the value of the parameter.     *     * This function is deprecated.  Use mca_base_param_reg_int() instead.     *     * This function registers an integer MCA parameter and associates it     * with a specific component.     *     * The default resulting MCA parameter name is     * {type_name}[_{component_name}][_{param_name}].     *     * {component_name} is only included if it is non-NULL.  All     * components an should include their name; component frameworks     * should pass "base".  It is only permissible for the MCA base     * itself to pass NULL for the component_name.     *     * Likewise, {param_name} is also only included if it is non-NULL.     * Components and frameworks can pass NULL for this parameter if     * they wish.     *     * In most cases, mca_param_name should be NULL, in which case the     * user-visible name of this parameter will be the default form (as     * described above).  Only in rare cases is it necessary (or     * advisable) to override the default name -- its use is strongly     * discouraged.     *     * It is permissable to register a (type_name, component_name,     * param_name) triple more than once; the same index value will be     * returned, but the default value will be changed to reflect the     * last registration.     */    OPAL_DECLSPEC int mca_base_param_register_int(const char *type_name,                                                   const char *component_name,                                                  const char *param_name,                                                   const char *mca_param_name,                                                  int default_value);        /**     * \deprecated     *     * Register a string MCA parameter (deprecated).     *     * @param type_name [in] The MCA type (string).     * @param component_name [in] The name of the component (string).     * @param param_name [in] The name of the parameter being registered     * (string).     * @param mca_param_name [in] Optional parameter to override the     * user-visible name of this parameter (string).     * @param default_value [in] The value that is used for this     * parameter if the user does not supply one.     *     * @retval OPAL_ERROR Upon failure to register the parameter.     * @retval index Index value that can be used with     * mca_base_param_lookup_string() to retrieve the value of the     * parameter.     *     * This function is deprecated.  Use mca_base_param_reg_string()     * instead.     *     * Note that if a string value is read in from a file then it will     * never be NULL. It will always have a value, even if that value is     * the empty string.     *     * This function is identical to mca_base_param_register_int()     * except that you are registering a string parameter with an     * associated string default value (which is \em not allowed to be NULL).     * See mca_base_param_register_int() for all other details.     */    OPAL_DECLSPEC int mca_base_param_register_string(const char *type_name,                                                      const char *component_name,                                                     const char *param_name,                                                      const char *mca_param_name,                                                     const char *default_value);    /**     * \deprecated     *     * Get the string name corresponding to the MCA parameter     * value in the environment (deprecated).     *     * @param type Name of the type containing the parameter.     * @param comp Name of the component containing the parameter.     * @param param Name of the parameter.     *     * @retval string A string suitable for setenv() or appending to     * an environ-style string array.     * @retval NULL Upon failure.     *     * This function is deprecated.  Use mca_base_param_env_var()     * instead.     *     * The string that is returned is owned by the caller; if     * appropriate, it must be eventually freed by the caller.     */    OPAL_DECLSPEC char *mca_base_param_environ_variable(const char *type,                                                        const char *comp,                                                        const char *param);#if defined(c_plusplus) || defined(__cplusplus)}#endif#endif /* OMPI_MCA_BASE_PARAM_H */

⌨️ 快捷键说明

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