Skip to content
Snippets Groups Projects
Commit b6ea8a14 authored by Peter W. Draper's avatar Peter W. Draper
Browse files

Attempt at using a technique that uses the local memory buffers instead of a...

Attempt at using a technique that uses the local memory buffers instead of a large receive buffer per subtype
parent 5d810c1b
No related branches found
No related tags found
1 merge request!10Draft: Ragged one side registered buffers.
CFLAGS = -g -O0 -Wall
#CFLAGS = -g -O0 -Wall -std=gnu11 -fsanitize=address -fno-omit-frame-pointer
CFLAGS = -g -O0 -Wall -std=gnu11
all: swiftmpistepsim swiftmpifakestepsim
......
......@@ -5,18 +5,32 @@
extern int myrank;
/* Exit in error macro. */
#define error(s, ...) \
({ \
fflush(stdout); \
fprintf(stderr, "[%03i] %s %s:%s():%i: " s "\n", myrank, \
#define error(s, ...) \
({ \
fflush(stdout); \
fprintf(stderr, "[%03i] %s %s:%s():%i: " s "\n", myrank, \
clocks_get_timesincestart(), __FILE__, __FUNCTION__, __LINE__, \
##__VA_ARGS__); \
MPI_Abort(MPI_COMM_WORLD, -1); \
##__VA_ARGS__); \
MPI_Abort(MPI_COMM_WORLD, -1); \
})
/* Print a message */
#define message(s, ...) \
({ \
#define message(s, ...) \
({ \
printf("[%04i] %s %s: " s "\n", myrank, clocks_get_timesincestart(), \
__FUNCTION__, ##__VA_ARGS__); \
__FUNCTION__, ##__VA_ARGS__);fflush(stderr);fflush(stdout); \
})
/* Print MPI error string. */
#define mpi_error_message(res, s, ...) \
({ \
fflush(stdout); \
fprintf(stderr, "[%04i] %s %s:%s():%i: " s "\n", myrank, \
clocks_get_timesincestart(), __FILE__, __FUNCTION__, __LINE__, \
##__VA_ARGS__); \
int len = 1024; \
char buf[len]; \
MPI_Error_string(res, buf, &len); \
fprintf(stderr, "%s\n\n", buf); \
})
......@@ -82,6 +82,12 @@ struct mpiuse_log_entry {
/* Minimum time in a test. */
ticks tmin;
/* Remote offset. */
MPI_Aint offset;
/* Local log index, should be global. */
size_t index;
};
/* Flags for the types of request when generating fakes. */
......
This diff is collapsed.
File deleted
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment