Skip to content

Commit

Permalink
adding more mpe logging to test_async_perf
Browse files Browse the repository at this point in the history
  • Loading branch information
edhartnett committed Jun 21, 2019
1 parent 5b46dab commit 57f23f2
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions tests/cunit/test_async_perf.c
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,9 @@ char dim_name[NDIM4][PIO_MAX_NAME + 1] = {"unlim", "x", "y", "z"};

#define NUM_VAR_SETS 2

/* How long to sleep for "calculation time". */
#define SLEEP_SECONDS 3

#ifdef USE_MPE
/* This array holds even numbers for MPE. */
int test_event[2][TEST_NUM_EVENTS];
Expand Down Expand Up @@ -216,6 +219,22 @@ run_darray_async_test(int iosysid, int fmt, int my_rank, int ntasks, int niotask
test_stop_mpe_log(TEST_DARRAY_WRITE, msg);
}
#endif /* USE_MPE */

/* Now do some calculations. */
#ifdef USE_MPE
test_start_mpe_log(TEST_CALCULATE);
#endif /* USE_MPE */

/* Sleep some seconds away. */
sleep(SLEEP_SECONDS);

#ifdef USE_MPE
{
char msg[MPE_MAX_MSG_LEN + 1];
sprintf(msg, "timestep %d", t);
test_stop_mpe_log(TEST_CALCULATE, msg);
}
#endif /* USE_MPE */
}

/* Close the file. */
Expand Down

0 comments on commit 57f23f2

Please sign in to comment.