1
1
/* -*- Mode: C++; c-basic-offset:4; indent-tabs-mode:nil -*- */
2
2
/*
3
- * Copyright (c) 2021-2024 Triad National Security, LLC
3
+ * Copyright (c) 2021-2025 Triad National Security, LLC
4
4
* All rights reserved.
5
5
*
6
6
* This file is part of the quo-vadis project. See the LICENSE file at the
@@ -694,9 +694,9 @@ qvi_hwsplit_coll::gather_values(
694
694
return rc;
695
695
}
696
696
// Gather the values to the root.
697
- qvi_alloc_type_t shared = ALLOC_PRIVATE ;
697
+ qvi_bbuff_alloc_type_t alloc_type = QVI_BBUFF_ALLOC_PRIVATE ;
698
698
qvi_bbuff **bbuffs = nullptr ;
699
- rc = group->gather (txbuff, rootid, &shared , &bbuffs);
699
+ rc = group->gather (txbuff, rootid, &alloc_type , &bbuffs);
700
700
if (qvi_unlikely (rc != QV_SUCCESS)) goto out;
701
701
// The root fills in the output.
702
702
if (group->rank () == rootid) {
@@ -707,7 +707,8 @@ qvi_hwsplit_coll::gather_values(
707
707
}
708
708
}
709
709
out:
710
- if ((ALLOC_PRIVATE == shared) || ((ALLOC_SHARED == shared) && (group->rank () == rootid))) {
710
+ if ((QVI_BBUFF_ALLOC_PRIVATE == alloc_type) ||
711
+ ((QVI_BBUFF_ALLOC_SHARED == alloc_type) && (group->rank () == rootid))) {
711
712
if (bbuffs) {
712
713
for (uint_t i = 0 ; i < group_size; ++i) {
713
714
qvi_bbuff_delete (&bbuffs[i]);
@@ -736,9 +737,9 @@ qvi_hwsplit_coll::gather_hwpools(
736
737
int rc = txpool->packinto (&txbuff);
737
738
if (qvi_unlikely (rc != QV_SUCCESS)) return rc;
738
739
// Gather the values to the root.
739
- qvi_alloc_type_t shared = ALLOC_PRIVATE ;
740
+ qvi_bbuff_alloc_type_t alloc_type = QVI_BBUFF_ALLOC_PRIVATE ;
740
741
qvi_bbuff **bbuffs = nullptr ;
741
- rc = group->gather (&txbuff, rootid, &shared , &bbuffs);
742
+ rc = group->gather (&txbuff, rootid, &alloc_type , &bbuffs);
742
743
if (rc != QV_SUCCESS) goto out;
743
744
744
745
if (group->rank () == rootid) {
@@ -752,7 +753,8 @@ qvi_hwsplit_coll::gather_hwpools(
752
753
}
753
754
}
754
755
out:
755
- if ((ALLOC_PRIVATE == shared) || ((ALLOC_SHARED == shared) && (group->rank () == rootid))) {
756
+ if ((QVI_BBUFF_ALLOC_PRIVATE == alloc_type) ||
757
+ ((QVI_BBUFF_ALLOC_SHARED == alloc_type) && (group->rank () == rootid))) {
756
758
if (bbuffs) {
757
759
for (uint_t i = 0 ; i < group_size; ++i) {
758
760
qvi_bbuff_delete (&bbuffs[i]);
0 commit comments