-
Notifications
You must be signed in to change notification settings - Fork 0
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
can't run Raw.filter with multiple cores #2
Comments
Other rules having problems when running with multiple cores:
|
I believe now that the |
So, it kind of works. I added the following to the rules rule ...:
...
resources:
filtering_process = 1 And then called snakemake with snakemake -j16 --resources filtering_process=1 There is even a way to do this without modifying Snakefile: snakemake -j16 --resources filtering_process=1 --set-resources apply_linear_filter:filtering_process=1 Not sure whether there should be |
So, the reason it only kind of works is that while the jobs are not run in parallel, the segmentation fault happens even if a job is run in parallel with another job. I do have a shitty workaround for that: we could set I do not like this workaround though. First, I am not even sure it would work 😄 Second, it pollutes Snakefile and makes it confusing for newcomers. @levchenkoegor, thoughts? |
Actually,
|
Found another flag that might help: snakemake -j16 --resources filtering_process=16 --default-resources filtering_process=1 Again, not sure if this would work but worth a try. If it does work, we would only have to set |
Attempting to run the filtering rule with multiple cores leads to "Python has stopped working" error and nothing is filtered. There is a rule parameter
threads
that limits the number of threads per rule. I think setting it to1
should work but I haven't tested it yet.As to why this happens at all: no idea. I don't even know what we could check or who we could ask (Snakemake, mne-python?). What would a minimal reproducible example look like?
The text was updated successfully, but these errors were encountered: