Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F94933925
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
Wed, Dec 11, 12:40
Size
640 B
Mime Type
text/x-c
Expires
Fri, Dec 13, 12:40 (1 d, 21 h)
Engine
blob
Format
Raw Data
Handle
22899562
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