Explorar o código

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 %!s(int64=11) %!d(string=hai) anos
pai
achega
dfd8911aa3
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  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
 	}