prism-em / prismatic

C++/CUDA package for parallelized simulation of image formation in Scanning Transmission Electron Microscopy (STEM) using the PRISM and multislice algorithms
GNU General Public License v3.0
79 stars 40 forks source link

Can't stop a job #40

Open sparsecoder opened 6 years ago

sparsecoder commented 6 years ago

On Windows 10 running GUI version I ran a job that I decided was to large part way through. I closed the progress dialog to try to cancel the job. The dialog closed but my machine was still working on the problem. I couldn't close the main window. Ctlr-C in the command prompt hiding behind prism gave a response about not able to join threads from a separate process. I closed the command prompt window, but the job still persisted for a while.

alex-rakowski commented 3 years ago

Look into graceful ways to leave by sending a kill signal to worker thread, and copy of the parent thread. If so where are good abort points for the simulation e.g. after potential, in between frozen phonons