소스 검색

StarPU-MPI: rename test

Nathalie Furmento 14 년 전
부모
커밋
ab7295d6fe
3개의 변경된 파일17개의 추가작업 그리고 6개의 파일을 삭제
  1. 8 0
      mpi/Makefile.am
  2. 4 1
      mpi/starpu_mpi_insert_task.c
  3. 5 5
      mpi/tests/insert_task2.c

+ 8 - 0
mpi/Makefile.am

@@ -153,6 +153,7 @@ check_PROGRAMS +=					\
 	tests/block_interface				\
 	tests/block_interface_pinned			\
 	tests/insert_task				\
+	tests/insert_task_cache				\
 	tests/insert_task_block				\
 	tests/multiple_send
 
@@ -170,6 +171,7 @@ testbin_PROGRAMS =				\
 	tests/block_interface				\
 	tests/block_interface_pinned			\
 	tests/insert_task				\
+	tests/insert_task_cache				\
 	tests/insert_task_block				\
 	tests/multiple_send
 
@@ -251,6 +253,12 @@ tests_insert_task_LDADD =				\
 tests_insert_task_SOURCES =				\
 	tests/insert_task.c
 
+tests_insert_task_cache_LDADD =				\
+	libstarpumpi.la
+
+tests_insert_task_cache_SOURCES =			\
+	tests/insert_task_cache.c
+
 tests_insert_task_block_LDADD =				\
 	libstarpumpi.la
 

+ 4 - 1
mpi/starpu_mpi_insert_task.c

@@ -25,7 +25,7 @@
 #include <common/htable32.h>
 #include <util/starpu_insert_task_utils.h>
 
-//#define STARPU_MPI_VERBOSE	1
+#define STARPU_MPI_VERBOSE	1
 #include <starpu_mpi_private.h>
 
 /* Whether we are allowed to keep copies of remote data. Does not work
@@ -158,6 +158,9 @@ int starpu_mpi_insert_task(MPI_Comm comm, starpu_codelet *codelet, ...)
                                                 /* That's the rank which needs the data to be sent to */
                                         }
                                 }
+                                else {
+                                        _STARPU_ERROR("rank invalid\n");
+                                }
                         }
                 }
 		else if (arg_type==STARPU_VALUE) {

+ 5 - 5
mpi/tests/insert_task2.c

@@ -1,13 +1,13 @@
-/*
- * StarPU
- * Copyright (C) Université Bordeaux 1, CNRS 2008-2010 (see AUTHORS file)
+/* StarPU --- Runtime system for heterogeneous multicore architectures.
  *
- * This program is free software; you can redistribute it and/or modify
+ * Copyright (C) 2011  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
  * the Free Software Foundation; either version 2.1 of the License, or (at
  * your option) any later version.
  *
- * This program is distributed in the hope that it will be useful, but
+ * StarPU is distributed in the hope that it will be useful, but
  * WITHOUT ANY WARRANTY; without even the implied warranty of
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  *