Changeset 5688
- Timestamp:
- 11/04/09 14:48:36 (3 weeks ago)
- Location:
- mpich2/trunk/test/mpi
- Files:
-
- 2 modified
-
coll/reduce_local.c (modified) (2 diffs)
-
f77/coll/reducelocalf.f (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
mpich2/trunk/test/mpi/coll/reduce_local.c
r5676 r5688 52 52 inoutbuf = malloc(sizeof(int) * MAX_BUF_ELEMENTS); 53 53 54 55 for (count = 1; count < MAX_BUF_ELEMENTS; count *= 2) { 54 for (count = 0; count < MAX_BUF_ELEMENTS; count > 0 ? count*=2 : count++) { 56 55 for (i = 0; i < count; ++i) { 57 56 inbuf[i] = i; … … 69 68 /* make sure that user-define ops work too */ 70 69 MPI_Op_create(&user_op, 0/*!commute*/, &uop); 71 for (count = 1; count < MAX_BUF_ELEMENTS; count *= 2) {70 for (count = 0; count < MAX_BUF_ELEMENTS; count > 0 ? count*=2 : count++) { 72 71 for (i = 0; i < count; ++i) { 73 72 inbuf[i] = i; -
mpich2/trunk/test/mpi/f77/coll/reducelocalf.f
r5677 r5688 40 40 call mtest_init(ierr) 41 41 42 count = 142 count = 0 43 43 do while (count .le. max_buf_size ) 44 44 do ii = 1,count … … 57 57 endif 58 58 enddo 59 count = count + count 59 if ( count .gt. 0 ) then 60 count = count + count 61 else 62 count = 1 63 endif 60 64 enddo 61 65 62 66 call mpi_op_create( user_op, .false., myop, ierr ) 63 67 64 count = 168 count = 0 65 69 do while (count .le. max_buf_size) 66 70 do ii = 1, count … … 79 83 endif 80 84 enddo 81 count = count + count 85 if ( count .gt. 0 ) then 86 count = count + count 87 else 88 count = 1 89 endif 82 90 enddo 83 91
