Explorar el Código

synchronize only the transfer stream

Samuel Thibault hace 13 años
padre
commit
f18180c477
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/datawizard/interfaces/matrix_interface.c

+ 1 - 1
src/datawizard/interfaces/matrix_interface.c

@@ -513,7 +513,7 @@ static int copy_cuda_peer(void *src_interface, unsigned src_node STARPU_ATTRIBUT
 	cures = cudaMemcpy3DPeerAsync(&p, stream);
 	if (STARPU_UNLIKELY(cures))
 		STARPU_CUDA_REPORT_ERROR(cures);
-	cudaThreadSynchronize();
+	cudaStreamSynchronize(stream);
 
 	if (is_async)
 	{