Changeset 2949
- Timestamp:
- May 23, 2006, 4:44:11 PM (18 years ago)
- Location:
- inundation/pypar_dist
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
inundation/pypar_dist/compile.py
r2778 r2949 149 149 if os.name == 'posix' and os.uname()[4] == 'x86_64': 150 150 #Extra flags for 64 bit architectures 151 s += ' -fPIC -m64' #gcc152 #s += ' -fPIC -tp amd64' #pgcc151 #s += ' -fPIC -m64' #gcc 152 s += ' -fPIC -tp amd64' #pgcc 153 153 154 154 … … 168 168 169 169 if os.name == 'posix' and os.uname()[4] == 'x86_64': 170 pass 170 171 #Extra flags for 64 bit architectures using Portland compilers 171 #s += ' -mcmodel=medium'172 s += ' -mcmodel=medium' 172 173 173 174 if verbose: -
inundation/pypar_dist/install.py
r85 r2949 41 41 import compile 42 42 compile.compile('mpiext.c', MPICC, verbose = 1) 43 except :44 raise "Could not compile C extension mpiext.c - please try manually "43 except Exception, e: 44 raise "Could not compile C extension mpiext.c - please try manually: %s" %e 45 45 46 46 -
inundation/pypar_dist/testpypar_short.py
r85 r2949 12 12 # OMN, GPC FEB 2002 13 13 14 import os, sys 15 print 'PATH:', os.getenv('PATH') 16 print 'PYTHONPATH:', os.getenv('PYTHONPATH') 17 print 'Version:', sys.version 14 18 try: 15 19 import Numeric 16 except: 17 raise 'Module Numeric must be present to run pypar' 20 except Exception, e: 21 msg = 'Module Numeric must be present to run pypar: %s' %e 22 raise msg 18 23 19 24 … … 227 232 228 233 229 # Test scatter - with/without buffers (arrays, strings) 230 # 231 N = 17 #Number of elements 232 233 testString = 'test' + str(myid) 234 s_size = 1 235 X = ' '*s_size 236 pypar.raw_scatter(testString, s_size, X, 0) 237 238 Y = pypar.scatter(testString, s_size, 0) 239 240 if myid == 0: 241 assert X == 't' 242 assert Y == 't' 243 print "Scatter communication of strings OK" 244 245 testArray = Numeric.array(range(N)) 246 s_size = 1 247 X = Numeric.zeros(s_size) 248 pypar.raw_scatter(testArray, s_size, X, 0) 249 250 Y = pypar.scatter(testArray, s_size, 0) 251 252 253 if myid == 0: 254 assert X == [0] 255 assert Y == [0] 256 print "Scatter communication of numeric integer array OK" 257 258 259 testArray = Numeric.array(range(N)).astype('f') 260 s_size = 1 261 X = Numeric.zeros(s_size).astype('f') 262 pypar.raw_scatter(testArray, s_size, X, 0) 263 264 Y = pypar.scatter(testArray, s_size, 0) 265 266 if myid == 0: 267 assert X == [0.0] 268 assert Y == [0.0] 269 print "Scatter communication of numeric real array OK" 270 271 272 273 234
Note: See TracChangeset
for help on using the changeset viewer.