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

Make parallel merge even more robust #8

Merged
merged 1 commit into from
Apr 29, 2024
Merged

Conversation

zauster
Copy link

@zauster zauster commented Mar 25, 2024

Hey,

my previous change made it possible to use merge_pdfs in parallel with several Julia worker threads working in parallel.

However, what if you are running Julia processes in parallel with one thread each? Then the previous addition with myid() won't help. So I added another identifier based on the PID of the Julia process (getpid()).

I hope this should now cover all cases:

  • one Julia process, several parallel worker processes
  • several parallel Julia processes, one thread each
  • several parallel Julia processes, several parallel threads each

I admit I haven't tested the last point though.

Use a combination of current PID and worker id to create a unique
file identifier.
@scheidan
Copy link
Owner

Thanks a lot for this improvement - very much appreciated! Sorry that it took so long to merge.

@scheidan scheidan merged commit 1110b1e into scheidan:main Apr 29, 2024
@zauster
Copy link
Author

zauster commented Apr 29, 2024

No worries, thanks for maintaining this very helpful package!

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

Successfully merging this pull request may close these issues.

3 participants