File tree Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Original file line number Diff line number Diff line change @@ -408,6 +408,7 @@ PREFIX (finalize) (void)
408
408
{
409
409
* img_status = STAT_STOPPED_IMAGE ; /* GFC_STAT_STOPPED_IMAGE = 6000 */
410
410
MPI_Win_sync (* stat_tok );
411
+
411
412
MPI_Barrier (CAF_COMM_WORLD );
412
413
413
414
while (caf_static_list != NULL )
@@ -445,6 +446,7 @@ PREFIX (finalize) (void)
445
446
pthread_mutex_lock (& lock_am );
446
447
caf_is_finalized = 1 ;
447
448
pthread_mutex_unlock (& lock_am );
449
+ exit (0 );
448
450
}
449
451
450
452
@@ -2482,6 +2484,25 @@ error_stop (int error)
2482
2484
exit (error );
2483
2485
}
2484
2486
2487
+ /* STOP function for integer arguments. */
2488
+ void
2489
+ PREFIX (stop_numeric ) (int32_t stop_code )
2490
+ {
2491
+ fprintf (stderr , "STOP %d\n" , stop_code );
2492
+ PREFIX (finalize ) ();
2493
+ }
2494
+
2495
+ /* STOP function for string arguments. */
2496
+ void
2497
+ PREFIX (stop_str ) (const char * string , int32_t len )
2498
+ {
2499
+ fputs ("STOP " , stderr );
2500
+ while (len -- )
2501
+ fputc (* (string ++ ), stderr );
2502
+ fputs ("\n" , stderr );
2503
+
2504
+ PREFIX (finalize ) ();
2505
+ }
2485
2506
2486
2507
/* ERROR STOP function for string arguments. */
2487
2508
You can’t perform that action at this time.
0 commit comments