/[escript]/trunk/esysUtils/src/Esys_MPI.h
ViewVC logotype

Contents of /trunk/esysUtils/src/Esys_MPI.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3975 - (show annotations)
Thu Sep 20 01:54:06 2012 UTC (7 years ago) by caltinay
File MIME type: text/plain
File size: 1793 byte(s)
Merged symbolic branch into trunk. Curious what daniel and spartacus have to
say...

1
2 /*******************************************************
3 *
4 * Copyright (c) 2003-2012 by University of Queensland
5 * Earth Systems Science Computational Center (ESSCC)
6 * http://www.uq.edu.au/esscc
7 *
8 * Primary Business: Queensland, Australia
9 * Licensed under the Open Software License version 3.0
10 * http://www.opensource.org/licenses/osl-3.0.php
11 *
12 *******************************************************/
13
14
15 #ifndef INC_ESYS_MPI
16 #define INC_ESYS_MPI
17
18 #include "system_dep.h"
19 #include "types.h"
20
21 #ifdef ESYS_MPI
22 #include "mpi_C.h"
23 #else
24 typedef int MPI_Comm;
25 typedef int MPI_Request;
26 #define MPI_INT 6
27 #define MPI_DOUBLE 11
28 #define MPI_COMM_WORLD 91
29 #endif
30
31 typedef int Esys_MPI_rank;
32
33 #define ESYS_MPI_TODO { fprintf( stdout, "\nTODO : %s:%d\n", __FILE__, __LINE__); MPI_Finalize(); exit(1); }
34
35 /* Datatypes */
36 struct Esys_MPIInfo {
37 dim_t reference_counter;
38 int size;
39 Esys_MPI_rank rank;
40 MPI_Comm comm;
41 int msg_tag_counter;
42 };
43
44 typedef struct Esys_MPIInfo Esys_MPIInfo;
45
46 /* Function prototypes */
47
48 ESYSUTILS_DLL_API
49 Esys_MPIInfo* Esys_MPIInfo_alloc( MPI_Comm comm );
50
51 ESYSUTILS_DLL_API
52 void Esys_MPIInfo_free( Esys_MPIInfo* );
53
54 ESYSUTILS_DLL_API
55 Esys_MPIInfo *Esys_MPIInfo_getReference( Esys_MPIInfo* in );
56
57 ESYSUTILS_DLL_API
58 int Esys_MPIInfo_initialized( void );
59
60 ESYSUTILS_DLL_API
61 index_t Esys_MPIInfo_mod(index_t n, index_t k);
62
63 ESYSUTILS_DLL_API
64 dim_t Esys_MPIInfo_setDistribution(Esys_MPIInfo* in ,index_t min_id,index_t max_id,index_t* distribution);
65
66 ESYSUTILS_DLL_API
67 void Esys_MPIInfo_Split( Esys_MPIInfo *mpi_info, dim_t n, dim_t* local_N,index_t* offset);
68
69 ESYSUTILS_DLL_API
70 bool_t Esys_MPIInfo_noError( Esys_MPIInfo *mpi_info);
71
72 ESYSUTILS_DLL_API
73 char *Esys_MPI_appendRankToFileName(const char *, int, int);
74
75 #endif /* INC_ESYS_MPI */

Properties

Name Value
svn:mergeinfo /branches/lapack2681/paso/src/Paso_MPI.h:2682-2741 /branches/pasowrap/esysUtils/src/Esys_MPI.h:3661-3674 /branches/py3_attempt2/esysUtils/src/Esys_MPI.h:3871-3891 /branches/restext/paso/src/Paso_MPI.h:2610-2624 /branches/ripleygmg_from_3668/esysUtils/src/Esys_MPI.h:3669-3791 /branches/stage3.0/paso/src/Paso_MPI.h:2569-2590 /branches/symbolic_from_3470/esysUtils/src/Esys_MPI.h:3471-3974 /branches/symbolic_from_3470/ripley/test/python/esysUtils/src/Esys_MPI.h:3517-3974 /release/3.0/paso/src/Paso_MPI.h:2591-2601 /trunk/ripley/test/python/esysUtils/src/Esys_MPI.h:3480-3515

  ViewVC Help
Powered by ViewVC 1.1.26