2005-05-19 13:33:55 +00:00
|
|
|
/*
|
2007-03-16 23:11:45 +00:00
|
|
|
* Copyright (c) 2004-2007 The Trustees of Indiana University and Indiana
|
2005-11-05 19:57:48 +00:00
|
|
|
* University Research and Technology
|
|
|
|
* Corporation. All rights reserved.
|
2009-12-04 00:51:15 +00:00
|
|
|
* Copyright (c) 2004-2007 The University of Tennessee and The University
|
2005-11-05 19:57:48 +00:00
|
|
|
* of Tennessee Research Foundation. All rights
|
|
|
|
* reserved.
|
2005-05-19 13:33:55 +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.
|
2008-05-20 12:13:19 +00:00
|
|
|
* Copyright (c) 2008 Sun Microsystems, Inc. All rights reserved.
|
2010-07-06 14:33:36 +00:00
|
|
|
* Copyright (c) 2010 Cisco Systems, Inc. All rights reserved.
|
2005-05-19 13:33:55 +00:00
|
|
|
* $COPYRIGHT$
|
|
|
|
*
|
|
|
|
* Additional copyrights may follow
|
|
|
|
*
|
|
|
|
* $HEADER$
|
|
|
|
*/
|
|
|
|
|
|
|
|
/** @file **/
|
|
|
|
|
2005-05-22 18:40:03 +00:00
|
|
|
#ifndef OPAL_H
|
|
|
|
#define OPAL_H
|
|
|
|
|
2007-01-18 17:40:21 +00:00
|
|
|
#include "opal_config.h"
|
|
|
|
|
2008-12-09 23:49:02 +00:00
|
|
|
BEGIN_C_DECLS
|
2005-08-18 15:48:59 +00:00
|
|
|
|
2008-05-20 12:13:19 +00:00
|
|
|
/** version string of opal */
|
|
|
|
OPAL_DECLSPEC extern const char opal_version_string[];
|
|
|
|
|
2010-07-06 14:33:36 +00:00
|
|
|
/* Size of a cache line. To be replaced with real hwloc info (in
|
|
|
|
trunk/v1.5 and beyond, only), but for the moment, just move it here
|
|
|
|
so that we can remove opal/include/sys/cache.h whose only purpose
|
|
|
|
is life is to #define CACHE_LINE_SIZE (and has a conflict on
|
|
|
|
NetBSD). */
|
|
|
|
OPAL_DECLSPEC extern int opal_cache_line_size;
|
|
|
|
|
2005-05-22 18:40:03 +00:00
|
|
|
/**
|
2006-01-16 01:48:03 +00:00
|
|
|
* Initialize the OPAL layer, including the MCA system.
|
2005-05-22 18:40:03 +00:00
|
|
|
*
|
2006-02-12 01:33:29 +00:00
|
|
|
* @retval OPAL_SUCCESS Upon success.
|
|
|
|
* @retval OPAL_ERROR Upon failure.
|
2005-05-22 18:40:03 +00:00
|
|
|
*
|
2006-01-16 01:48:03 +00:00
|
|
|
* \note If this function is called, opal_init_util() should *not* be
|
|
|
|
* called.
|
2005-05-22 18:40:03 +00:00
|
|
|
*/
|
2009-12-04 00:51:15 +00:00
|
|
|
OPAL_DECLSPEC int opal_init(int* pargc, char*** pargv);
|
2005-05-19 13:33:55 +00:00
|
|
|
|
|
|
|
/**
|
2006-01-16 01:48:03 +00:00
|
|
|
* Finalize the OPAL layer, including the MCA system.
|
2005-05-19 13:33:55 +00:00
|
|
|
*
|
2006-02-12 01:33:29 +00:00
|
|
|
* @retval OPAL_SUCCESS Upon success.
|
|
|
|
* @retval OPAL_ERROR Upon failure.
|
2005-05-19 13:33:55 +00:00
|
|
|
*
|
2006-01-16 01:48:03 +00:00
|
|
|
* \note If this function is called, opal_finalize_util() should *not*
|
|
|
|
* be called.
|
2005-05-19 13:33:55 +00:00
|
|
|
*/
|
2006-08-20 15:54:04 +00:00
|
|
|
OPAL_DECLSPEC int opal_finalize(void);
|
2005-05-19 13:33:55 +00:00
|
|
|
|
2006-01-16 01:48:03 +00:00
|
|
|
/**
|
|
|
|
* Initialize the OPAL layer, excluding the MCA system.
|
|
|
|
*
|
2006-02-12 01:33:29 +00:00
|
|
|
* @retval OPAL_SUCCESS Upon success.
|
|
|
|
* @retval OPAL_ERROR Upon failure.
|
2006-01-16 01:48:03 +00:00
|
|
|
*
|
|
|
|
* \note If this function is called, opal_init() should *not*
|
|
|
|
* be called.
|
|
|
|
*/
|
2009-12-04 00:51:15 +00:00
|
|
|
OPAL_DECLSPEC int opal_init_util(int* pargc, char*** pargv);
|
2006-01-16 01:48:03 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Finalize the OPAL layer, excluding the MCA system.
|
|
|
|
*
|
2006-02-12 01:33:29 +00:00
|
|
|
* @retval OPAL_SUCCESS Upon success.
|
|
|
|
* @retval OPAL_ERROR Upon failure.
|
2006-01-16 01:48:03 +00:00
|
|
|
*
|
|
|
|
* \note If this function is called, opal_finalize() should *not*
|
|
|
|
* be called.
|
|
|
|
*/
|
2006-08-20 15:54:04 +00:00
|
|
|
OPAL_DECLSPEC int opal_finalize_util(void);
|
2006-01-16 01:48:03 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Internal function. Do not call.
|
|
|
|
*/
|
2006-08-20 15:54:04 +00:00
|
|
|
OPAL_DECLSPEC int opal_register_params(void);
|
2006-01-11 04:36:39 +00:00
|
|
|
|
2008-12-09 23:49:02 +00:00
|
|
|
END_C_DECLS
|
2005-08-18 15:48:59 +00:00
|
|
|
|
2005-05-19 13:33:55 +00:00
|
|
|
#endif
|