Explorar o código

topology: reset static variables to default values as starpu might be launched again

Nathalie Furmento %!s(int64=14) %!d(string=hai) anos
pai
achega
eea0526b4e
Modificáronse 1 ficheiros con 6 adicións e 0 borrados
  1. 6 0
      src/core/topology.c

+ 6 - 0
src/core/topology.c

@@ -748,4 +748,10 @@ void _starpu_destroy_topology(struct starpu_machine_config_s *config __attribute
 #endif
 
 	topology_is_initialized = 0;
+#ifdef STARPU_USE_CUDA
+	devices_using_cuda = NULL;
+#endif
+#if defined(STARPU_USE_CUDA) || defined(STARPU_USE_OPENCL)
+	may_bind_automatically = 0;
+#endif
 }