|
@@ -65,7 +65,9 @@ void checkpoint_template_lib_init(void) {
|
|
starpu_mpi_comm_rank(MPI_COMM_WORLD, &my_rank);
|
|
starpu_mpi_comm_rank(MPI_COMM_WORLD, &my_rank);
|
|
starpu_mpi_comm_size(MPI_COMM_WORLD, &comm_size);
|
|
starpu_mpi_comm_size(MPI_COMM_WORLD, &comm_size);
|
|
current_instance = 0;
|
|
current_instance = 0;
|
|
|
|
+#ifdef STARPU_MPI_VERBOSE
|
|
_starpu_mpi_set_debug_level_max(1000);
|
|
_starpu_mpi_set_debug_level_max(1000);
|
|
|
|
+#endif
|
|
}
|
|
}
|
|
|
|
|
|
void checkpoint_template_lib_quit(void) {
|
|
void checkpoint_template_lib_quit(void) {
|
|
@@ -328,7 +330,7 @@ int _starpu_mpi_checkpoint_post_cp_discard_send(starpu_mpi_checkpoint_template_t
|
|
|
|
|
|
int _starpu_mpi_checkpoint_template_freeze(starpu_mpi_checkpoint_template_t cp_template)
|
|
int _starpu_mpi_checkpoint_template_freeze(starpu_mpi_checkpoint_template_t cp_template)
|
|
{
|
|
{
|
|
- char str[256];
|
|
|
|
|
|
+// char str[256];
|
|
starpu_pthread_mutex_lock(&cp_template->mutex);
|
|
starpu_pthread_mutex_lock(&cp_template->mutex);
|
|
_STARPU_MPI_DEBUG(2, "Start freezing checkpoint id:%d\n", cp_template->cp_id);
|
|
_STARPU_MPI_DEBUG(2, "Start freezing checkpoint id:%d\n", cp_template->cp_id);
|
|
cp_template->frozen = 1;
|
|
cp_template->frozen = 1;
|
|
@@ -345,19 +347,19 @@ int _starpu_mpi_checkpoint_template_freeze(starpu_mpi_checkpoint_template_t cp_t
|
|
}
|
|
}
|
|
item = _starpu_mpi_checkpoint_template_get_next_data(cp_template, item);
|
|
item = _starpu_mpi_checkpoint_template_get_next_data(cp_template, item);
|
|
}
|
|
}
|
|
- sprintf(str, "backupped by Array maxsize:%d - currentsize:%d - ", cp_template->backupped_by_array_max_size, cp_template->backupped_by_array_used_size);
|
|
|
|
- for (int i=0 ; i<cp_template->backupped_by_array_used_size ; i++)
|
|
|
|
- {
|
|
|
|
- sprintf(str,"%s%d ", str, cp_template->backupped_by_array[i]);
|
|
|
|
- }
|
|
|
|
- fprintf(stderr, "%s\n", str);
|
|
|
|
-
|
|
|
|
- sprintf(str,"backup of Array maxsize:%d - currentsize:%d - ", cp_template->backup_of_array_max_size, cp_template->backup_of_array_used_size);
|
|
|
|
- for (int i=0 ; i<cp_template->backup_of_array_used_size ; i++)
|
|
|
|
- {
|
|
|
|
- sprintf(str,"%s%d ", str, cp_template->backup_of_array[i]);
|
|
|
|
- }
|
|
|
|
- fprintf(stderr, "%s\n", str);
|
|
|
|
|
|
+// sprintf(str, "backupped by Array maxsize:%d - currentsize:%d - ", cp_template->backupped_by_array_max_size, cp_template->backupped_by_array_used_size);
|
|
|
|
+// for (int i=0 ; i<cp_template->backupped_by_array_used_size ; i++)
|
|
|
|
+// {
|
|
|
|
+// sprintf(str,"%s%d ", str, cp_template->backupped_by_array[i]);
|
|
|
|
+// }
|
|
|
|
+// fprintf(stderr, "%s\n", str);
|
|
|
|
+//
|
|
|
|
+// sprintf(str,"backup of Array maxsize:%d - currentsize:%d - ", cp_template->backup_of_array_max_size, cp_template->backup_of_array_used_size);
|
|
|
|
+// for (int i=0 ; i<cp_template->backup_of_array_used_size ; i++)
|
|
|
|
+// {
|
|
|
|
+// sprintf(str,"%s%d ", str, cp_template->backup_of_array[i]);
|
|
|
|
+// }
|
|
|
|
+// fprintf(stderr, "%s\n", str);
|
|
|
|
|
|
starpu_pthread_mutex_unlock(&cp_template->mutex);
|
|
starpu_pthread_mutex_unlock(&cp_template->mutex);
|
|
|
|
|