|
24 | 24 | * Copyright (c) 2017 Mellanox Technologies. All rights reserved.
|
25 | 25 | * Copyright (c) 2018 Amazon.com, Inc. or its affiliates. All Rights reserved.
|
26 | 26 | * Copyright (c) 2021 Nanook Consulting. All rights reserved.
|
27 |
| - * Copyright (c) 2020-2022 Triad National Security, LLC. All rights |
| 27 | + * Copyright (c) 2020-2024 Triad National Security, LLC. All rights |
28 | 28 | * reserved.
|
29 | 29 | * $COPYRIGHT$
|
30 | 30 | *
|
@@ -590,7 +590,7 @@ static int ompi_comm_allreduce_getnextcid (ompi_comm_request_t *request)
|
590 | 590 | context->nextlocal_cid = mca_pml.pml_max_contextid;
|
591 | 591 | for (unsigned int i = context->start ; i < mca_pml.pml_max_contextid ; ++i) {
|
592 | 592 | flag = opal_pointer_array_test_and_set_item (&ompi_mpi_communicators, i,
|
593 |
| - OMPI_COMM_SENTINEL); |
| 593 | + (void *)OMPI_COMM_SENTINEL); |
594 | 594 | if (true == flag) {
|
595 | 595 | context->nextlocal_cid = i;
|
596 | 596 | break;
|
@@ -664,7 +664,8 @@ static int ompi_comm_checkcid (ompi_comm_request_t *request)
|
664 | 664 | opal_pointer_array_set_item(&ompi_mpi_communicators, context->nextlocal_cid, NULL);
|
665 | 665 |
|
666 | 666 | context->flag = opal_pointer_array_test_and_set_item (&ompi_mpi_communicators,
|
667 |
| - context->nextcid, OMPI_COMM_SENTINEL); |
| 667 | + context->nextcid, |
| 668 | + (void *)OMPI_COMM_SENTINEL); |
668 | 669 | }
|
669 | 670 | }
|
670 | 671 |
|
@@ -716,7 +717,7 @@ static int ompi_comm_nextcid_check_flag (ompi_comm_request_t *request)
|
716 | 717 | for (unsigned int i = context->start ; i < mca_pml.pml_max_contextid ; ++i) {
|
717 | 718 | bool flag;
|
718 | 719 | flag = opal_pointer_array_test_and_set_item (&ompi_mpi_communicators, i,
|
719 |
| - OMPI_COMM_SENTINEL); |
| 720 | + (void *)OMPI_COMM_SENTINEL); |
720 | 721 | if (true == flag) {
|
721 | 722 | context->nextlocal_cid = i;
|
722 | 723 | break;
|
|
0 commit comments