* fix up configure help messages for timers
* make Solaris timer code compile * fix compile error in solaris threads code This commit was SVN r6954.
Этот коммит содержится в:
родитель
89125a95ca
Коммит
e45fc567b3
@ -28,7 +28,7 @@ AC_DEFUN([MCA_timer_darwin_COMPILE_MODE], [
|
||||
AC_DEFUN([MCA_timer_darwin_CONFIG],[
|
||||
AC_ARG_WITH([timer],
|
||||
[AC_HELP_STRING([--with-timer=TYPE],
|
||||
[blah blah blah])])
|
||||
[Build high resolution timer component TYPE])])
|
||||
|
||||
AS_IF([test "$with_timer" = "darwin"],
|
||||
[timer_darwin_happy="yes"
|
||||
|
@ -28,7 +28,7 @@ AC_DEFUN([MCA_timer_linux_COMPILE_MODE], [
|
||||
AC_DEFUN([MCA_timer_linux_CONFIG],[
|
||||
AC_ARG_WITH([timer],
|
||||
[AC_HELP_STRING([--with-timer=TYPE],
|
||||
[blah blah blah])])
|
||||
[Build high resolution timer component TYPE])])
|
||||
|
||||
AS_IF([test "$with_timer" = "linux"],
|
||||
[timer_linux_happy="yes"
|
||||
|
@ -28,7 +28,7 @@ AC_DEFUN([MCA_timer_solaris_COMPILE_MODE], [
|
||||
AC_DEFUN([MCA_timer_solaris_CONFIG],[
|
||||
AC_ARG_WITH([timer],
|
||||
[AC_HELP_STRING([--with-timer=TYPE],
|
||||
[blah blah blah])])
|
||||
[Build high resolution timer component TYPE])])
|
||||
|
||||
AS_IF([test "$with_timer" = "solaris"],
|
||||
[timer_solaris_happy="yes"
|
||||
@ -48,7 +48,7 @@ AC_DEFUN([MCA_timer_solaris_CONFIG],[
|
||||
[AC_MSG_ERROR([Solaris timer requested but not available. Aborting.])])
|
||||
|
||||
AS_IF([test "$timer_solaris_happy" = "yes"],
|
||||
[timer_base_include="darwin/timer_darwin.h"
|
||||
[timer_base_include="solaris/timer_solaris.h"
|
||||
$1],
|
||||
[$2])
|
||||
])
|
||||
|
@ -17,26 +17,26 @@
|
||||
#ifndef OPAL_MCA_TIMER_SOLARIS_TIMER_SOLARIS_H
|
||||
#define OPAL_MCA_TIMER_SOLARIS_TIMER_SOLARIS_H
|
||||
|
||||
#include <mach/mach_time.h>
|
||||
#include <sys/time.h>
|
||||
|
||||
typedef hrtime_t opal_timer_t;
|
||||
|
||||
|
||||
static inline opal_timer_t
|
||||
opal_timer_base_get_cycles()
|
||||
opal_timer_base_get_cycles(void)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
static inline opal_timer_t
|
||||
opal_timer_base_get_usec()
|
||||
opal_timer_base_get_usec(void)
|
||||
{
|
||||
/* gethrtime returns nanoseconds */
|
||||
return gethrtime() / 1000;
|
||||
}
|
||||
|
||||
static inline opal_timer_t
|
||||
opal_timer_base_get_freq()
|
||||
opal_timer_base_get_freq(void)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
@ -19,7 +19,6 @@
|
||||
#include "opal/mca/timer/timer.h"
|
||||
#include "opal/mca/timer/solaris/timer_solaris.h"
|
||||
|
||||
static int opal_timer_solaris_open(void);
|
||||
|
||||
const opal_timer_base_component_1_0_0_t mca_timer_solaris_component = {
|
||||
/* First, the mca_component_t struct containing meta information
|
||||
|
@ -179,7 +179,7 @@ int opal_thread_start(opal_thread_t *t)
|
||||
|
||||
int opal_thread_join(opal_thread_t *t, void **thr_return)
|
||||
{
|
||||
int rc = thread_join(t->t_handle, NULL, thr_return);
|
||||
int rc = thr_join(t->t_handle, NULL, thr_return);
|
||||
return (rc == 0) ? OMPI_SUCCESS : OMPI_ERROR;
|
||||
}
|
||||
|
||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user