Skip to content

Commit 8d75629

Browse files
committed
symbol name pollution fix: adding ompi_ prefixes
This is part of a symbol name pollution fix, adding "ompi_" or similar prefixes to a bunch of symbols. This commit was largely scripted. Signed-off-by: Mark Allen <[email protected]>
1 parent 6a93897 commit 8d75629

File tree

92 files changed

+724
-724
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

92 files changed

+724
-724
lines changed

ompi/mca/coll/adapt/coll_adapt_ibcast.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ int ompi_coll_adapt_ibcast(void *buff, int count, struct ompi_datatype_t *dataty
335335
}
336336

337337
return ompi_coll_adapt_ibcast_generic(buff, count, datatype, root, comm, request, module,
338-
adapt_module_cached_topology(module, comm, root, mca_coll_adapt_component.adapt_ibcast_algorithm),
338+
ompi_adapt_module_cached_topology(module, comm, root, mca_coll_adapt_component.adapt_ibcast_algorithm),
339339
mca_coll_adapt_component.adapt_ibcast_segment_size);
340340
}
341341

ompi/mca/coll/adapt/coll_adapt_ireduce.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -504,7 +504,7 @@ int ompi_coll_adapt_ireduce(const void *sbuf, void *rbuf, int count, struct ompi
504504

505505

506506
return ompi_coll_adapt_ireduce_generic(sbuf, rbuf, count, dtype, op, root, comm, request, module,
507-
adapt_module_cached_topology(module, comm, root, mca_coll_adapt_component.adapt_ireduce_algorithm),
507+
ompi_adapt_module_cached_topology(module, comm, root, mca_coll_adapt_component.adapt_ireduce_algorithm),
508508
mca_coll_adapt_component.adapt_ireduce_segment_size);
509509

510510
}

