/[escript]/trunk/start.py
ViewVC logotype

Annotation of /trunk/start.py

Parent Directory Parent Directory | Revision Log Revision Log


Revision 4508 - (hide annotations)
Wed Jul 24 04:23:22 2013 UTC (6 years, 1 month ago) by jfenwick
File MIME type: text/x-python
File size: 1615 byte(s)
Moving to escriptcore
1 jfenwick 4412
2     ##############################################################################
3     #
4     # Copyright (c) 2003-2013 by University of Queensland
5     # http://www.uq.edu.au
6     #
7     # Primary Business: Queensland, Australia
8     # Licensed under the Open Software License version 3.0
9     # http://www.opensource.org/licenses/osl-3.0.php
10     #
11     # Development until 2012 by Earth Systems Science Computational Center (ESSCC)
12     # Development since 2012 by School of Earth Sciences
13     #
14     ##############################################################################
15    
16     __copyright__="""Copyright (c) 2003-2013 by University of Queensland
17     http://www.uq.edu.au
18     Primary Business: Queensland, Australia"""
19     __license__="""Licensed under the Open Software License version 3.0
20     http://www.opensource.org/licenses/osl-3.0.php"""
21     __url__="https://launchpad.net/escript-finley"
22    
23     # This file includes setup and tweaks that are required for escript core packages
24     # No escript packages should be imported here
25    
26    
27     try:
28     # this is required so newer intel MKL libraries find necessary symbols
29     import ctypes, sys
30     sys.setdlopenflags(sys.getdlopenflags()|ctypes.RTLD_GLOBAL)
31     except:
32     pass
33    
34     try:
35     import sympy
36     HAVE_SYMBOLS=True
37     except ImportError:
38     HAVE_SYMBOLS=False
39    
40     # To have this function called automatically
41     def escriptLogMemoryStatusNow(prefix='memescript'):
42     import os
43     if os.name=='posix':
44     pid=os.getpid()
45     os.system("cat /proc/%d/status > %s.%d"%(pid,prefix,pid))
46    
47     try:
48     import os
49     if 'escriptExitProfiling' in os.environ:
50     import atexit
51     atexit.register(escriptLogMemoryStatusNow)
52     except:
53     pass
54    
55    
56    

Properties

Name Value
svn:mergeinfo /branches/lapack2681/escriptcore/py_src/start.py:2682-2741 /branches/pasowrap/escriptcore/py_src/start.py:3661-3674 /branches/py3_attempt2/escriptcore/py_src/start.py:3871-3891 /branches/restext/escriptcore/py_src/start.py:2610-2624 /branches/ripleygmg_from_3668/escriptcore/py_src/start.py:3669-3791 /branches/stage3.0/escriptcore/py_src/start.py:2569-2590 /branches/symbolic_from_3470/escriptcore/py_src/start.py:3471-3974 /release/3.0/escriptcore/py_src/start.py:2591-2601

  ViewVC Help
Powered by ViewVC 1.1.26