Skip to content

Commit

Permalink
bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
urbach committed Mar 3, 2008
1 parent d9e3643 commit 94d8abb
Show file tree
Hide file tree
Showing 16 changed files with 4,900 additions and 5,102 deletions.
6 changes: 4 additions & 2 deletions benchmark.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
#include <math.h>
#include <time.h>
#include <string.h>
#if (defined BGL)
#if (defined BGL && !defined BGP)
# include <rts.h>
#endif
#include "su3.h"
Expand Down Expand Up @@ -50,12 +50,14 @@
# define SLICE ((LX*LY*LZ/2)+(T*LY*LZ/2) + (T*LX*LZ) + (T*LX*LY))
#endif

#ifdef BGL
#if (defined BGL && !defined BGP)
static double clockspeed=1.0e-6/700.0;

double bgl_wtime() {
return ( rts_get_timebase() * clockspeed );
}
#else
double bgl_wtime() { return(MPI_Wtime()); }
#endif

int check_xchange();
Expand Down
3 changes: 3 additions & 0 deletions config.h.in
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,9 @@
/* Optimize for Blue Gene/L */
#undef BGL

/* Optimize for Blue Gene/P */
#undef BGP

/* Define to 1 if your processor stores words with the most significant byte
first (like Motorola and SPARC, unlike Intel and VAX). */
#undef WORDS_BIGENDIAN
Expand Down
3 changes: 3 additions & 0 deletions config.sub
Original file line number Diff line number Diff line change
Expand Up @@ -1355,6 +1355,9 @@ case $os in
-blrts)
os=-blrts
;;
-bprts)
os=-bprts
;;
-none)
;;
*)
Expand Down
Loading

0 comments on commit 94d8abb

Please sign in to comment.