Selaa lähdekoodia

Define a new header which should contain the public functions that should only
be manipulated by "expert" users, for instance when adding support for a new
programming model or a compiler.

Cédric Augonnet 15 vuotta sitten
vanhempi
commit
89c1870f00
4 muutettua tiedostoa jossa 33 lisäystä ja 2 poistoa
  1. 2 1
      Makefile.am
  2. 30 0
      include/starpu-expert.h
  3. 1 0
      include/starpu.h
  4. 0 1
      src/datawizard/copy-driver.h

+ 2 - 1
Makefile.am

@@ -33,4 +33,5 @@ include_HEADERS = 				\
 	include/starpu-task.h			\
 	include/starpu-data.h			\
 	include/starpu-perfmodel.h		\
-	include/starpu-util.h
+	include/starpu-util.h			\
+	include/starpu-expert.h

+ 30 - 0
include/starpu-expert.h

@@ -0,0 +1,30 @@
+/*
+ * StarPU
+ * Copyright (C) INRIA 2008-2010 (see AUTHORS file)
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU Lesser General Public License as published by
+ * the Free Software Foundation; either version 2.1 of the License, or (at
+ * your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful, but
+ * WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+ *
+ * See the GNU Lesser General Public License in COPYING.LGPL for more details.
+ */
+
+#ifndef __STARPU_EXPERT_H__
+#define __STARPU_EXPERT_H__
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+void starpu_wake_all_blocked_workers(void);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif // __STARPU_H__

+ 1 - 0
include/starpu.h

@@ -29,6 +29,7 @@
 #include <starpu-data.h>
 #include <starpu-perfmodel.h>
 #include <starpu-task.h>
+#include <starpu-expert.h>
 
 #ifdef __cplusplus
 extern "C" {

+ 0 - 1
src/datawizard/copy-driver.h

@@ -66,7 +66,6 @@ struct copy_data_methods_s {
 #endif
 };
 
-void starpu_wake_all_blocked_workers(void);
 void _starpu_wake_all_blocked_workers_on_node(unsigned nodeid);
 
 __attribute__((warn_unused_result))