Ejemplo n.º 1
0
void chpl_comm_startDiagnosticsHere(chpl_bool print_unstable) {
  chpl_comm_diags_print_unstable = (print_unstable == true);

  // Make sure that there are no pending communication operations.
  chpl_rmem_consist_release(0, 0);

  chpl_comm_diagnostics = 1;
}
Ejemplo n.º 2
0
void chpl_comm_stopDiagnostics() {
  // Make sure that there are no pending communication operations.
  chpl_rmem_consist_release(0, 0);

  chpl_comm_diagnostics = 0;
  chpl_comm_diags_disable();
  chpl_comm_bcast_rt_private(chpl_comm_diagnostics);
  chpl_comm_diags_enable();
}
Ejemplo n.º 3
0
void chpl_comm_startDiagnostics(chpl_bool print_unstable) {
  chpl_comm_diags_print_unstable = (print_unstable == true);
  if (pthread_once(&bcastPrintUnstable_once, broadcast_print_unstable) != 0) {
    chpl_internal_error("pthread_once(&bcastPrintUnstable_once) failed");
  }

  // Make sure that there are no pending communication operations.
  chpl_rmem_consist_release(0, 0);

  chpl_comm_diagnostics = 1;
  chpl_comm_diags_disable();
  chpl_comm_bcast_rt_private(chpl_comm_diagnostics);
  chpl_comm_diags_enable();
}
Ejemplo n.º 4
0
void chpl_gen_stopCommDiagnosticsHere(void) {
  // Make sure that there are no pending communication operations.
  chpl_rmem_consist_release(__LINE__, __FILE__);
  // And then stop the comm diagnostics as usual.
  chpl_stopCommDiagnosticsHere();
}
Ejemplo n.º 5
0
void chpl_gen_startCommDiagnosticsHere(void) {
  // Make sure that there are no pending communication operations.
  chpl_rmem_consist_release(0, 0);
  // And then start the comm diagnostics as usual.
  chpl_startCommDiagnosticsHere();
}
Ejemplo n.º 6
0
void chpl_comm_stopDiagnosticsHere() {
  // Make sure that there are no pending communication operations.
  chpl_rmem_consist_release(0, 0);

  chpl_comm_diagnostics = 0;
}