Quellcode durchsuchen

The progression hook is a mechanism which should be use in very specific cases.

Cédric Augonnet vor 15 Jahren
Ursprung
Commit
c7d8e962c0
2 geänderte Dateien mit 6 neuen und 3 gelöschten Zeilen
  1. 0 3
      include/starpu-data.h
  2. 6 0
      include/starpu-expert.h

+ 0 - 3
include/starpu-data.h

@@ -70,9 +70,6 @@ void starpu_data_set_wb_mask(starpu_data_handle state, uint32_t wb_mask);
 
 unsigned starpu_test_if_data_is_allocated_on_node(starpu_data_handle handle, uint32_t memory_node);
 
-int starpu_register_progression_hook(unsigned (*func)(void *arg), void *arg);
-void starpu_deregister_progression_hook(int hook_id);
-
 #ifdef __cplusplus
 }
 #endif

+ 6 - 0
include/starpu-expert.h

@@ -17,12 +17,18 @@
 #ifndef __STARPU_EXPERT_H__
 #define __STARPU_EXPERT_H__
 
+#include <starpu.h>
+#include <starpu_config.h>
+
 #ifdef __cplusplus
 extern "C" {
 #endif
 
 void starpu_wake_all_blocked_workers(void);
 
+int starpu_register_progression_hook(unsigned (*func)(void *arg), void *arg);
+void starpu_deregister_progression_hook(int hook_id);
+
 #ifdef __cplusplus
 }
 #endif