|
@@ -94,7 +94,7 @@ int _starpu_mpi_checkpoint_template_add_data(starpu_mpi_checkpoint_template_t cp
|
|
|
item = _starpu_mpi_checkpoint_template_item_create(type, ptr, count, backupped_by, backup_of, tag);
|
|
|
_starpu_mpi_checkpoint_template_item_list_push_back(&cp_template->list, item);
|
|
|
_checkpoint_template_add_to_backup_arrays(cp_template, backupped_by, backup_of);
|
|
|
- _STARPU_MPI_DEBUG(5, "New checkpoint data entry %p has been added to cp_template with id:%d. (%s)\n", item, cp_template->cp_template_id, backupped_by==-1?"BACKUP_OF":"BACKUPPED_BY");
|
|
|
+ _STARPU_MPI_DEBUG(5, "New checkpoint data entry %p has been added to cp_template with id:%d. (%s)\n", item, cp_template->cp_id, backupped_by == -1 ? "BACKUP_OF" : "BACKUPPED_BY");
|
|
|
starpu_pthread_mutex_unlock(&cp_template->mutex);
|
|
|
return 0;
|
|
|
}
|
|
@@ -254,7 +254,7 @@ int _starpu_mpi_checkpoint_post_cp_discard_send(starpu_mpi_checkpoint_template_t
|
|
|
// {
|
|
|
// return -1;
|
|
|
// }
|
|
|
-// else if (last_valid_checkpoint.checkpoint_id!=cp_template->cp_template_id)
|
|
|
+// else if (last_valid_checkpoint.checkpoint_id!=cp_template->cp_id)
|
|
|
// {
|
|
|
// old_template = _starpu_mpi_get_checkpoint_template_by_id(last_valid_checkpoint.checkpoint_id);
|
|
|
// for (i=0 ; i<old_template->backup_of_array_used_size ; i++)
|
|
@@ -304,7 +304,7 @@ int _starpu_mpi_checkpoint_post_cp_discard_send(starpu_mpi_checkpoint_template_t
|
|
|
// {
|
|
|
// return -1;
|
|
|
// }
|
|
|
-// else if (last_valid_checkpoint.checkpoint_id!=cp_template->cp_template_id)
|
|
|
+// else if (last_valid_checkpoint.checkpoint_id!=cp_template->cp_id)
|
|
|
// {
|
|
|
// old_template = _starpu_mpi_get_checkpoint_template_by_id(last_valid_checkpoint.checkpoint_id);
|
|
|
// for (i=0 ; i<old_template->backupped_by_array_used_size ; i++)
|
|
@@ -336,7 +336,7 @@ int _starpu_mpi_checkpoint_template_freeze(starpu_mpi_checkpoint_template_t cp_t
|
|
|
{
|
|
|
char str[256];
|
|
|
starpu_pthread_mutex_lock(&cp_template->mutex);
|
|
|
- _STARPU_MPI_DEBUG(2, "Start freezing checkpoint id:%d\n", cp_template->cp_template_id);
|
|
|
+ _STARPU_MPI_DEBUG(2, "Start freezing checkpoint id:%d\n", cp_template->cp_id);
|
|
|
cp_template->frozen = 1;
|
|
|
cp_template->message_to_send_number = 0;
|
|
|
cp_template->size = _starpu_mpi_checkpoint_template_item_list_size(&cp_template->list);
|
|
@@ -370,13 +370,13 @@ int _starpu_mpi_checkpoint_template_freeze(starpu_mpi_checkpoint_template_t cp_t
|
|
|
starpu_pthread_mutex_lock(&cp_template_mutex);
|
|
|
for (int i=0 ; i < cp_template_array_size ; i++)
|
|
|
{
|
|
|
- STARPU_ASSERT_MSG(cp_template_array[i]->cp_template_id != cp_template->cp_template_id, "A checkpoint with id %d has already been registered.\n", cp_template->cp_template_id);
|
|
|
+ STARPU_ASSERT_MSG(cp_template_array[i]->cp_id != cp_template->cp_id, "A checkpoint with id %d has already been registered.\n", cp_template->cp_id);
|
|
|
}
|
|
|
cp_template_array[cp_template_array_size] = cp_template;
|
|
|
cp_template_array_size++;
|
|
|
starpu_pthread_mutex_unlock(&cp_template_mutex);
|
|
|
|
|
|
- _STARPU_MPI_DEBUG(2, "Checkpoint id:%d is frozen and registered.\n", cp_template->cp_template_id);
|
|
|
+ _STARPU_MPI_DEBUG(2, "Checkpoint id:%d is frozen and registered.\n", cp_template->cp_id);
|
|
|
return cp_template->size;
|
|
|
}
|
|
|
|