2016-01-07 22:33:12 +03:00
|
|
|
/* -*- Mode: C; c-basic-offset:4 ; indent-tabs-mode:nil -*- */
|
2015-06-05 01:35:56 +03:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2011-2013 Cisco Systems, Inc. All rights reserved.
|
|
|
|
* Copyright (c) 2014-2015 Intel, Inc. All rights reserved.
|
2016-01-07 22:33:12 +03:00
|
|
|
* Copyright (c) 2016 Los Alamos National Security, LLC. All rights
|
|
|
|
* reserved.
|
2015-06-05 01:35:56 +03:00
|
|
|
*
|
|
|
|
* $COPYRIGHT$
|
2015-06-24 06:59:57 +03:00
|
|
|
*
|
2015-06-05 01:35:56 +03:00
|
|
|
* Additional copyrights may follow
|
2015-06-24 06:59:57 +03:00
|
|
|
*
|
2015-06-05 01:35:56 +03:00
|
|
|
* $HEADER$
|
|
|
|
*
|
|
|
|
* When this component is used, this file is included in the rest of
|
|
|
|
* the OPAL/ORTE/OMPI code base via opal/mca/hwloc/hwloc.h. As such,
|
|
|
|
* this header represents the public interface to this static component.
|
|
|
|
*/
|
|
|
|
|
2016-04-26 15:56:37 +03:00
|
|
|
#ifndef MCA_OPAL_HWLOC_HWLOC1113_H
|
|
|
|
#define MCA_OPAL_HWLOC_HWLOC1113_H
|
2015-06-05 01:35:56 +03:00
|
|
|
|
|
|
|
BEGIN_C_DECLS
|
|
|
|
|
|
|
|
#include "hwloc/include/hwloc.h"
|
|
|
|
|
|
|
|
/* If the including file requested it, also include the hwloc verbs
|
|
|
|
helper file. We can't just always include this file (even if we
|
|
|
|
know we have <infiniband/verbs.h>) because there are some inline
|
|
|
|
functions in that file that invoke ibv_* functions. Some linkers
|
|
|
|
(e.g., Solaris Studio Compilers) will instantiate those static
|
|
|
|
inline functions even if we don't use them, and therefore we need
|
2015-06-24 06:59:57 +03:00
|
|
|
to be able to resolve the ibv_* symbols at link time.
|
2015-06-05 01:35:56 +03:00
|
|
|
|
|
|
|
Since -libverbs is only specified in places where we use other
|
|
|
|
ibv_* functions (e.g., the OpenFabrics-based BTLs), that means that
|
|
|
|
linking random executables can/will fail (e.g., orterun).
|
|
|
|
*/
|
|
|
|
#if defined(OPAL_HWLOC_WANT_VERBS_HELPER) && OPAL_HWLOC_WANT_VERBS_HELPER
|
|
|
|
# if defined(HAVE_INFINIBAND_VERBS_H)
|
|
|
|
# include "hwloc/include/hwloc/openfabrics-verbs.h"
|
|
|
|
# else
|
|
|
|
# error Tried to include hwloc verbs helper file, but hwloc was compiled with no OpenFabrics support
|
|
|
|
# endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
END_C_DECLS
|
|
|
|
|
2016-04-26 15:56:37 +03:00
|
|
|
#endif /* MCA_OPAL_HWLOC_HWLOC1113_H */
|