|
@@ -42,13 +42,13 @@ sem_t starpu_top_wait_for_go;
|
|
|
pthread_mutex_t starpu_top_wait_for_continue_mutex;
|
|
|
pthread_cond_t starpu_top_wait_for_continue_cond = PTHREAD_COND_INITIALIZER;
|
|
|
|
|
|
-int _starpu_top_status_get()
|
|
|
+int _starpu_top_status_get(void)
|
|
|
{
|
|
|
return starpu_top;
|
|
|
}
|
|
|
|
|
|
static
|
|
|
-unsigned long long current_timestamp();
|
|
|
+unsigned long long current_timestamp(void);
|
|
|
|
|
|
/*********************************************
|
|
|
*****************INIT FUNC********************
|
|
@@ -65,7 +65,7 @@ char *message_for_topparam_init(struct starpu_top_param* param);
|
|
|
* running
|
|
|
*/
|
|
|
static
|
|
|
-void copy_data_and_param()
|
|
|
+void copy_data_and_param(void)
|
|
|
{
|
|
|
printf("%s:%d trace\n", __FILE__, __LINE__);
|
|
|
//copying datas
|
|
@@ -107,7 +107,7 @@ static void starpu_top_get_device_type(int id, char* type)
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-static void starpu_top_send_devices_info()
|
|
|
+static void starpu_top_send_devices_info(void)
|
|
|
{
|
|
|
char* message=(char *)malloc(5*sizeof(char));
|
|
|
snprintf(message,5,"DEV\n");
|
|
@@ -629,7 +629,7 @@ void starpu_top_debug_lock(const char* debug_message)
|
|
|
**************TIME FUNCTION****************
|
|
|
*******************************************/
|
|
|
|
|
|
-unsigned long long current_timestamp()
|
|
|
+unsigned long long current_timestamp(void)
|
|
|
{
|
|
|
struct timespec now;
|
|
|
_starpu_clock_gettime(&now);
|
|
@@ -665,7 +665,7 @@ enum starpu_top_message_type starpu_top_get_message_type(const char* message)
|
|
|
}
|
|
|
|
|
|
static
|
|
|
-void starpu_top_unlock_starpu()
|
|
|
+void starpu_top_unlock_starpu(void)
|
|
|
{
|
|
|
sem_post(&starpu_top_wait_for_go);
|
|
|
printf("%s:%d starpu started\n", __FILE__, __LINE__);
|
|
@@ -739,7 +739,7 @@ void starpu_top_change_debug_mode(const char*message)
|
|
|
* Unlock starpu if it was locked in debug state
|
|
|
*/
|
|
|
static
|
|
|
-void starpu_top_debug_next_step()
|
|
|
+void starpu_top_debug_next_step(void)
|
|
|
{
|
|
|
_STARPU_PTHREAD_COND_SIGNAL(&starpu_top_wait_for_continue_cond);
|
|
|
}
|