Commit 9fd13f2a authored by Sudheer Chunduri's avatar Sudheer Chunduri
Browse files

add version field in APMPI header record

parent a2d5883d
......@@ -10,7 +10,7 @@
#define MPI_MAX_PROCESSOR_NAME 128
#endif
/* current AutoPerf MPI log format version */
#define APMPI_VER 1
#define APMPI_VER 0.1
#define APMPI_MAGIC ('A'*0x100000000+\
'P'*0x1000000+\
......@@ -238,6 +238,7 @@ struct darshan_apmpi_header_record
{
struct darshan_base_record base_rec;
int64_t magic;
float version;
double apmpi_f_variance_total_mpitime;
double apmpi_f_variance_total_mpisynctime;
};
......
......@@ -411,6 +411,7 @@ void apmpi_runtime_initialize()
apmpi_runtime->header_record->base_rec.id = apmpi_runtime->header_id;
apmpi_runtime->header_record->base_rec.rank = my_rank;
apmpi_runtime->header_record->magic = APMPI_MAGIC;
apmpi_runtime->header_record->version = APMPI_VERSION;
}
apmpi_runtime->rec_id = darshan_core_gen_record_id("APMPI"); //record name
......
......@@ -19,6 +19,7 @@ struct darshan_apmpi_header_record
{
struct darshan_base_record base_rec;
int64_t magic;
float version;
double apmpi_f_variance_total_mpitime;
double apmpi_f_variance_total_mpisynctime;
};
......@@ -53,6 +54,7 @@ def log_get_apmpi_record(log, mod_type, dtype='dict'):
rec['id'] = hdr[0].base_rec.id
rec['rank'] = hdr[0].base_rec.rank
rec['magic'] = hdr[0].magic
rec['version'] = hdr[0].version
rec['variance_total_mpitime'] = hdr[0].apmpi_f_variance_total_mpitime
rec['variance_total_mpisynctime'] = hdr[0].apmpi_f_variance_total_mpisynctime
else:
......
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