Browse Source

src/datawizard/interfaces/data_interface.c: display warning when starpu_shutdown is called while there is some unregistered data handles (thanks to Benoit Lize for suggesting the feature)

Nathalie Furmento 11 years ago
parent
commit
e1fafd8cb1
1 changed files with 5 additions and 0 deletions
  1. 5 0
      src/datawizard/interfaces/data_interface.c

+ 5 - 0
src/datawizard/interfaces/data_interface.c

@@ -62,6 +62,11 @@ void _starpu_data_interface_shutdown()
 {
 	struct handle_entry *entry, *tmp;
 
+	if (registered_handles)
+	{
+		_STARPU_DISP("[warning] The application has not unregistered all data handles.\n");
+	}
+
 	_starpu_spin_destroy(&registered_handles_lock);
 
 	HASH_ITER(hh, registered_handles, entry, tmp)