|
| 1 | +/* -*- Mode: C; c-basic-offset:4 ; indent-tabs-mode:nil -*- */ |
| 2 | +/* |
| 3 | + * Copyright (c) 2004-2005 The Trustees of Indiana University and Indiana |
| 4 | + * University Research and Technology |
| 5 | + * Corporation. All rights reserved. |
| 6 | + * Copyright (c) 2004-2017 The University of Tennessee and The University |
| 7 | + * of Tennessee Research Foundation. All rights |
| 8 | + * reserved. |
| 9 | + * Copyright (c) 2004-2005 High Performance Computing Center Stuttgart, |
| 10 | + * University of Stuttgart. All rights reserved. |
| 11 | + * Copyright (c) 2004-2005 The Regents of the University of California. |
| 12 | + * All rights reserved. |
| 13 | + * Copyright (c) 2013 Los Alamos National Security, LLC. All Rights |
| 14 | + * reserved. |
| 15 | + * Copyright (c) 2015-2016 Research Organization for Information Science |
| 16 | + * and Technology (RIST). All rights reserved. |
| 17 | + * Copyright (c) 2016-2017 IBM Corporation. All rights reserved. |
| 18 | + * Copyright (c) 2018 Siberian State University of Telecommunications |
| 19 | + * and Information Science. All rights reserved. |
| 20 | + * Copyright (c) 2022 Cisco Systems, Inc. All rights reserved. |
| 21 | + * Copyright (c) 2024 Stony Brook University. All rights reserved. |
| 22 | + * $COPYRIGHT$ |
| 23 | + * |
| 24 | + * Additional copyrights may follow |
| 25 | + * |
| 26 | + * $HEADER$ |
| 27 | + */ |
| 28 | + |
| 29 | +#include "ompi_config.h" |
| 30 | + |
| 31 | +#include "mpi.h" |
| 32 | +#include "opal/class/opal_list.h" |
| 33 | +#include "ompi/communicator/communicator.h" |
| 34 | +#include "ompi/mca/coll/base/coll_base_functions.h" |
| 35 | +#include "ompi/mca/coll/base/coll_base_util.h" |
| 36 | + |
| 37 | +int mca_coll_base_revoke_local(ompi_communicator_t* comm){ |
| 38 | + // Called on each initialized component, to give each the opportunity to |
| 39 | + // revoke any subcomms |
| 40 | + mca_coll_base_avail_coll_t* avail; |
| 41 | + OPAL_LIST_FOREACH(avail, comm->c_coll->module_list, mca_coll_base_avail_coll_t){ |
| 42 | + if(NULL == avail->ac_module) continue; |
| 43 | + if(NULL == avail->ac_module->coll_revoke_local) continue; |
| 44 | + avail->ac_module->coll_revoke_local(comm, avail->ac_module); |
| 45 | + } |
| 46 | + return OMPI_SUCCESS; |
| 47 | +} |
0 commit comments