query

From: luyang dong (dongluyang2006_at_yahoo.com.cn)
Date: Thu Nov 26 2009 - 03:32:07 PST

  • Next message: rajasekaran.subramanian_at_wipro_dot_com: "OpenMPI + BLCR: Second time checkpoint hangs for MPI application."
    dear teachers:
                  The following program is the callback described in Berkeley Lab's Checkpoint Restart, but I confuse with the cr_checkpoint(0),why does its returning value have two kinds(0 and positive).According to my understanding,my_callback is called when user  Send the application a signal that tells it to checkpoint or when checkpoint is completed.
                                                            thanks a lot   
                                                            best wishes
                                                            Luyang Dong
    my_callback {
    /* cr_checkpoint() returns twice. */
    ret = cr_checkpoint(0);
    if (ret > 0) {
    checkpoint_status = restart;
    } else if (ret == 0) {
    checkpoint_status = continue;
    } else {
    checkpoint_status = error;
    }
    return 0;
    }
     
    
    
          ___________________________________________________________ 
      好玩贺卡等你发,邮箱贺卡全新上线! 
    http://card.mail.cn.yahoo.com/
    

  • Next message: rajasekaran.subramanian_at_wipro_dot_com: "OpenMPI + BLCR: Second time checkpoint hangs for MPI application."