/[escript]/trunk/escript/src/Utils.h
ViewVC logotype

Annotation of /trunk/escript/src/Utils.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1561 - (hide annotations)
Wed May 21 06:58:52 2008 UTC (11 years, 6 months ago) by ksteube
File MIME type: text/plain
File size: 1095 byte(s)
Added python method printParallelThreadCounts() to tell how many MPI CPUs and OpenMP threads we are using (for testing hybrid runs)

1 jgs 474
2 ksteube 1312 /* $Id$ */
3    
4     /*******************************************************
5     *
6     * Copyright 2003-2007 by ACceSS MNRF
7     * Copyright 2007 by University of Queensland
8     *
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 gross 391 #if !defined escript_Utils_H
17     #define escript_Utils_H
18 woo409 757 #include "system_dep.h"
19 gross 391
20     namespace escript {
21    
22     /**
23     \brief
24     some functions
25    
26     */
27    
28     /**
29     \brief
30 ksteube 1247 return the latest SVN version number
31     */
32     ESCRIPT_DLL_API int getSvnVersion();
33    
34     /**
35     \brief
36 ksteube 1561 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 gross 391 set the number of threads
43     */
44 woo409 757 ESCRIPT_DLL_API void setNumberOfThreads(const int num_threads);
45 gross 391
46     /**
47     \brief
48     returns the number of threads
49     */
50 woo409 757 ESCRIPT_DLL_API int getNumberOfThreads();
51 gross 391
52     } // end of namespace
53     #endif

  ViewVC Help
Powered by ViewVC 1.1.26