|
@@ -2,7 +2,7 @@
|
|
|
*
|
|
|
* Copyright (C) 2009-2012 Université de Bordeaux 1
|
|
|
* Copyright (C) 2010 Mehdi Juhoor <mjuhoor@gmail.com>
|
|
|
- * Copyright (C) 2010, 2011, 2012 Centre National de la Recherche Scientifique
|
|
|
+ * Copyright (C) 2010, 2011, 2012, 2013 Centre National de la Recherche Scientifique
|
|
|
*
|
|
|
* StarPU is free software; you can redistribute it and/or modify
|
|
|
* it under the terms of the GNU Lesser General Public License as published by
|
|
@@ -17,17 +17,11 @@
|
|
|
*/
|
|
|
|
|
|
#include <starpu_mpi.h>
|
|
|
+#include <common/blas.h>
|
|
|
#include "mpi_cholesky.h"
|
|
|
#include "mpi_cholesky_models.h"
|
|
|
#include "mpi_cholesky_codelets.h"
|
|
|
|
|
|
-/* Returns the MPI node number where data indexes index is */
|
|
|
-int my_distrib(int x, int y, int nb_nodes)
|
|
|
-{
|
|
|
- //return (x+y) % nb_nodes;
|
|
|
- return (x%dblockx)+(y%dblocky)*dblockx;
|
|
|
-}
|
|
|
-
|
|
|
int main(int argc, char **argv)
|
|
|
{
|
|
|
/* create a simple definite positive symetric matrix example
|
|
@@ -43,10 +37,10 @@ int main(int argc, char **argv)
|
|
|
ret = starpu_init(NULL);
|
|
|
STARPU_CHECK_RETURN_VALUE(ret, "starpu_init");
|
|
|
|
|
|
- starpu_mpi_init(&argc, &argv, 1);
|
|
|
+ ret = starpu_mpi_init(&argc, &argv, 1);
|
|
|
+ STARPU_CHECK_RETURN_VALUE(ret, "starpu_mpi_init");
|
|
|
MPI_Comm_rank(MPI_COMM_WORLD, &rank);
|
|
|
MPI_Comm_size(MPI_COMM_WORLD, &nodes);
|
|
|
-
|
|
|
starpu_helper_cublas_init();
|
|
|
|
|
|
if (dblockx == -1 || dblocky == -1)
|