Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Change include order for smpi tests/examples to avoid conflicts
[simgrid.git] / teshsuite / smpi / mpich3-test / coll / allred3.c
index aaf8a23..61f1a7c 100644 (file)
@@ -182,10 +182,12 @@ int main( int argc, char *argv[] )
        buf = (int *)malloc( max_offset * sizeof(int) );
        if (!buf) {
            MPI_Abort( MPI_COMM_WORLD, 1 );
+            exit(1);
        }
        bufout = (int *)malloc( max_offset * sizeof(int) );
        if (!bufout) {
            MPI_Abort( MPI_COMM_WORLD, 1 );
+            exit(1);
        }
 
        initMat( comm, buf );
@@ -200,11 +202,11 @@ int main( int argc, char *argv[] )
        free( buf );
        free( bufout );
 
-       //MPI_Type_free( &mattype );
+       MPI_Type_free( &mattype );
        MTestFreeComm( &comm );
     }
 
-   // MPI_Op_free( &op );
+    MPI_Op_free( &op );
 
     MTest_Finalize( errs );
     MPI_Finalize();