Samuel Thibault лет назад: 10
Родитель
Сommit
9327d30712
3 измененных файлов с 1 добавлено и 3 удалено
  1. 1 1
      src/datawizard/coherency.c
  2. 0 1
      src/datawizard/malloc.c
  3. 0 1
      src/datawizard/memalloc.c

+ 1 - 1
src/datawizard/coherency.c

@@ -260,7 +260,7 @@ static int link_supports_direct_transfers(starpu_data_handle_t handle, unsigned
 	if (src_node != dst_node && starpu_node_get_kind(src_node) == STARPU_CUDA_RAM && starpu_node_get_kind(dst_node) == STARPU_CUDA_RAM)
 	{
 		const struct starpu_data_copy_methods *copy_methods = handle->ops->copy_methods;
-		if (!copy_methods->cuda_to_cuda_async && !copy_methods->any_to_any)
+		if (!copy_methods->cuda_to_cuda_async)
 			return 0;
 	}
 #endif

+ 0 - 1
src/datawizard/malloc.c

@@ -404,7 +404,6 @@ _starpu_malloc_on_node(unsigned dst_node, size_t size)
 			STARPU_ASSERT(last[dst_node] >= addr);
 			STARPU_PTHREAD_MUTEX_UNLOCK(&cuda_alloc_mutex);
 #else
-			//starpu_cuda_set_device(devid); /* !!! */
 			status = cudaMalloc((void **)&addr, size);
 			if (!addr || (status != cudaSuccess))
 			{

+ 0 - 1
src/datawizard/memalloc.c

@@ -548,7 +548,6 @@ static unsigned try_to_find_reusable_mem_chunk(unsigned node, starpu_data_handle
 	mc = _starpu_memchunk_cache_lookup_locked(node, data, footprint);
 	if (mc)
 	{
-		/* TODO: return the MC !! */
 		/* We found an entry in the cache so we can reuse it */
 		reuse_mem_chunk(node, replicate, mc, 0);
 		return 1;