Commit cb31e7d0 authored by Kevin Harms's avatar Kevin Harms
Browse files

Add file to print out sizes of apmpi structures

parent d02a4ea6
......@@ -19,3 +19,5 @@ lib/darshan-apmpi.o: lib/darshan-apmpi.c lib/darshan-apmpi-utils.h darshan.h dar
lib/darshan-apmpi.po: lib/darshan-apmpi.c lib/darshan-apmpi-utils.h darshan.h darshan-dynamic.h darshan-common.h $(DARSHAN_LOG_FORMAT) darshan-apmpi-log-format.h | lib
$(CC) $(CFLAGS_SHARED) -c $< -o $@
print-apmpi-size: print-apmpi-size.c $(DARSHAN_LOG_FORMAT) $(srcdir)/../modules/autoperf/apmpi/darshan-apmpi-log-format.h
$(CC) $(CFLAGS) -g -O0 -o $@ $<
#include <stdio.h>
#include "darshan-log-format.h"
#include "darshan-apmpi-log-format.h"
int main (int argc, char **argv)
{
printf ("APMPI_NUM_INDICES = %d\n", APMPI_NUM_INDICES);
printf ("APMPI_F_NUM_INDICES = %d\n", APMPI_F_NUM_INDICES);
printf ("sizeof darshan_apmpi_perf_record = %d\n", sizeof(struct darshan_apmpi_perf_record));
return 0;
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment