3
3
* Copyright (c) 2004-2005 The Trustees of Indiana University and Indiana
4
4
* University Research and Technology
5
5
* Corporation. All rights reserved.
6
- * Copyright (c) 2004-2016 The University of Tennessee and The University
6
+ * Copyright (c) 2004-2019 The University of Tennessee and The University
7
7
* of Tennessee Research Foundation. All rights
8
8
* reserved.
9
9
* Copyright (c) 2004-2005 High Performance Computing Center Stuttgart,
37
37
#include "coll_basic.h"
38
38
#include "ompi/mca/topo/base/base.h"
39
39
40
+ /**
41
+ * We only have 1024 tags for the neighbor collective, so for now we only support
42
+ * 512 dimensions.
43
+ */
40
44
static int
41
45
mca_coll_basic_neighbor_alltoall_cart (const void * sbuf , int scount , struct ompi_datatype_t * sdtype , void * rbuf ,
42
46
int rcount , struct ompi_datatype_t * rdtype , struct ompi_communicator_t * comm ,
@@ -68,7 +72,7 @@ mca_coll_basic_neighbor_alltoall_cart(const void *sbuf, int scount, struct ompi_
68
72
if (MPI_PROC_NULL != srank ) {
69
73
nreqs ++ ;
70
74
rc = MCA_PML_CALL (irecv (rbuf , rcount , rdtype , srank ,
71
- MCA_COLL_BASE_TAG_NONBLOCKING_BASE - 2 * dim ,
75
+ MCA_COLL_BASE_TAG_NEIGHBOR_BASE - 2 * dim ,
72
76
comm , preqs ++ ));
73
77
if (OMPI_SUCCESS != rc ) break ;
74
78
}
@@ -78,7 +82,7 @@ mca_coll_basic_neighbor_alltoall_cart(const void *sbuf, int scount, struct ompi_
78
82
if (MPI_PROC_NULL != drank ) {
79
83
nreqs ++ ;
80
84
rc = MCA_PML_CALL (irecv (rbuf , rcount , rdtype , drank ,
81
- MCA_COLL_BASE_TAG_NONBLOCKING_BASE - 2 * dim - 1 ,
85
+ MCA_COLL_BASE_TAG_NEIGHBOR_BASE - 2 * dim - 1 ,
82
86
comm , preqs ++ ));
83
87
if (OMPI_SUCCESS != rc ) break ;
84
88
}
@@ -105,7 +109,7 @@ mca_coll_basic_neighbor_alltoall_cart(const void *sbuf, int scount, struct ompi_
105
109
* a const for the send buffer. */
106
110
nreqs ++ ;
107
111
rc = MCA_PML_CALL (isend ((void * ) sbuf , scount , sdtype , srank ,
108
- MCA_COLL_BASE_TAG_NONBLOCKING_BASE - 2 * dim - 1 ,
112
+ MCA_COLL_BASE_TAG_NEIGHBOR_BASE - 2 * dim - 1 ,
109
113
MCA_PML_BASE_SEND_STANDARD ,
110
114
comm , preqs ++ ));
111
115
if (OMPI_SUCCESS != rc ) break ;
@@ -116,7 +120,7 @@ mca_coll_basic_neighbor_alltoall_cart(const void *sbuf, int scount, struct ompi_
116
120
if (MPI_PROC_NULL != drank ) {
117
121
nreqs ++ ;
118
122
rc = MCA_PML_CALL (isend ((void * ) sbuf , scount , sdtype , drank ,
119
- MCA_COLL_BASE_TAG_NONBLOCKING_BASE - 2 * dim ,
123
+ MCA_COLL_BASE_TAG_NEIGHBOR_BASE - 2 * dim ,
120
124
MCA_PML_BASE_SEND_STANDARD ,
121
125
comm , preqs ++ ));
122
126
if (OMPI_SUCCESS != rc ) break ;
0 commit comments