Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Somehow OSX "lost" aligned_alloc recently ?
authorAugustin Degomme <adegomme@users.noreply.github.com>
Wed, 4 Dec 2019 20:16:28 +0000 (21:16 +0100)
committerAugustin Degomme <adegomme@users.noreply.github.com>
Wed, 4 Dec 2019 20:16:28 +0000 (21:16 +0100)
But it's quite useless here anyway, so don't bother.

teshsuite/smpi/pt2pt-pingpong/pt2pt-pingpong.c

index ac338c7..c395917 100644 (file)
@@ -31,7 +31,7 @@ int main(int argc, char *argv[])
   int rank;
   int msg = 99;
   MPI_Status status;
-  int* test = (int*)aligned_alloc(8, 32);
+  int* test = (int*)malloc(8);
 
   int err = MPI_Init(&argc, &argv); /* Initialize MPI */