瀏覽代碼

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 年之前
父節點
當前提交
e1fafd8cb1
共有 1 個文件被更改,包括 5 次插入0 次删除
  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)