Changeset 2949


Ignore:
Timestamp:
May 23, 2006, 4:44:11 PM (18 years ago)
Author:
ole
Message:

Updated compile and install for Opteron 64 using the Portland group compiler.
Need to make this more general!

Location:
inundation/pypar_dist
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • inundation/pypar_dist/compile.py

    r2778 r2949  
    149149    if os.name == 'posix' and os.uname()[4] == 'x86_64':
    150150      #Extra flags for 64 bit architectures
    151       s += ' -fPIC -m64' #gcc
    152       #s += ' -fPIC -tp amd64' #pgcc
     151      #s += ' -fPIC -m64' #gcc
     152      s += ' -fPIC -tp amd64' #pgcc
    153153     
    154154   
     
    168168
    169169  if os.name == 'posix' and os.uname()[4] == 'x86_64':
     170      pass
    170171      #Extra flags for 64 bit architectures using Portland compilers
    171       #s += ' -mcmodel=medium'
     172      s += ' -mcmodel=medium'
    172173 
    173174  if verbose:
  • inundation/pypar_dist/install.py

    r85 r2949  
    4141  import compile
    4242  compile.compile('mpiext.c', MPICC, verbose = 1)
    43 except:
    44   raise "Could not compile C extension mpiext.c - please try manually"       
     43except Exception, e:
     44  raise "Could not compile C extension mpiext.c - please try manually: %s" %e       
    4545
    4646
  • inundation/pypar_dist/testpypar_short.py

    r85 r2949  
    1212# OMN, GPC FEB 2002
    1313
     14import os, sys
     15print 'PATH:', os.getenv('PATH')
     16print 'PYTHONPATH:', os.getenv('PYTHONPATH')
     17print 'Version:', sys.version
    1418try:
    1519  import Numeric
    16 except:
    17   raise 'Module Numeric must be present to run pypar'
     20except Exception, e:
     21  msg = 'Module Numeric must be present to run pypar: %s' %e
     22  raise msg
    1823
    1924
     
    227232
    228233
    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.