Closed e-carlin closed 1 year ago
I think what you are seeing is that all classes and objects that hold Kokkos objects have to be destroyed either by going out-of-scope or explicit del in Python before the program terminates. It looks like you are trying to sneak sim object out of the run() into the top level.
Aha, thanks @egstern. So it is about the scoping. I guess I'll modify the generation code to cope the variables or do a del. I appreciate the speedy reply.
Hi - I'm running into a core dump issue using synergia. It seems to depend on the scope of the simulation and/or lattice variables.
Steps to reproduce:
apply the below patch to the wiki example. This patch is a simple contrived example to show the bug. In reality I have code generating a simulation and it generates a script with all code at the outer most scope of the script (no functions).
return sim
def main():
try:
-main() +sim = main()
Turning on DEBUG level logging in the simlog object doesn't yield any additional information about the possible cause.
Do you have any idea what might be causing this? Is there a way to resolve it?
Let me know if I can provide more info. Thanks for your help.