-
-
Notifications
You must be signed in to change notification settings - Fork 61
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
Limit fast initial parsimony tree by random order stepwise addition #18
Comments
Hi Steve, this is a known issue, but there is a workaround. You need to manually set the OMP_NUM_THREADS environment variable. Under Linux, some command line like:
will do the trick. Without defining OMP_NUM_THREADS, all CPU cores will be used. You can increase 1 to higher value but observe how faster (or even slower) it gets. IQ-TREE is just unable to estimate the number of threads for parsimony construction. Once the initial parsimony tree is finished, IQ-TREE will be able to estimate the optimal number of threads and override the OMP_NUM_THREADS parameter. |
Hi Bui, Seems to be working for me, thanks so much! |
This also solves the same problem for me, but I'm wondering if it should really be considered closed since it's a work-around external to IQTREE: I think the real solution would be a fix within IQTREE so the user doesn't have to set OMP_NUM_THREADS? |
on initial parsimony tree when -T AUTO iqtree/iqtree2#18
Is it possible to limit the number of threads that the computer/cluster uses to build the initial parsimony tree at all?
When I send a job with e.g. -T AUTO, IQTREE2 will utilise all available threads, which takes an infinitely long amount of time for the first stage. What I need it to do is analyse the best number of threads for downstream analysis, and then use the same number of threads for all stages.
Does that make sense?
Best wishes,
Steve
The text was updated successfully, but these errors were encountered: