-
-
Notifications
You must be signed in to change notification settings - Fork 208
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
Trouble with alive_bar in a mpi application #79
Comments
Hey @alentner, thank you. Please, give me some context, what is an "mpi environment"? Well, I'd guess it is not reporting itself as tty enabled. |
The mpi thing ...MPI (Message Passing Interface) is a standard for developming portable message-passing programs in C, C++, and Fortran. Specifically it is widely used to develop and run SIMD (single instruction multiple data) parallel programs for HPC (high performance computing) and other computationally intensive applications. An MPI program is launched by 'mpirun' where options such as the number of parallel processes desired (e.g., -n [int]) is specified. The MPI implementation being used (e.g., openMPI) then sets up the appropriate communications (e.g., the TCP/IP network stack or an Infiniband implementation) and launches the application code in parallel. In this case, there is a python package which supports using the MPI library from within python, mpi4pi. The confusing bit ...I had a very similar thought that the python interpreter when launched by the MPI runtime does not register the stdout or stderr as a proper tty. I have tested the example above passing What is really perplexing to me is that the show_bars() method properly outputs to the terminal but the alive_bar does not, when run with
Please let me know if I can further assist in any way. The other students in my research group very much appreciate the useful and visually appealing progress information I am able to provide in my projects by using alive-progress! I detest having to revert back to simple text driven messages and logging for execution in parallel (spoiled by all those 'astonishing animations') Thank you, |
Hey @alentner, I'm very sorry I forgot to reply to you! Of course now I need to read it again... |
Hey @rsalmei, I very much like the updates to alive-progress!!! I have checked back on this simple example to see if version 3 suffers from similar issues. Using an updated minimal example:
What is now perplexing to me is that there is output to the terminal but the progress bar clips the last several characters when run under an MPI enviornment. For example:
Finally, as noted above, there does not seem to be an option to provide Anyway, thanks for all the hard work, it looks great. If you have any ideas why the last few characters would be clipped, that would be appreciated. Thanks, |
I really enjoy using alive_progress in my projects; however, I am having trouble when used in a mpi environment.
Please see the following minimal example; works if executed as 'python3 test.py' and fails as 'mpirun -n 4 test.py':
The text was updated successfully, but these errors were encountered: