
also add common verbose variable. Note the verbosity thing is a little tricky owing to the way the MCA frameworks and components are registered and and initialized. The BTL's are registered/initialized prior to the MTL components even getting registered. Here's the change in ofi mtl mca parameters. Before commit: MCA mtl ofi: parameter "mtl_ofi_provider_include" (current value: "psm2", data source: environment, level: 1 user/basic, type: string) Comma-delimited list of OFI providers that are considered for use (e.g., "psm,psm2"; an empty value means that all providers will be considered). Mutually exclusive with mtl_ofi_provider_exclude. MCA mtl ofi: parameter "mtl_ofi_provider_exclude" (current value: "shm,sockets,tcp,udp,rstream", data source: default, level: 1 user/basic, type: string) Comma-delimited list of OFI providers that are not considered for use (default: "sockets,mxm"; empty value means that all providers will be considered). Mutually exclusive with mtl_ofi_provider_include. After commit: MCA btl ofi: parameter "btl_ofi_provider_include" (current value: "", data source: default, level: 1 user/basic, type: string, synonym of: opal_common_ofi_provider_include) Comma-delimited list of OFI providers that are considered for use (e.g., "psm,psm2"; an empty value means that all providers will be considered). Mutually exclusive with mtl_ofi_provider_exclude. MCA btl ofi: parameter "btl_ofi_provider_exclude" (current value: "shm,sockets,tcp,udp,rstream", data source: default, level: 1 user/basic, type: string, synonym of: opal_common_ofi_provider_exclude) Comma-delimited list of OFI providers that are not considered for use (default: "sockets,mxm"; empty value means that all providers will be considered). Mutually exclusive with mtl_ofi_provider_include. MCA mtl ofi: parameter "mtl_ofi_provider_exclude" (current value: "shm,sockets,tcp,udp,rstream", data source: default, level: 1 user/basic, type: string, synonym of: opal_common_ofi_provider_exclude) Comma-delimited list of OFI providers that are not considered for use (default: "sockets,mxm"; empty value means that all providers will be considered). Mutually exclusive with mtl_ofi_provider_include. MCA mtl ofi: parameter "mtl_ofi_verbose" (current value: "0", data source: default, level: 3 user/all, type: int, synonym of: opal_common_ofi_verbose) related to #7755 Signed-off-by: Howard Pritchard <howardp@lanl.gov> (cherry picked from commit 9f1081a07ac3c7b7277a27277ed970ed713207c9) (cherry picked from commit 45b643d0cfa46f1abb9a5f43cf0ff304cf6a5fea)
47 строки
1.4 KiB
C
47 строки
1.4 KiB
C
/* -*- Mode: C; c-basic-offset:4 ; indent-tabs-mode:nil -*- */
|
|
/*
|
|
* Copyright (c) 2015 Intel, Inc. All rights reserved.
|
|
* Copyright (c) 2017 Los Alamos National Security, LLC. All rights
|
|
* reserved.
|
|
* Copyright (c) 2020 Triad National Security, LLC. All rights
|
|
* reserved.
|
|
*
|
|
* $COPYRIGHT$
|
|
*
|
|
* Additional copyrights may follow
|
|
*
|
|
* $HEADER$
|
|
*/
|
|
|
|
#ifndef OPAL_MCA_COMMON_OFI_H
|
|
#define OPAL_MCA_COMMON_OFI_H
|
|
|
|
#include "opal_config.h"
|
|
#include "opal/mca/base/mca_base_var.h"
|
|
#include "opal/mca/base/mca_base_framework.h"
|
|
#include <rdma/fabric.h>
|
|
|
|
BEGIN_C_DECLS
|
|
|
|
typedef struct opal_common_ofi_module {
|
|
char **prov_include;
|
|
char **prov_exclude;
|
|
int verbose;
|
|
int registered;
|
|
int output;
|
|
} opal_common_ofi_module_t;
|
|
|
|
extern opal_common_ofi_module_t opal_common_ofi;
|
|
|
|
OPAL_DECLSPEC int opal_common_ofi_register_mca_variables(const mca_base_component_t *component);
|
|
OPAL_DECLSPEC void opal_common_ofi_mca_register(void);
|
|
OPAL_DECLSPEC void opal_common_ofi_mca_deregister(void);
|
|
OPAL_DECLSPEC struct fi_info* opal_common_ofi_select_ofi_provider(struct fi_info *providers,
|
|
char *framework_name);
|
|
|
|
END_C_DECLS
|
|
|
|
struct fi_info* opal_mca_common_ofi_select_provider(struct fi_info *provider_list, int rank);
|
|
|
|
#endif /* OPAL_MCA_COMMON_OFI_H */
|