Closed martinruefenacht closed 5 years ago
This happens for both the NULL_NULL and argc_argv case.
The start return variable does not get set correctly. Therefore MPI_SUCCESS != return_variable.value.
I think this is happening: http://math.andrej.com/2009/04/09/pythons-lambda-is-broken/comment-page-1/
When inspecting the memory address of the return variable the one that is pointed is always the same between both tests of Start-End MPI_INIT_MPI_FINALIZE.
Python closures are late-binding! This is a problem...
Using solution from https://docs.python-guide.org/writing/gotchas/#late-binding-closures
This was fixed in pull request #21.
The MPI_Init_MPI_Finalize test with NULL arguments fails occasionally, but with the same actual test code. Something inside LemonSpotter is broken with the detection of the failed condition I think.