Commit 50161f32 authored by Junchao Zhang's avatar Junchao Zhang
Browse files

Revise the test to add MPI_T_PVAR_ALL_HANDLES


Signed-off-by: default avatarAntonio J. Pena <apenya@mcs.anl.gov>
parent c1a3c229
......@@ -518,6 +518,8 @@ int perfvarReadInt(int pvarIndex, int isContinuous, int *found)
MPI_T_pvar_handle pvarHandle;
MPI_T_pvar_session_create(&session);
MPI_T_pvar_handle_alloc(session, pvarIndex, NULL, &pvarHandle, &count);
MPI_T_pvar_start(session, MPI_T_PVAR_ALL_HANDLES);
MPI_T_pvar_stop(session, MPI_T_PVAR_ALL_HANDLES);
if (count == 1) {
*found = 1;
if (!isContinuous) {
......@@ -554,6 +556,8 @@ unsigned int perfvarReadUint(int pvarIndex, int isContinuous, int *found)
*found = 0;
MPI_T_pvar_session_create(&session);
MPI_T_pvar_handle_alloc(session, pvarIndex, NULL, &pvarHandle, &count);
MPI_T_pvar_start(session, MPI_T_PVAR_ALL_HANDLES);
MPI_T_pvar_stop(session, MPI_T_PVAR_ALL_HANDLES);
if (count == 1) {
*found = 1;
if (!isContinuous) {
......@@ -589,6 +593,8 @@ double perfvarReadDouble(int pvarIndex, int isContinuous, int *found)
*found = 0;
MPI_T_pvar_session_create(&session);
MPI_T_pvar_handle_alloc(session, pvarIndex, NULL, &pvarHandle, &count);
MPI_T_pvar_start(session, MPI_T_PVAR_ALL_HANDLES);
MPI_T_pvar_stop(session, MPI_T_PVAR_ALL_HANDLES);
if (count == 1) {
*found = 1;
if (!isContinuous) {
......
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