Explorar o código

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

Samuel Thibault %!s(int64=9) %!d(string=hai) anos
pai
achega
b74dfb5713
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  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();