From 1750409d1aafcec7d8ea213624517fe6ab1fc67e Mon Sep 17 00:00:00 2001 From: degomme Date: Wed, 22 Jun 2016 02:09:33 +0200 Subject: [PATCH] have tests passing without smpi --- src/instr/instr_paje_header.cpp | 2 ++ src/instr/instr_paje_trace.cpp | 8 ++++---- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/instr/instr_paje_header.cpp b/src/instr/instr_paje_header.cpp index 6994075d4b..d0b48b1853 100644 --- a/src/instr/instr_paje_header.cpp +++ b/src/instr/instr_paje_header.cpp @@ -164,6 +164,7 @@ static void TRACE_header_PajePushState (int basic, int size) fprintf(tracing_file, "%% Container string\n"); fprintf(tracing_file, "%% Value string\n"); if (size) fprintf(tracing_file, "%% Size int\n"); +#if HAVE_SMPI if (xbt_cfg_get_boolean("smpi/trace-call-location")) { /** * paje currently (May 2016) uses "Filename" and "Linenumber" as @@ -172,6 +173,7 @@ static void TRACE_header_PajePushState (int basic, int size) fprintf(tracing_file, "%% Fname string\n"); fprintf(tracing_file, "%% Lnumber int\n"); } +#endif fprintf(tracing_file, "%%EndEventDef\n"); } diff --git a/src/instr/instr_paje_trace.cpp b/src/instr/instr_paje_trace.cpp index 4ca30af835..4ab700479e 100644 --- a/src/instr/instr_paje_trace.cpp +++ b/src/instr/instr_paje_trace.cpp @@ -223,12 +223,12 @@ void print_pajeSetState(paje_event_t event) { print_default_pajeState_row(event); stream << " " << static_cast(event->data)->value->id; - +#if HAVE_SMPI if (xbt_cfg_get_boolean("smpi/trace-call-location")) { stream << " \"" << static_cast(event->data)->filename << "\" " << static_cast(event->data)->linenumber; } - +#endif print_row(); } @@ -246,12 +246,12 @@ void print_pajePushState(paje_event_t event) { stream << 0; } } - +#if HAVE_SMPI if (xbt_cfg_get_boolean("smpi/trace-call-location")) { stream << " \"" << static_cast(event->data)->filename << "\" " << static_cast(event->data)->linenumber; } - +#endif print_row(); if (static_cast(event->data)->extra != nullptr) { -- 2.20.1