2005-08-04 12:06:08 +00:00
|
|
|
/*
|
2005-11-05 19:57:48 +00:00
|
|
|
* Copyright (c) 2004-2005 The Trustees of Indiana University and Indiana
|
|
|
|
* University Research and Technology
|
|
|
|
* Corporation. All rights reserved.
|
|
|
|
* Copyright (c) 2004-2005 The University of Tennessee and The University
|
|
|
|
* of Tennessee Research Foundation. All rights
|
|
|
|
* reserved.
|
2005-08-04 12:06:08 +00:00
|
|
|
* Copyright (c) 2004-2005 High Performance Computing Center Stuttgart,
|
|
|
|
* University of Stuttgart. All rights reserved.
|
|
|
|
* Copyright (c) 2004-2005 The Regents of the University of California.
|
|
|
|
* All rights reserved.
|
2007-10-15 13:10:20 +00:00
|
|
|
* Copyright (c) 2006-2007 Sun Microsystems, Inc. All rights reserved.
|
2013-01-27 23:25:10 +00:00
|
|
|
* Copyright (c) 2012 Los Alamos National Security, LLC.
|
|
|
|
* All rights reserved.
|
2005-08-04 12:06:08 +00:00
|
|
|
* $COPYRIGHT$
|
|
|
|
*
|
|
|
|
* Additional copyrights may follow
|
|
|
|
*
|
|
|
|
* $HEADER$
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
#include "ompi_config.h"
|
|
|
|
#include <stdio.h>
|
2005-08-02 13:20:50 +00:00
|
|
|
#include <stdarg.h>
|
|
|
|
|
2013-02-12 21:10:11 +00:00
|
|
|
#include "opal/util/show_help.h"
|
2013-01-27 23:25:10 +00:00
|
|
|
#include "ompi/mca/rte/rte.h"
|
|
|
|
|
2006-03-17 17:39:41 +00:00
|
|
|
#include "base.h"
|
2005-08-04 12:06:08 +00:00
|
|
|
#include "btl_base_error.h"
|
2008-02-28 01:57:57 +00:00
|
|
|
|
2009-07-28 17:06:16 +00:00
|
|
|
int mca_btl_base_verbose = -1;
|
2005-08-02 13:20:50 +00:00
|
|
|
|
|
|
|
int mca_btl_base_err(const char* fmt, ...)
|
|
|
|
{
|
|
|
|
va_list list;
|
|
|
|
int ret;
|
|
|
|
|
|
|
|
va_start(list, fmt);
|
|
|
|
ret = vfprintf(stderr, fmt, list);
|
|
|
|
va_end(list);
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
int mca_btl_base_out(const char* fmt, ...)
|
|
|
|
{
|
|
|
|
va_list list;
|
|
|
|
int ret;
|
|
|
|
|
|
|
|
va_start(list, fmt);
|
|
|
|
ret = vfprintf(stdout, fmt, list);
|
|
|
|
va_end(list);
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2005-09-30 04:39:44 +00:00
|
|
|
void mca_btl_base_error_no_nics(const char* transport,
|
|
|
|
const char* nic_name)
|
|
|
|
{
|
|
|
|
char *procid;
|
2006-09-27 13:24:42 +00:00
|
|
|
if (mca_btl_base_warn_component_unused) {
|
|
|
|
/* print out no-nic warning if user told us to */
|
2013-01-27 23:25:10 +00:00
|
|
|
asprintf(&procid, "%s", OMPI_NAME_PRINT(OMPI_PROC_MY_NAME));
|
2005-09-30 04:39:44 +00:00
|
|
|
|
2013-02-12 21:10:11 +00:00
|
|
|
opal_show_help("help-mpi-btl-base.txt", "btl:no-nics",
|
2013-01-27 23:25:10 +00:00
|
|
|
true, procid, transport, ompi_process_info.nodename,
|
2012-06-27 01:28:28 +00:00
|
|
|
nic_name);
|
2006-09-27 13:24:42 +00:00
|
|
|
free(procid);
|
|
|
|
}
|
2005-09-30 04:39:44 +00:00
|
|
|
}
|
2006-03-17 17:39:41 +00:00
|
|
|
|
|
|
|
|
2006-03-17 18:46:48 +00:00
|
|
|
void mca_btl_base_dump(
|
|
|
|
struct mca_btl_base_module_t* btl,
|
|
|
|
struct mca_btl_base_endpoint_t* endpoint,
|
|
|
|
int verbose)
|
2006-03-17 17:39:41 +00:00
|
|
|
{
|
|
|
|
}
|