Skip to content

Commit c16ed33

Browse files
committed
coll/cuda: always compile component
the coll/cuda component has been converted to use the accelerator framework. Hence, we can always compile it, no need for the configure logic. Furthemore, the component will now disqualify itself if the accelerator component selected is the 'null' component. Signed-off-by: Edgar Gabriel <Edgar.Gabriel@amd.com>
1 parent 118b95d commit c16ed33

File tree

2 files changed

+8
-29
lines changed

2 files changed

+8
-29
lines changed

ompi/mca/coll/cuda/coll_cuda_module.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
* Copyright (c) 2014 NVIDIA Corporation. All rights reserved.
66
* Copyright (c) 2019 Research Organization for Information Science
77
* and Technology (RIST). All rights reserved.
8+
* Copyright (c) 2023 Advanced Micro Devices, Inc. All rights reserved.
89
* $COPYRIGHT$
910
*
1011
* Additional copyrights may follow
@@ -81,6 +82,13 @@ mca_coll_cuda_comm_query(struct ompi_communicator_t *comm,
8182
{
8283
mca_coll_cuda_module_t *cuda_module;
8384

85+
if (0 == strcmp(opal_accelerator_base_selected_component.base_version.mca_component_name,
86+
"null")) {
87+
opal_output_verbose(10, ompi_coll_base_framework.framework_output,
88+
"coll:cuda:comm_query: accelerator component is null: disqualifying myself");
89+
return NULL;
90+
}
91+
8492
cuda_module = OBJ_NEW(mca_coll_cuda_module_t);
8593
if (NULL == cuda_module) {
8694
return NULL;

ompi/mca/coll/cuda/configure.m4

Lines changed: 0 additions & 29 deletions
This file was deleted.

0 commit comments

Comments
 (0)