Changeset 1851
- Timestamp:
- Sep 23, 2005, 9:39:21 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
inundation/pypar/pytiming
r123 r1851 19 19 #-------------------------------------------------------------- 20 20 21 method = 2 # Use22 23 24 25 # 3: direct call to mpiext (with buffers),26 21 method = 2 # Use 22 # 0: automatically allocated buffers 23 # 1: user-supplied buffers 24 # 2: Use bypass - let pypar use direct mpi_ext call 25 # 3 (not there): direct call to mpiext (with buffers), 26 # only fractionally better than bypass 27 27 28 28 vanilla = False # Force use of vanilla format (1) … … 101 101 #Initialise data and timings 102 102 # 103 from RandomArray import uniform, seed 104 seed(17, 53) 105 A = uniform(0.0,100.0,MAXM) 103 104 try: 105 from RandomArray import uniform, seed 106 seed(17, 53) 107 A = uniform(0.0,100.0,MAXM) 108 except: 109 print 'problem with RandomArray' 110 from Numeric import ones, Float 111 A = ones( MAXM, Float ) 112 106 113 elsize = A.itemsize() 107 114 #print elsize
Note: See TracChangeset
for help on using the changeset viewer.