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

4/5000 Multiple threads #8

Open
liqianghou2022 opened this issue Feb 26, 2025 · 1 comment
Open

4/5000 Multiple threads #8

liqianghou2022 opened this issue Feb 26, 2025 · 1 comment

Comments

@liqianghou2022
Copy link

Hello, I would like to know if tree-qmc software supports multi-threading when merging gene trees?

@ekmolloy
Copy link
Member

There is a parallel version of TREE-QMC (fork); however, it is still undergoing testing. You can use the fork with the following instructions:

  1. Download code:
git clone https://github.com/ParAlg/TREE-QMC

2 Compile code:

cd TREE-QMC
g++ -std=c++17 -O3 -I external/MQLib/include -I external/toms743 -I external/parlaylib/include -o tree-qmc -pthread -mcx16 -march=native src/*.cpp external/toms743/toms743.cpp external/MQLib/bin/MQLib.a -lm -DVERSION=\"$(cat version.txt)\"

3 Export the number of threads n you want to use, for example

export PARLAY_NUM_THREADS=n

in bash.

  1. Run code with the usual command options (although there is currently no support for -w f). If it's working, you should see "Parlay time" in the output - https://github.com/ParAlg/TREE-QMC/blob/main/test_parallel_192

If you have issues, please post here. We can keep you posted about testing.

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

No branches or pull requests

2 participants