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

Contents of /trunk/start.py

Parent Directory Parent Directory | Revision Log Revision Log


Revision 4657 - (show annotations)
Thu Feb 6 06:12:20 2014 UTC (5 years, 2 months ago) by jfenwick
File MIME type: text/x-python
File size: 1683 byte(s)
I changed some files.
Updated copyright notices, added GeoComp.



1
2 ##############################################################################
3 #
4 # Copyright (c) 2003-2014 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 2012-2013 by School of Earth Sciences
13 # Development from 2014 by Centre for Geoscience Computing (GeoComp)
14 #
15 ##############################################################################
16
17 __copyright__="""Copyright (c) 2003-2014 by University of Queensland
18 http://www.uq.edu.au
19 Primary Business: Queensland, Australia"""
20 __license__="""Licensed under the Open Software License version 3.0
21 http://www.opensource.org/licenses/osl-3.0.php"""
22 __url__="https://launchpad.net/escript-finley"
23
24 # This file includes setup and tweaks that are required for escript core packages
25 # No escript packages should be imported here
26
27
28 try:
29 # this is required so newer intel MKL libraries find necessary symbols
30 import ctypes, sys
31 sys.setdlopenflags(sys.getdlopenflags()|ctypes.RTLD_GLOBAL)
32 except:
33 pass
34
35 try:
36 import sympy
37 HAVE_SYMBOLS=True
38 except ImportError:
39 HAVE_SYMBOLS=False
40
41 # To have this function called automatically
42 def escriptLogMemoryStatusNow(prefix='memescript'):
43 import os
44 if os.name=='posix':
45 pid=os.getpid()
46 os.system("cat /proc/%d/status > %s.%d"%(pid,prefix,pid))
47
48 try:
49 import os
50 if 'escriptExitProfiling' in os.environ:
51 import atexit
52 atexit.register(escriptLogMemoryStatusNow)
53 except:
54 pass
55
56
57

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