Skip to content

Commit 8185faf

Browse files
authored
Merge pull request #11529 from edgargabriel/topic/coll-cuda-accelerator-fix
coll/cuda: always compile component
2 parents 16e0752 + c16ed33 commit 8185faf

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)