Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Documentation of Python model life-cycle and Python library configuration #12

Open
zhwu95 opened this issue Oct 18, 2023 · 0 comments
Open
Assignees
Labels
enhancement New feature or request

Comments

@zhwu95
Copy link

zhwu95 commented Oct 18, 2023

Is your feature request related to a problem? Please describe.

When I'm integrating simics into SST as a separate thread alongside the main component thread, I encountered a deadlock where simics is trying to acquire the Python GIL.
After digging into it a bit more, I found that it is likely due to Py_Finalize() not being called by default, and the calling of it must be enabled through the setCallPythonFinalize module method (here).

I understand that you are experimenting some features and hence it is not called by default, but I believe that this behavior should be documented lest someone spends their time on this later on.

Describe the solution you'd like
Some explanations/clarifications about the use of python models and their life cycle in the sst-core document would be quite helpful.

Describe alternatives you've considered
N/A

Additional context
N/A

@zhwu95 zhwu95 added the enhancement New feature or request label Oct 18, 2023
@gvoskuilen gvoskuilen transferred this issue from sstsimulator/sst-core Oct 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants