6 |
#undef USE_MPI_GSUM |
#undef USE_MPI_GSUM |
7 |
#define USE_JAM_GSUM |
#define USE_JAM_GSUM |
8 |
|
|
9 |
|
CBOP |
10 |
|
C !ROUTINE: GLOBAL_SUM_R8_JAM |
11 |
|
|
12 |
|
C !INTERFACE: |
13 |
SUBROUTINE GLOBAL_SUM_R8_JAM( ans, myThid ) |
SUBROUTINE GLOBAL_SUM_R8_JAM( ans, myThid ) |
14 |
|
|
15 |
|
C !DESCRIPTION: |
16 |
|
C *=========================================================================* |
17 |
|
C | SUBROUTINE GLOBAL_SUM_R8_JAM |
18 |
|
C | o JAM binding of global sum routine |
19 |
|
C *=========================================================================* |
20 |
|
C | Does a super fast global sum over the JAM library. With JAM |
21 |
|
C | timings for dual proc SMP nodes over Arctic are about |
22 |
|
C | 4.3usecs log2(NP/2). When it was done this was faster than any other |
23 |
|
C | cluster on the planet :-). |
24 |
|
C *=========================================================================* |
25 |
|
|
26 |
|
C !USES: |
27 |
#ifdef ALLOW_MPI |
#ifdef ALLOW_MPI |
28 |
#include "mpif.h" |
#include "mpif.h" |
29 |
#endif |
#endif |
30 |
|
|
31 |
|
C !INPUT/OUTPUT PARAMETERS: |
32 |
|
C ans :: Returned sum value |
33 |
|
C myThid :: Thread number of this instance |
34 |
Real*8 ans |
Real*8 ans |
35 |
INTEGER myThid |
INTEGER myThid |
36 |
|
|
37 |
#ifdef LETS_MAKE_JAM |
#ifdef LETS_MAKE_JAM |
38 |
|
|
39 |
|
C !LOCAL VARIABLES: |
40 |
|
C phi :: Temp. for accumulating sum |
41 |
|
C RC :: Return code |
42 |
Real*8 phi |
Real*8 phi |
43 |
INTEGER RC |
INTEGER RC |
44 |
|
|