-
Notifications
You must be signed in to change notification settings - Fork 21
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
Parallel access? #5
Comments
Julia model of parallel computing is process based, so structure you parallel program according to that model. Here is quote from LMDB python wrapper docs: "Environments may be opened by multiple processes on the same host, making it ideal for working around Python’s GIL". Python model will work in Julia case: Try to open multiple environments. |
Sorry wildart, I couldn't understand your response. In my code, I am already creating multiple environments (one on each process), i.e., each miniBatchSum() function calls create() followed by and open(env, dbname). Is this what you mean or something else? Thanks! |
Yes, in each process you create environment, like in your |
I'm getting bunch of segfaults on your code. I am going to look at parallel execution closer while I get an overhaul of the wrapper code, #6. |
@haroldsoh I updated package. It works with the above example now (updated example code). |
Is it possible to access a database using parallel julia processes? I'm running into problems with the code below (could be that I'm messing something up). Other than one process, the others seem to hang (perhaps waiting for db access?):
And in ParHelperFuncs.jl
The text was updated successfully, but these errors were encountered: