/[MITgcm]/MITgcm/eesupp/inc/BARRIER.h
ViewVC logotype

Annotation of /MITgcm/eesupp/inc/BARRIER.h

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.5 - (hide annotations) (download)
Sat Mar 27 03:51:50 2004 UTC (20 years, 2 months ago) by edhill
Branch: MAIN
CVS Tags: checkpoint57m_post, checkpoint57g_pre, checkpoint57s_post, checkpoint57b_post, checkpoint57g_post, checkpoint56b_post, checkpoint54d_post, checkpoint54e_post, checkpoint57r_post, checkpoint57d_post, checkpoint57i_post, checkpoint55, checkpoint54, checkpoint57, checkpoint56, checkpoint53, checkpoint57n_post, checkpoint54f_post, checkpoint55i_post, checkpoint57l_post, checkpoint57t_post, checkpoint55c_post, checkpoint57v_post, checkpoint57f_post, checkpoint53d_post, checkpoint57a_post, checkpoint57h_pre, checkpoint54b_post, checkpoint57h_post, checkpoint52m_post, checkpoint55g_post, checkpoint57c_post, checkpoint55d_post, checkpoint54a_pre, checkpoint53c_post, checkpoint55d_pre, checkpoint57c_pre, checkpoint55j_post, checkpoint54a_post, checkpoint55h_post, checkpoint57e_post, checkpoint55b_post, checkpoint53a_post, checkpoint55f_post, checkpoint53g_post, checkpoint57p_post, checkpint57u_post, checkpoint57q_post, eckpoint57e_pre, checkpoint56a_post, checkpoint53f_post, checkpoint57h_done, checkpoint57j_post, checkpoint57f_pre, checkpoint52n_post, checkpoint53b_pre, checkpoint56c_post, checkpoint57a_pre, checkpoint55a_post, checkpoint57o_post, checkpoint57k_post, checkpoint53b_post, checkpoint57w_post, checkpoint53d_pre, checkpoint55e_post, checkpoint54c_post
Changes since 1.4: +3 -3 lines
File MIME type: text/plain
 o cleanup comments (NO CODE CHANGES) in eesupp for protex
 o the "api reference" framework now builds documentation for:
     eesupp, pkg/generic_advdiff, and pkg/gmredi
 o remove mnc from the default gfd in pkg_groups pending
     further testing on systems where NetCDF is not installed

1 edhill 1.5 C $Header: /u/gcmpack/MITgcm/eesupp/inc/BARRIER.h,v 1.4 2001/09/21 03:54:35 cnh Exp $
2 cnh 1.4 C $Name: $
3     CBOP
4     C !ROUTINE: BARRIER.h
5     C !INTERFACE:
6     C include "BARRIER.h"
7     C !DESCRIPTION:
8     C *==========================================================*
9     C | BARRIER.h
10     C | o Globals used by Fortran barrier routine.
11     C *==========================================================*
12     C | These variables support a simple Fortran shared memory
13     C | barrier routine. They do busy waiting, that is the
14     C | thread that is waiting sits in a tight loop reading
15     C | some memory location and waiting for all other threads.
16     C | On some systems this is sometimes a good method to use.
17     C | On the T3E memory is not shared so the routine should
18     C | use the T3E "eureka" barriers. On CRAY and NEC there are
19     C | hardware barriers that are accessed through a compiler
20     C | directives. Finally proper multi-threading compilers
21     C | support barrier compile directives - sometimes these
22     C | are good, sometimes they are lousy.
23     C | The barrier mechanism is used as follows
24     C | 1. In the single-threaded part of the code
25 edhill 1.5 C | CALL FBAR\_INIT
26 cnh 1.4 C | on CRAY, NEC this routine does nothing
27     C | on T3E there is no single-threaded code
28     C | but there may be barrier initialisation -
29     C | need to check.
30     C | 2. When we need to synchronize everybody just
31     C | CALL FBAR( myThid )
32     C | where myThid is myThreadId
33 edhill 1.5 C | on CRAY, NEC FBAR will just do C\$DIR BARRIER
34 cnh 1.4 C | or the like.
35     C | on T3E FBAR does CALL BARRIER(...) or something
36     C | need to check this.
37     C *==========================================================*
38     CEOP
39 cnh 1.1 COMMON / BARRIER_COMMON / key1, key2, key3,
40     & door1, door2, door3
41     INTEGER key1(lShare4,MAX_NO_THREADS)
42     INTEGER key2(lShare4,MAX_NO_THREADS)
43     INTEGER key3(lShare4,MAX_NO_THREADS)
44     INTEGER door1
45     INTEGER door2
46     INTEGER door3
47     INTEGER VALID
48     PARAMETER ( VALID = 1 )
49     INTEGER INVALID
50     PARAMETER ( INVALID = 0 )
51     INTEGER OPEN
52     PARAMETER ( OPEN = 1 )
53     INTEGER SHUT
54     PARAMETER ( SHUT = 0 )

  ViewVC Help
Powered by ViewVC 1.1.22