2004-03-06 22:40:26 +00:00
|
|
|
/*
|
2004-11-22 01:38:40 +00:00
|
|
|
* Copyright (c) 2004-2005 The Trustees of Indiana University.
|
|
|
|
* All rights reserved.
|
|
|
|
* Copyright (c) 2004-2005 The Trustees of the University of Tennessee.
|
|
|
|
* All rights reserved.
|
2004-11-28 20:09:25 +00:00
|
|
|
* Copyright (c) 2004-2005 High Performance Computing Center Stuttgart,
|
|
|
|
* University of Stuttgart. All rights reserved.
|
2005-03-24 12:43:37 +00:00
|
|
|
* Copyright (c) 2004-2005 The Regents of the University of California.
|
|
|
|
* All rights reserved.
|
2004-11-22 01:38:40 +00:00
|
|
|
* $COPYRIGHT$
|
|
|
|
*
|
|
|
|
* Additional copyrights may follow
|
|
|
|
*
|
2004-03-06 22:40:26 +00:00
|
|
|
* $HEADER$
|
|
|
|
*/
|
|
|
|
|
2004-10-20 01:03:09 +00:00
|
|
|
#include "ompi_config.h"
|
2004-03-06 22:40:26 +00:00
|
|
|
#include "mca/topo/base/base.h"
|
2004-04-16 20:54:48 +00:00
|
|
|
#include "communicator/communicator.h"
|
|
|
|
#include "mca/topo/topo.h"
|
2004-03-06 22:40:26 +00:00
|
|
|
|
2004-03-08 06:48:24 +00:00
|
|
|
/*
|
|
|
|
* function - retrieves Cartesian topology information associated with a
|
|
|
|
* communicator
|
|
|
|
*
|
|
|
|
* @param comm communicator with cartesian structure (handle)
|
|
|
|
* @param ndims number of dimensions of the cartesian structure (integer)
|
|
|
|
*
|
|
|
|
* @retval MPI_SUCCESS
|
|
|
|
* @retval MPI_ERR_COMM
|
|
|
|
*/
|
2004-07-20 22:32:45 +00:00
|
|
|
int mca_topo_base_cartdim_get (MPI_Comm comm,
|
2004-03-08 06:48:24 +00:00
|
|
|
int *ndims){
|
|
|
|
|
2004-07-20 22:32:45 +00:00
|
|
|
*ndims = comm->c_topo_comm->mtc_ndims_or_nnodes;
|
2004-03-08 06:48:24 +00:00
|
|
|
return MPI_SUCCESS;
|
|
|
|
}
|
|
|
|
|
|
|
|
|