瀏覽代碼

STARPU_SSEND should not care for implicit dependencies

Samuel Thibault 9 年之前
父節點
當前提交
aeb51177f0
共有 2 個文件被更改,包括 6 次插入2 次删除
  1. 2 1
      include/starpu_data.h
  2. 4 1
      src/core/dependencies/implicit_data_deps.c

+ 2 - 1
include/starpu_data.h

@@ -1,6 +1,6 @@
 /* StarPU --- Runtime system for heterogeneous multicore architectures.
  *
- * Copyright (C) 2010-2015  Université de Bordeaux
+ * Copyright (C) 2010-2016  Université de Bordeaux
  * Copyright (C) 2010, 2011, 2012, 2013, 2014, 2015  CNRS
  *
  * StarPU is free software; you can redistribute it and/or modify
@@ -28,6 +28,7 @@ extern "C"
 struct _starpu_data_state;
 typedef struct _starpu_data_state* starpu_data_handle_t;
 
+/* Note: when adding a flag here, update _starpu_detect_implicit_data_deps_with_handle */
 enum starpu_data_access_mode
 {
 	STARPU_NONE=0,

+ 4 - 1
src/core/dependencies/implicit_data_deps.c

@@ -1,6 +1,6 @@
 /* StarPU --- Runtime system for heterogeneous multicore architectures.
  *
- * Copyright (C) 2010-2015  Université de Bordeaux
+ * Copyright (C) 2010-2016  Université de Bordeaux
  * Copyright (C) 2010, 2011, 2013, 2015  CNRS
  *
  * StarPU is free software; you can redistribute it and/or modify
@@ -206,6 +206,9 @@ struct starpu_task *_starpu_detect_implicit_data_deps_with_handle(struct starpu_
 {
 	struct starpu_task *task = NULL;
 
+	/* Do not care about some flags */
+	mode &= ~ STARPU_SSEND;
+
 	STARPU_ASSERT(!(mode & STARPU_SCRATCH));
         _STARPU_LOG_IN();