Browse Source

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

Samuel Thibault 10 years ago
parent
commit
4ceefa0477
1 changed files with 2 additions and 2 deletions
  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 */