1 |
/* |
|
2 |
************************************************************ |
/* $Id$ */ |
3 |
* Copyright 2006 by ACcESS MNRF * |
|
4 |
* * |
/******************************************************* |
5 |
* http://www.access.edu.au * |
* |
6 |
* Primary Business: Queensland, Australia * |
* Copyright 2003-2007 by ACceSS MNRF |
7 |
* Licensed under the Open Software License version 3.0 * |
* Copyright 2007 by University of Queensland |
8 |
* http://www.opensource.org/licenses/osl-3.0.php * |
* |
9 |
* * |
* http://esscc.uq.edu.au |
10 |
************************************************************ |
* Primary Business: Queensland, Australia |
11 |
*/ |
* Licensed under the Open Software License version 3.0 |
12 |
|
* http://www.opensource.org/licenses/osl-3.0.php |
13 |
|
* |
14 |
|
*******************************************************/ |
15 |
|
|
16 |
#if !defined escript_Utils_H |
#if !defined escript_Utils_H |
17 |
#define escript_Utils_H |
#define escript_Utils_H |
27 |
|
|
28 |
/** |
/** |
29 |
\brief |
\brief |
30 |
|
return the latest SVN version number |
31 |
|
*/ |
32 |
|
ESCRIPT_DLL_API int getSvnVersion(); |
33 |
|
|
34 |
|
/** |
35 |
|
\brief |
36 |
|
print a message about how many MPI CPUs and OpenMP threads we're using |
37 |
|
*/ |
38 |
|
ESCRIPT_DLL_API void printParallelThreadCnt(); |
39 |
|
|
40 |
|
/** |
41 |
|
\brief |
42 |
set the number of threads |
set the number of threads |
43 |
*/ |
*/ |
44 |
ESCRIPT_DLL_API void setNumberOfThreads(const int num_threads); |
ESCRIPT_DLL_API void setNumberOfThreads(const int num_threads); |
49 |
*/ |
*/ |
50 |
ESCRIPT_DLL_API int getNumberOfThreads(); |
ESCRIPT_DLL_API int getNumberOfThreads(); |
51 |
|
|
52 |
|
/** |
53 |
|
\brief |
54 |
|
returns the total number of available MPI processes for MPI_COMM_WORLD |
55 |
|
*/ |
56 |
|
ESCRIPT_DLL_API int getMPISizeWorld(); |
57 |
|
|
58 |
|
/** |
59 |
|
\brief |
60 |
|
returns the MPI processor number within MPI_COMM_WORLD |
61 |
|
*/ |
62 |
|
ESCRIPT_DLL_API int getMPIRankWorld(); |
63 |
|
|
64 |
} // end of namespace |
} // end of namespace |
65 |
#endif |
#endif |