Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F94256299
mpi_check.h
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Thu, Dec 5, 04:46
Size
640 B
Mime Type
text/x-c
Expires
Sat, Dec 7, 04:46 (2 d)
Engine
blob
Format
Raw Data
Handle
22698481
Attached To
R1448 Lenstool-HPC
mpi_check.h
View Options
#pragma once
#include <mpi.h>
#ifndef MPI_CHECK
#define MPI_CHECK(stmt) \
do \
{ \
const int code = stmt; \
\
if (code != MPI_SUCCESS) \
{ \
char error_string[2048]; \
int length_of_error_string = sizeof(error_string); \
MPI_Error_string(code, error_string, &length_of_error_string); \
\
fprintf(stderr, \
"ERROR!\n" #stmt " mpiAssert: %s %d %s\n", \
__FILE__, __LINE__, error_string); \
fflush(stderr); \
\
MPI_Abort(MPI_COMM_WORLD, code); \
} \
} \
while(0)
#endif
Event Timeline
Log In to Comment