ompi/mca/coll/adapt/coll_adapt_module.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,8 @@ static void adapt_module_construct(mca_coll_adapt_module_t * module)
6363
static void adapt_module_destruct(mca_coll_adapt_module_t * module)
6464
{
6565
if (NULL != module->topo_cache) {
66-
adapt_topology_cache_item_t *item;
67-
while (NULL != (item = (adapt_topology_cache_item_t*)opal_list_remove_first(module->topo_cache))) {
66+
ompi_adapt_topology_cache_item_t *item;
67+
while (NULL != (item = (ompi_adapt_topology_cache_item_t*)opal_list_remove_first(module->topo_cache))) {
6868
OBJ_RELEASE(item);
6969
}
7070
OBJ_RELEASE(module->topo_cache);

ompi/mca/coll/adapt/coll_adapt_topocache.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,14 @@
1414

1515
#include "ompi/communicator/communicator.h"
1616

17-
static void destruct_topology_cache(adapt_topology_cache_item_t *item)
17+
static void destruct_topology_cache(ompi_adapt_topology_cache_item_t *item)
1818
{
1919
if (NULL != item->tree) {
2020
ompi_coll_base_topo_destroy_tree(&item->tree);
2121
}
2222
}
2323

24-
OBJ_CLASS_INSTANCE(adapt_topology_cache_item_t, opal_list_item_t,
24+
OBJ_CLASS_INSTANCE(ompi_adapt_topology_cache_item_t, opal_list_item_t,
2525
NULL, &destruct_topology_cache);
2626

2727
static ompi_coll_tree_t *create_topology(
@@ -73,17 +73,17 @@ static ompi_coll_tree_t *create_topology(
7373
}
7474
}
7575

76-
ompi_coll_tree_t* adapt_module_cached_topology(
76+
ompi_coll_tree_t* ompi_adapt_module_cached_topology(
7777
mca_coll_base_module_t *module,
7878
struct ompi_communicator_t *comm,
7979
int root,
8080
ompi_coll_adapt_algorithm_t algorithm)
8181
{
8282
mca_coll_adapt_module_t *adapt_module = (mca_coll_adapt_module_t*)module;
83-
adapt_topology_cache_item_t *item;
83+
ompi_adapt_topology_cache_item_t *item;
8484
ompi_coll_tree_t * tree;
8585
if (NULL != adapt_module->topo_cache) {
86-
OPAL_LIST_FOREACH(item, adapt_module->topo_cache, adapt_topology_cache_item_t) {
86+
OPAL_LIST_FOREACH(item, adapt_module->topo_cache, ompi_adapt_topology_cache_item_t) {
8787
if (item->root == root && item->algorithm == algorithm) {
8888
return item->tree;
8989
}
@@ -95,7 +95,7 @@ ompi_coll_tree_t* adapt_module_cached_topology(
9595
/* topology not found, create one */
9696
tree = create_topology(algorithm, root, comm);
9797

98-
item = OBJ_NEW(adapt_topology_cache_item_t);
98+
item = OBJ_NEW(ompi_adapt_topology_cache_item_t);
9999
item->tree = tree;
100100
item->root = root;
101101
item->algorithm = algorithm;

ompi/mca/coll/adapt/coll_adapt_topocache.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,17 +17,17 @@
1717
#include "ompi/mca/coll/coll.h"
1818
#include "ompi/mca/coll/base/coll_base_topo.h"
1919

20-
typedef struct adapt_topology_cache_item_t {
20+
typedef struct ompi_adapt_topology_cache_item_t {
2121
opal_list_item_t super;
2222
ompi_coll_tree_t *tree;
2323
int root;
2424
ompi_coll_adapt_algorithm_t algorithm;
25-
} adapt_topology_cache_item_t;
25+
} ompi_adapt_topology_cache_item_t;
2626

27-
OBJ_CLASS_DECLARATION(adapt_topology_cache_item_t);
27+
OBJ_CLASS_DECLARATION(ompi_adapt_topology_cache_item_t);
2828

2929

30-
OMPI_DECLSPEC ompi_coll_tree_t* adapt_module_cached_topology(
30+
OMPI_DECLSPEC ompi_coll_tree_t* ompi_adapt_module_cached_topology(
3131
mca_coll_base_module_t *module,
3232
struct ompi_communicator_t *comm,
3333
int root,

ompi/mca/coll/han/coll_han.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,7 @@ int mca_coll_han_init_query(bool enable_progress_threads, bool enable_mpi_thread
356356

357357
mca_coll_base_module_t *mca_coll_han_comm_query(struct ompi_communicator_t *comm, int *priority);
358358

359-
int han_request_free(ompi_request_t ** request);
359+
int ompi_han_han_request_free(ompi_request_t ** request);
360360

361361
/* Subcommunicator creation */
362362
int mca_coll_han_comm_create(struct ompi_communicator_t *comm, mca_coll_han_module_t * han_module);

ompi/mca/coll/han/coll_han_allgather.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ mca_coll_han_allgather_intra(const void *sbuf, int scount,
9696
temp_request = OBJ_NEW(ompi_request_t);
9797
temp_request->req_state = OMPI_REQUEST_ACTIVE;
9898
temp_request->req_type = OMPI_REQUEST_COLL;
99-
temp_request->req_free = han_request_free;
99+
temp_request->req_free = ompi_han_han_request_free;
100100
temp_request->req_status = (ompi_status_public_t){0};
101101
temp_request->req_complete = REQUEST_PENDING;
102102

ompi/mca/coll/han/coll_han_allreduce.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -525,7 +525,7 @@ mca_coll_han_allreduce_reproducible_decision(struct ompi_communicator_t *comm,
525525
opal_output_verbose(30, mca_coll_han_component.han_output,
526526
"coll:han:allreduce_reproducible: "
527527
"fallback on %s\n",
528-
available_components[fallback].component_name);
528+
ompi_han_available_components[fallback].component_name);
529529
}
530530
han_module->reproducible_allreduce_module = fallback_module;
531531
han_module->reproducible_allreduce = fallback_module->coll_allreduce;

ompi/mca/coll/han/coll_han_component.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
const char *mca_coll_han_component_version_string =
3434
"Open MPI HAN collective MCA component version " OMPI_VERSION;
3535

36-
ompi_coll_han_components available_components[COMPONENTS_COUNT] = {
36+
ompi_coll_han_components ompi_han_available_components[COMPONENTS_COUNT] = {
3737
{ SELF, "self", NULL },
3838
{ BASIC, "basic", NULL },
3939
{ LIBNBC, "libnbc", NULL },
@@ -328,7 +328,7 @@ static int han_register(void)
328328
param_desc_size += snprintf(param_desc+param_desc_size, sizeof(param_desc) - param_desc_size,
329329
"%d = %s; ",
330330
component,
331-
available_components[component].component_name);
331+
ompi_han_available_components[component].component_name);
332332
}
333333

334334
mca_base_component_var_register(c, param_name, param_desc,

ompi/mca/coll/han/coll_han_dynamic.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ mca_coll_han_component_name_to_id(const char* name)
4444
}
4545

4646
for( int i = SELF; i < COMPONENTS_COUNT ; i++ ) {
47-
if (0 == strcmp(name, available_components[i].component_name)) {
47+
if (0 == strcmp(name, ompi_han_available_components[i].component_name)) {
4848
return i;
4949
}
5050
}
@@ -237,7 +237,7 @@ get_dynamic_rule(COLLTYPE_T collective,
237237
msg_size_rule->topologic_level,
238238
mca_coll_han_topo_lvl_to_str(msg_size_rule->topologic_level),
239239
msg_size_rule->configuration_size,
240-
msg_size_rule->msg_size, component, available_components[component].component_name);
240+
msg_size_rule->msg_size, component, ompi_han_available_components[component].component_name);
241241

242242
return msg_size_rule;
243243
}

0 commit comments

Comments
 (0)