Skip to content

Conversation

@hjelmn
Copy link
Member

@hjelmn hjelmn commented Apr 9, 2015

This commit fixes a bug when opal_error_init is called with the same
values multiple times. If opal_error_init is called too many times it
will start failing with OPAL_ERR_OUT_OF_RESOURCE. To fix the problem
check if an existing convertor matching the requested one and return
that one instead.

Signed-off-by: Nathan Hjelm hjelmn@lanl.gov

This commit fixes a bug when opal_error_init is called with the same
values multiple times. If opal_error_init is called too many times it
will start failing with OPAL_ERR_OUT_OF_RESOURCE. To fix the problem
check if an existing convertor matching the requested one and return
that one instead.

Signed-off-by: Nathan Hjelm <hjelmn@lanl.gov>
@hjelmn
Copy link
Member Author

hjelmn commented Apr 9, 2015

With this commit and either #516 or #517 the following code now works:

for (int i = 0 ; i < 100000 ; ++i) {
    int provided;
    MPI_T_init_thread (MPI_THREAD_SINGLE, &provided);
    MPI_T_finalize ();
}

Not sure why anyone would want to do this but it is allowed by MPI-3.0.

@mellanox-github
Copy link

Refer to this link for build results (access rights to CI server needed):
http://bgate.mellanox.com/jenkins/job/gh-ompi-master-pr/427/
Test PASSed.

hjelmn added a commit that referenced this pull request Apr 9, 2015
opal/util/error: check for existing converter for error range
@hjelmn hjelmn merged commit f27bf45 into open-mpi:master Apr 9, 2015
jsquyres pushed a commit to jsquyres/ompi that referenced this pull request Nov 10, 2015
@hjelmn hjelmn deleted the opal_err_fix branch May 23, 2016 17:44
markalle pushed a commit to markalle/ompi that referenced this pull request Sep 12, 2020
shmat/shmdt additions for patcher
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants