Browse Source

Fix the case of GPU-GPU transfers

Cédric Augonnet 14 years ago
parent
commit
660fe66521
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/datawizard/coherency.c

+ 1 - 1
src/datawizard/coherency.c

@@ -119,7 +119,7 @@ static int worker_supports_direct_access(unsigned node, unsigned handling_node)
 #ifdef HAVE_CUDA_MEMCPY_PEER
 			/* GPUs not always allow direct remote access: if CUDA4
 			 * is enabled, we allow two CUDA devices to communicate. */
-			return (type_handling != STARPU_OPENCL_RAM);
+			return (_starpu_get_node_kind(handling_node) != STARPU_OPENCL_RAM);
 #else
 			/* Direct GPU-GPU transfers are not allowed in general */
 			return 0;