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

Explore possibility of swapping backends (xcale) #74

Open
leofang opened this issue Jan 29, 2020 · 1 comment
Open

Explore possibility of swapping backends (xcale) #74

leofang opened this issue Jan 29, 2020 · 1 comment
Milestone

Comments

@leofang
Copy link
Collaborator

leofang commented Jan 29, 2020

Today @PabloEnfedaque flashed me quickly how xcale works and launches, and I realized it might be possible to use xcale as an alternative backend for our GUI. However, I overlooked there are a few more things to be done for the visualization purpose. Let me try to make a list of tasks toward this possibility. (Not saying we should do this, but it'd be a really good capability to have.)

On the frontend:

  • need to come up with a "dictionary" translating between our inputs and file format and that of xcale's (we'll have to do this for this week's CSX experiment anyway)
  • need to generate correctly the corresponding mpirun -n X command to launch xcale MPI processes (might be easier to write a separate worker class for xcale??)
  • need to have a drop-down menu to select a backend (which defaults to nsls2ptycho)
  • need to add a bunch of signals and guards to handle the behavior of existing buttons when xcale is selected (THIS IS THE MOST DIFFICULT TASK)

On the backend (requiring some code added in xcale; this is the part I overlooked):

  • need a bool flag to tell whether ptycho_gui is operational or not
  • need to have an optional dependency on posix_ipc (rel: Migrate from posix_ipc to built-in shared_memory for Python 3.8+ #71) for using shared memory
  • need to print a formatted stdout so that the frontend can catch the signals
  • need to write live results to shared memory for monitoring visually
  • (not sure) need to write post-processed results in a certain format so that the frondend can pick up at the end of reconstruction

cc: @stuartcampbell @xiaojinghuang @wen-hu

@leofang leofang changed the title Explore possibility of swapping backends (xscale) Explore possibility of swapping backends (xcale) Jan 29, 2020
@leofang
Copy link
Collaborator Author

leofang commented Jan 29, 2020

might need to figure out if xcale needs to parse ptycho_gui's input text file...

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

No branches or pull requests

1 participant