Ver código fonte

Do not allow fetch_data_on_node do datawizard_progress

It may be already pushing tasks and datawizard_progress may trigger another push.
Lucas Nesi 4 anos atrás
pai
commit
3d9162752a
1 arquivos alterados com 1 adições e 8 exclusões
  1. 1 8
      src/datawizard/coherency.c

+ 1 - 8
src/datawizard/coherency.c

@@ -774,14 +774,7 @@ int _starpu_fetch_data_on_node(starpu_data_handle_t handle, int node, struct _st
 {
         _STARPU_LOG_IN();
 
-	int cpt = 0;
-	while (cpt < STARPU_SPIN_MAXTRY && _starpu_spin_trylock(&handle->header_lock))
-	{
-		cpt++;
-		_starpu_datawizard_progress(STARPU_DATAWIZARD_DO_ALLOC);
-	}
-	if (cpt == STARPU_SPIN_MAXTRY)
-		_starpu_spin_lock(&handle->header_lock);
+	_starpu_spin_lock(&handle->header_lock);
 
 	if (mode & STARPU_R && is_prefetch > STARPU_FETCH)
 	{