From 1fb78a35f9546ffec6718a3f57675d7d4edf3624 Mon Sep 17 00:00:00 2001 From: Brian Barrett Date: Mon, 6 Aug 2007 17:21:00 +0000 Subject: [PATCH] Back out part of r15756. The common_portals_utcp.c file is only used with the Sandia reference implementation of Portals, and doesn't have the cnos functions. This file should never be compiled (and wasn't being compiled) on the Cray machines, so doesn't need to be updated to support CNL. This commit was SVN r15778. The following SVN revision numbers were found above: r15756 --> open-mpi/ompi@755658694e6527469a5e5e91b4c3ab7267d31b62 --- ompi/mca/common/portals/common_portals_utcp.c | 36 ++++--------------- 1 file changed, 6 insertions(+), 30 deletions(-) diff --git a/ompi/mca/common/portals/common_portals_utcp.c b/ompi/mca/common/portals/common_portals_utcp.c index b430b7cd00..7b2c299b98 100644 --- a/ompi/mca/common/portals/common_portals_utcp.c +++ b/ompi/mca/common/portals/common_portals_utcp.c @@ -113,18 +113,6 @@ ompi_common_portals_initialize(void) information */ int max_interfaces; unsigned int nptl_procs, rank; - ptl_interface_t ni_iface = PTL_IFACE_DEFAULT; - int launcher; - - launcher = cnos_launcher(); - - /* - * If we use the YOD launcher we can use the default interface - * otherwise we need to use the SeaStar Bridged interface (for CNL/APRUN) - */ - if( launcher != CNOS_LAUNCHER_YOD ) { - ni_iface = IFACE_FROM_BRIDGE_AND_NALID(PTL_BRIDGE_UK,PTL_IFACE_SS); - } ret = PtlInit(&max_interfaces); if (PTL_OK != ret) { @@ -138,15 +126,15 @@ ompi_common_portals_initialize(void) PtlSetRank(PTL_INVALID_HANDLE, -1, -1); /* Initialize a network device */ - ret = PtlNIInit(ni_iface, /* interface to initialize */ + ret = PtlNIInit(PTL_IFACE_DEFAULT, /* interface to initialize */ PTL_PID_ANY, /* let library assign our pid */ NULL, /* no desired limits */ NULL, /* no need to have limits around */ &active_ni_h /* our interface handle */ ); if (PTL_OK != ret) { - opal_output(0, "%5d: PtlNIInit failed, returning %d (%s : %d)\n", - getpid(), ret, __FILE__, __LINE__); + opal_output(0, "%5d: PtlNIInit failed, returning %d\n", + getpid(), ret); return OMPI_ERR_FATAL; } @@ -197,18 +185,6 @@ ompi_common_portals_ni_initialize(ptl_handle_ni_t *ni_handle) char *tmp; ompi_proc_t* proc_self = ompi_proc_local(); int max_interfaces; - ptl_interface_t ni_iface = PTL_IFACE_DEFAULT; - int launcher; - - launcher = cnos_launcher(); - - /* - * If we use the YOD launcher we can use the default interface - * otherwise we need to use the SeaStar Bridged interface (for CNL/APRUN) - */ - if( launcher != CNOS_LAUNCHER_YOD ) { - ni_iface = IFACE_FROM_BRIDGE_AND_NALID(PTL_BRIDGE_UK,PTL_IFACE_SS); - } /* get our world */ procs = ompi_proc_world(&nprocs); @@ -280,15 +256,15 @@ ompi_common_portals_ni_initialize(ptl_handle_ni_t *ni_handle) PtlSetRank(PTL_INVALID_HANDLE, -1, -1); /* Initialize a network device */ - ret = PtlNIInit(ni_iface, /* interface to initialize */ + ret = PtlNIInit(PTL_IFACE_DEFAULT, /* interface to initialize */ PTL_PID_ANY, /* let library assign our pid */ NULL, /* no desired limits */ NULL, /* no need to have limits around */ &active_ni_h /* our interface handle */ ); if (PTL_OK != ret) { - opal_output(0, "%5d: PtlNIInit failed, returning %d (%s : %d)\n", - getpid(), ret, __FILE__, __LINE__); + opal_output(0, "%5d: PtlNIInit failed, returning %d\n", + getpid(), ret); return OMPI_ERR_FATAL; }