33 * Copyright (c) 2004-2005 The Trustees of Indiana University and Indiana
44 * University Research and Technology
55 * 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
77 * of Tennessee Research Foundation. All rights
88 * reserved.
99 * Copyright (c) 2004-2005 High Performance Computing Center Stuttgart,
3737#include "coll_basic.h"
3838#include "ompi/mca/topo/base/base.h"
3939
40+ /**
41+ * We only have 1024 tags for the neighbor collective, so for now we only support
42+ * 512 dimensions.
43+ */
4044static int
4145mca_coll_basic_neighbor_alltoall_cart (const void * sbuf , int scount , struct ompi_datatype_t * sdtype , void * rbuf ,
4246 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_
6872 if (MPI_PROC_NULL != srank ) {
6973 nreqs ++ ;
7074 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 ,
7276 comm , preqs ++ ));
7377 if (OMPI_SUCCESS != rc ) break ;
7478 }
@@ -78,7 +82,7 @@ mca_coll_basic_neighbor_alltoall_cart(const void *sbuf, int scount, struct ompi_
7882 if (MPI_PROC_NULL != drank ) {
7983 nreqs ++ ;
8084 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 ,
8286 comm , preqs ++ ));
8387 if (OMPI_SUCCESS != rc ) break ;
8488 }
@@ -105,7 +109,7 @@ mca_coll_basic_neighbor_alltoall_cart(const void *sbuf, int scount, struct ompi_
105109 * a const for the send buffer. */
106110 nreqs ++ ;
107111 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 ,
109113 MCA_PML_BASE_SEND_STANDARD ,
110114 comm , preqs ++ ));
111115 if (OMPI_SUCCESS != rc ) break ;
@@ -116,7 +120,7 @@ mca_coll_basic_neighbor_alltoall_cart(const void *sbuf, int scount, struct ompi_
116120 if (MPI_PROC_NULL != drank ) {
117121 nreqs ++ ;
118122 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 ,
120124 MCA_PML_BASE_SEND_STANDARD ,
121125 comm , preqs ++ ));
122126 if (OMPI_SUCCESS != rc ) break ;
0 commit comments