Ver código fonte

src/core/topology.c: set userdata to NULL to make sure it is going to be properly initialised in case we call starpu_init() again in the same application

Nathalie Furmento 12 anos atrás
pai
commit
dfd8911aa3
1 arquivos alterados com 1 adições e 0 exclusões
  1. 1 0
      src/core/topology.c

+ 1 - 0
src/core/topology.c

@@ -1395,6 +1395,7 @@ _starpu_destroy_topology (
 		if (worker_obj->userdata)
 		{
 			_starpu_worker_list_delete(worker_obj->userdata);
+			worker_obj->userdata = NULL;
 		}
 #endif
 	}