* IA64 high-res timer support for compilers without GCC-style inline
assembly This commit was SVN r6997.
Этот коммит содержится в:
родитель
47ce94c79b
Коммит
c62ce1593a
@ -97,4 +97,16 @@ opal_atomic_cmpset_rel_64:
|
||||
br.ret.sptk.many b0
|
||||
;;
|
||||
.endp opal_atomic_cmpset_rel_64#
|
||||
.align 16
|
||||
.global opal_sys_timer_get_cycles#
|
||||
.proc opal_sys_timer_get_cycles#
|
||||
opal_sys_timer_get_cycles:
|
||||
.prologue
|
||||
.body
|
||||
#APP
|
||||
mov r8=ar.itc
|
||||
#NO_APP
|
||||
br.ret.sptk.many b0
|
||||
;;
|
||||
.endp opal_sys_timer_get_cycles#
|
||||
.ident "GCC: (GNU) 3.2.3 20030502 (Red Hat Linux 3.2.3-49)"
|
||||
|
@ -37,7 +37,9 @@ opal_sys_timer_get_cycles(void)
|
||||
|
||||
#else
|
||||
|
||||
#define OPAL_HAVE_SYS_TIMER_GET_CYCLES 0
|
||||
opal_timer_t opal_sys_timer_get_cycles(void);
|
||||
|
||||
#define OPAL_HAVE_SYS_TIMER_GET_CYCLES 1
|
||||
|
||||
#endif /* OMPI_GCC_INLINE_ASSEMBLY */
|
||||
|
||||
|
@ -19,7 +19,7 @@ CFILE=/tmp/opal_atomic_$$.c
|
||||
|
||||
trap "/bin/rm -f $CFILE; exit 0" 0 1 2 15
|
||||
|
||||
echo Updating atomic.s from atomic.h using gcc
|
||||
echo Updating asm.s from atomic.h and timer.h using gcc
|
||||
|
||||
cat > $CFILE<<EOF
|
||||
#include <stdlib.h>
|
||||
@ -29,6 +29,7 @@ cat > $CFILE<<EOF
|
||||
#define OMPI_GCC_INLINE_ASSEMBLY 1
|
||||
#define OMPI_WANT_SMP_LOCKS 1
|
||||
#include "atomic.h"
|
||||
#include "timer.h"
|
||||
EOF
|
||||
|
||||
gcc -O1 -I. -S $CFILE -o atomic.s
|
||||
gcc -O1 -I. -S $CFILE -o asms.s
|
||||
|
Загрузка…
Ссылка в новой задаче
Block a user