Skip to content

Commit

Permalink
Allow the PVARs to be written as requested by the MPI standard.
Browse files Browse the repository at this point in the history
  • Loading branch information
bosilca committed Sep 25, 2015
1 parent cd0ed36 commit 9e6a8e9
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions opal/mca/base/mca_base_pvar.c
Original file line number Diff line number Diff line change
Expand Up @@ -707,16 +707,15 @@ int mca_base_pvar_handle_write_value (mca_base_pvar_handle_t *handle, const void
return OPAL_ERR_PERM;
}

/* TODO -- actually write the variable. this will likely require a pvar lock */
/* write the value directly from the variable. */
ret = handle->pvar->set_value (handle->pvar, value, handle->obj_handle);

ret = mca_base_pvar_handle_update (handle);
if (OPAL_SUCCESS != ret) {
return ret;
}

memmove (handle->current_value, value, handle->count * var_type_sizes[handle->pvar->type]);
/* read the value directly from the variable. */
ret = handle->pvar->set_value (handle->pvar, value, handle->obj_handle);

return OPAL_SUCCESS;
}
Expand Down

0 comments on commit 9e6a8e9

Please sign in to comment.