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

CD-hit threads limit #211

Merged
merged 4 commits into from
Nov 26, 2015

Conversation

andrewjpage
Copy link
Member

Its been reported that CD-hit crashes when its given more than ~50 threads. This PR introduces a hard limit of 40 to be on the safe side.
Also labels in the roary_plots.py & R scripts have been made consistent with the other figures.

andrewjpage added a commit that referenced this pull request Nov 26, 2015
@andrewjpage andrewjpage merged commit dbc46e8 into sanger-pathogens:master Nov 26, 2015
@tseemann
Copy link
Contributor

Hmmm, I use it with 72 threads all the time. Never had it crash. Could be a rare race condition.

@andrewjpage
Copy link
Member Author

If you run cd-hit directly:

$ cd-hit  -i example.fa -o output -T 72

do you get this error message:

Option -T is ignored: multi-threading with OpenMP is NOT enabled!

Certainly on the system I'm using you have to compile cd-hit differently to get multi-threading support, the default appears to be to be sequential.

@tseemann
Copy link
Contributor

Yes it works for me.

Program: CD-HIT, V4.6 (+OpenMP), Oct 17 2015, 11:00:53

It's because I use the homebrew-science to install it, which enables OpenMP.

    args = (ENV.compiler == :clang) ? [] : ["openmp=yes"]

The message you get isn't an error - but just a warning?

The default for -T is to use all available CPUs. Might only be true for OpenMP mode.

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.

None yet

2 participants