浏览代码

Fix logic: we want to enable the racy optimization when we use non-blocking drivers

Samuel Thibault 10 年之前
父节点
当前提交
4ceefa0477
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/datawizard/data_request.c

+ 2 - 2
src/datawizard/data_request.c

@@ -430,7 +430,7 @@ int _starpu_handle_node_data_requests(unsigned src_node, unsigned may_alloc, uns
 
 	*pushed = 0;
 
-#ifndef STARPU_NON_BLOCKING_DRIVERS
+#ifdef STARPU_NON_BLOCKING_DRIVERS
 	/* This is racy, but not posing problems actually, since we know we
 	 * will come back here to probe again regularly anyway.
 	 * Thus, do not expose this optimization to helgrind */
@@ -532,7 +532,7 @@ void _starpu_handle_node_prefetch_requests(unsigned src_node, unsigned may_alloc
 
 	*pushed = 0;
 
-#ifndef STARPU_NON_BLOCKING_DRIVERS
+#ifdef STARPU_NON_BLOCKING_DRIVERS
 	/* This is racy, but not posing problems actually, since we know we
 	 * will come back here to probe again regularly anyway.
 	 * Thus, do not expose this optimization to valgrind */