浏览代码

mpi/tests: fix to call starpu_data_unregister and not starpu_data_release

Nathalie Furmento 14 年之前
父节点
当前提交
6e778388af
共有 3 个文件被更改,包括 6 次插入6 次删除
  1. 2 2
      mpi/tests/insert_task.c
  2. 2 2
      mpi/tests/insert_task_block.c
  3. 2 2
      mpi/tests/insert_task_cache.c

+ 2 - 2
mpi/tests/insert_task.c

@@ -98,8 +98,8 @@ int main(int argc, char **argv)
 
 
         for(x = 0; x < X; x++) {
         for(x = 0; x < X; x++) {
                 for (y = 0; y < Y; y++) {
                 for (y = 0; y < Y; y++) {
-                        if (!data_handles[x][y])
-                                starpu_data_release(data_handles[x][y]);
+                        if (data_handles[x][y])
+                                starpu_data_unregister(data_handles[x][y]);
                 }
                 }
         }
         }
 	starpu_mpi_shutdown();
 	starpu_mpi_shutdown();

+ 2 - 2
mpi/tests/insert_task_block.c

@@ -116,8 +116,8 @@ int main(int argc, char **argv)
 
 
         for(x = 0; x < BLOCKS; x++) {
         for(x = 0; x < BLOCKS; x++) {
                 for (y = 0; y < BLOCKS; y++) {
                 for (y = 0; y < BLOCKS; y++) {
-                        if (!data_handles[x][y])
-                                starpu_data_release(data_handles[x][y]);
+                        if (data_handles[x][y])
+                                starpu_data_unregister(data_handles[x][y]);
                 }
                 }
         }
         }
 
 

+ 2 - 2
mpi/tests/insert_task_cache.c

@@ -98,8 +98,8 @@ int main(int argc, char **argv)
 
 
         for(x = 0; x < X; x++) {
         for(x = 0; x < X; x++) {
                 for (y = 0; y < Y; y++) {
                 for (y = 0; y < Y; y++) {
-                        if (!data_handles[x][y])
-                                starpu_data_release(data_handles[x][y]);
+                        if (data_handles[x][y])
+                                starpu_data_unregister(data_handles[x][y]);
                 }
                 }
         }
         }
 	starpu_mpi_shutdown();
 	starpu_mpi_shutdown();