-
Notifications
You must be signed in to change notification settings - Fork 123
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
Error, couln't get the current entry info #28
Comments
@tgy sorry for this long delay. Are you using one instance of Zipper for each file or are you using the same instance of zipper for all of your files and lock one file at a time for zipping it? I'm not sure internal states of Zipper classes are thread-safe neither if they are not correctly restored after each usage. In addition, I'm not sure that your critical section will help you earning time because each file will be zipped sequentially. I would suggest you to create one instance of Zipper by file and call your omp loop with no critical section because states of classes are not shared for two threads. This library definitively needs more unit tests. |
Thanks for you reply. This was a long time ago and I somehow fixed it in the mean time. Probably you can close this issue. |
Hi tgy, how did u deal with this problem. I also meet with similar problems when using openmp with it. |
On 30.04.2021 12:47, xiao2mo wrote:
Hi tgy, how did u deal with this problem. I also meet with similar
problems when using openmp with it.
I'm really sorry but I have no idea now :-/ It was a long time ago, and
even at the time I did not know exactly what fixed it.. Good luck!
…--
Valentin
|
Could be nice, if possible, to show an extract of the code this could be added in the README |
I have a C++ program that does computations on several hundreds of data files. Once a computation on one data file is over, I use zipper to save the results inside of a zip file. I create a new file in the zip for every processed data file.
To speed up the computations, I use OpenMP for parallelism. But of course, I put the part of the code that opens and closes the zip file to add new results inside of a
#pragma omp critical
section. This makes sure that only one single thread at a time is modifying the zip file.Though, every once in a while (but quite frequently), the "Error, couldn't get the current entry info" is raised. I don't know why and would like to know more about what it means and if it could be related to my multi-threaded processing.
The error "Error, couldn't get the current entry info" is thrown here.
The text was updated successfully, but these errors were encountered: