Skip to content

btl/uct: allow connections to be formed using a separate memory domain #13195

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 22 additions & 1 deletion opal/mca/btl/uct/btl_uct.h
Original file line number Diff line number Diff line change
Expand Up @@ -141,9 +141,15 @@ struct mca_btl_uct_component_t {

/** allowed UCT memory domains */
char *memory_domains;
mca_btl_uct_include_list_t memory_domain_list;

/** allowed transports */
char *allowed_transports;
mca_btl_uct_include_list_t allowed_transport_list;

/** transports to consider for forming connections */
char *connection_domains;
mca_btl_uct_include_list_t connection_domain_list;

/** number of worker contexts to create */
int num_contexts_per_module;
Expand All @@ -158,6 +164,10 @@ struct mca_btl_uct_component_t {

/** connection retry timeout */
unsigned int connection_retry_timeout;

/** alternate connection-only module that can be used if no suitable
* connection tl is found. this is usually a tcp tl. */
mca_btl_uct_module_t *conn_module;
};
typedef struct mca_btl_uct_component_t mca_btl_uct_component_t;

Expand Down Expand Up @@ -294,7 +304,8 @@ struct mca_btl_base_endpoint_t *mca_btl_uct_get_ep(struct mca_btl_base_module_t
opal_proc_t *proc);

int mca_btl_uct_query_tls(mca_btl_uct_module_t *module, mca_btl_uct_md_t *md,
uct_tl_resource_desc_t *tl_descs, unsigned tl_count);
uct_tl_resource_desc_t *tl_descs, unsigned tl_count,
bool evaluate_for_conn_only);
int mca_btl_uct_process_connection_request(mca_btl_uct_module_t *module,
mca_btl_uct_conn_req_t *req);

Expand Down Expand Up @@ -341,5 +352,15 @@ static inline bool mca_btl_uct_tl_requires_connection_tl(mca_btl_uct_tl_t *tl)
return !(MCA_BTL_UCT_TL_ATTR(tl, 0).cap.flags & UCT_IFACE_FLAG_CONNECT_TO_IFACE);
}

/**
* @brief Find the rank of `name` in the include list `list`.
*
* @param[in] name name to find
* @param[in] list list to search
*
* A negative result means the name is not present or the list is negated.
*/
int mca_btl_uct_include_list_rank (const char *name, const mca_btl_uct_include_list_t *list);

END_C_DECLS
#endif
1 change: 0 additions & 1 deletion opal/mca/btl/uct/btl_uct_am.c
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ static inline void _mca_btl_uct_send_pack(void *data, void *header, size_t heade
{
uint32_t iov_count = 1;
struct iovec iov;
size_t length;

if (header_size > 0) {
assert(NULL != header);
Expand Down
Loading