Skip to content
Snippets Groups Projects
Commit 5ef4ea17 authored by Nic Henke's avatar Nic Henke
Browse files

change function declarations to correctly reflect the MPI_Abort exiting, remove

exits. this is what should have been done in the first place...yeah.
parent 1c69f318
No related branches found
No related tags found
No related merge requests found
...@@ -49,7 +49,7 @@ void usage(char *prog) ...@@ -49,7 +49,7 @@ void usage(char *prog)
} }
/* Print process rank, loop count, message, and exit (i.e. a fatal error) */ /* Print process rank, loop count, message, and exit (i.e. a fatal error) */
int rprintf(int rank, int loop, const char *fmt, ...) void rprintf(int rank, int loop, const char *fmt, ...)
{ {
va_list ap; va_list ap;
...@@ -60,7 +60,6 @@ int rprintf(int rank, int loop, const char *fmt, ...) ...@@ -60,7 +60,6 @@ int rprintf(int rank, int loop, const char *fmt, ...)
vprintf(fmt, ap); vprintf(fmt, ap);
MPI_Abort(MPI_COMM_WORLD, 1); MPI_Abort(MPI_COMM_WORLD, 1);
exit(1);
} }
int main(int argc, char *argv[]) int main(int argc, char *argv[])
......
...@@ -26,7 +26,7 @@ ...@@ -26,7 +26,7 @@
#define CHUNK_MAX_SIZE 123456 #define CHUNK_MAX_SIZE 123456
int rprintf(int rank, int loop, const char *fmt, ...) void rprintf(int rank, int loop, const char *fmt, ...)
{ {
va_list ap; va_list ap;
...@@ -37,7 +37,6 @@ int rprintf(int rank, int loop, const char *fmt, ...) ...@@ -37,7 +37,6 @@ int rprintf(int rank, int loop, const char *fmt, ...)
vprintf(fmt, ap); vprintf(fmt, ap);
MPI_Abort(MPI_COMM_WORLD, 1); MPI_Abort(MPI_COMM_WORLD, 1);
exit(1);
} }
int main (int argc, char *argv[]) { int main (int argc, char *argv[]) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment