Skip to content
Snippets Groups Projects
Commit 740069b8 authored by James Willis's avatar James Willis
Browse files

Display MPI rank information in print statements.

parent d8aa0ef9
No related branches found
No related tags found
1 merge request!578Swift velociraptor
...@@ -205,7 +205,7 @@ void velociraptor_invoke(struct engine *e) { ...@@ -205,7 +205,7 @@ void velociraptor_invoke(struct engine *e) {
e->time); e->time);
} }
if(!InvokeVelociraptor(nr_gparts, nr_hydro_parts, gparts, parts, internal_energies, cell_node_ids, outputFileName)) error("Exiting. Call to VELOCIraptor failed."); if(!InvokeVelociraptor(nr_gparts, nr_hydro_parts, gparts, parts, internal_energies, cell_node_ids, outputFileName)) error("Exiting. Call to VELOCIraptor failed on rank: %d.", e->nodeID);
/* Reset the pthread affinity mask after VELOCIraptor returns. */ /* Reset the pthread affinity mask after VELOCIraptor returns. */
pthread_setaffinity_np(thread, sizeof(cpu_set_t), engine_entry_affinity()); pthread_setaffinity_np(thread, sizeof(cpu_set_t), engine_entry_affinity());
...@@ -213,6 +213,6 @@ void velociraptor_invoke(struct engine *e) { ...@@ -213,6 +213,6 @@ void velociraptor_invoke(struct engine *e) {
/* Free cell node ids after VELOCIraptor has copied them. */ /* Free cell node ids after VELOCIraptor has copied them. */
free(cell_node_ids); free(cell_node_ids);
message("VELOCIraptor took %.3f %s", message("VELOCIraptor took %.3f %s on rank %d.",
clocks_from_ticks(getticks() - tic), clocks_getunit()); clocks_from_ticks(getticks() - tic), clocks_getunit(), e->nodeID);
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment