Browse Source

port r16718 from trunk: Make xgemm advise returning C pieces to main memory once finished with them

Samuel Thibault 9 years ago
parent
commit
b74dfb5713
1 changed files with 2 additions and 1 deletions
  1. 2 1
      examples/mult/xgemm.c

+ 2 - 1
examples/mult/xgemm.c

@@ -1,6 +1,6 @@
 /* StarPU --- Runtime system for heterogeneous multicore architectures.
  *
- * Copyright (C) 2009-2015  Université de Bordeaux
+ * Copyright (C) 2009-2016  Université de Bordeaux
  * Copyright (C) 2010  Mehdi Juhoor <mjuhoor@gmail.com>
  * Copyright (C) 2010, 2011, 2012, 2013  CNRS
  *
@@ -356,6 +356,7 @@ int main(int argc, char **argv)
 			     goto enodev;
 			}
 			STARPU_CHECK_RETURN_VALUE(ret, "starpu_task_submit");
+			starpu_data_wont_use(starpu_data_get_sub_data(C_handle, 2, x, y));
 		}
 
 		starpu_task_wait_for_all();