コード例 #1
0
ファイル: chpl-comm-diags.c プロジェクト: chapel-lang/chapel
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;
}
コード例 #2
0
ファイル: chpl-comm-diags.c プロジェクト: chapel-lang/chapel
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();
}
コード例 #3
0
ファイル: chpl-comm-diags.c プロジェクト: chapel-lang/chapel
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();
}
コード例 #4
0
ファイル: chpl-comm.c プロジェクト: AlwaysTraining/chapel
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();
}
コード例 #5
0
ファイル: chpl-comm.c プロジェクト: DawidvC/chapel
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();
}
コード例 #6
0
ファイル: chpl-comm-diags.c プロジェクト: chapel-lang/chapel
void chpl_comm_stopDiagnosticsHere() {
  // Make sure that there are no pending communication operations.
  chpl_rmem_consist_release(0, 0);

  chpl_comm_diagnostics = 0;
}