|
|
@@ -399,7 +399,7 @@ struct _starpu_machine_config
|
|
|
};
|
|
|
|
|
|
/** Provides information for a device driver */
|
|
|
-struct starpu_driver_info
|
|
|
+struct _starpu_driver_info
|
|
|
{
|
|
|
const char *name_upper; /**< Name of worker type in upper case */
|
|
|
const char *name_var; /**< Name of worker type for environment variables */
|
|
|
@@ -409,21 +409,21 @@ struct starpu_driver_info
|
|
|
};
|
|
|
|
|
|
/** Device driver information, indexed by enum starpu_worker_archtype */
|
|
|
-extern struct starpu_driver_info starpu_driver_info[STARPU_NARCH];
|
|
|
+extern struct _starpu_driver_info starpu_driver_info[STARPU_NARCH];
|
|
|
|
|
|
-void starpu_driver_info_register(enum starpu_worker_archtype archtype, const struct starpu_driver_info *info);
|
|
|
+void _starpu_driver_info_register(enum starpu_worker_archtype archtype, const struct _starpu_driver_info *info);
|
|
|
|
|
|
/** Provides information for a memory node driver */
|
|
|
-struct starpu_memory_driver_info
|
|
|
+struct _starpu_memory_driver_info
|
|
|
{
|
|
|
const char *name_upper; /**< Name of memory in upper case */
|
|
|
enum starpu_worker_archtype worker_archtype; /**< Kind of device */
|
|
|
};
|
|
|
|
|
|
/** Memory driver information, indexed by enum starpu_node_kind */
|
|
|
-extern struct starpu_memory_driver_info starpu_memory_driver_info[STARPU_MAX_RAM+1];
|
|
|
+extern struct _starpu_memory_driver_info starpu_memory_driver_info[STARPU_MAX_RAM+1];
|
|
|
|
|
|
-void starpu_memory_driver_info_register(enum starpu_node_kind kind, const struct starpu_memory_driver_info *info);
|
|
|
+void _starpu_memory_driver_info_register(enum starpu_node_kind kind, const struct _starpu_memory_driver_info *info);
|
|
|
|
|
|
extern int _starpu_worker_parallel_blocks;
|
|
|
|
|
|
@@ -577,11 +577,11 @@ static inline struct _starpu_sched_ctx* _starpu_get_initial_sched_ctx(void)
|
|
|
return &_starpu_config.sched_ctxs[STARPU_GLOBAL_SCHED_CTX];
|
|
|
}
|
|
|
|
|
|
-int starpu_worker_get_nids_by_type(enum starpu_worker_archtype type, int *workerids, int maxsize);
|
|
|
+int _starpu_worker_get_nids_by_type(enum starpu_worker_archtype type, int *workerids, int maxsize);
|
|
|
|
|
|
/** returns workers not belonging to any context, be careful no mutex is used,
|
|
|
the list might not be updated */
|
|
|
-int starpu_worker_get_nids_ctx_free_by_type(enum starpu_worker_archtype type, int *workerids, int maxsize);
|
|
|
+int _starpu_worker_get_nids_ctx_free_by_type(enum starpu_worker_archtype type, int *workerids, int maxsize);
|
|
|
|
|
|
static inline unsigned _starpu_worker_mutex_is_sched_mutex(int workerid, starpu_pthread_mutex_t *mutex)
|
|
|
{
|