Why iq-tree not speedup on cluster environment?

201 views
Skip to first unread message

Chang Ye

unread,
Sep 27, 2018, 2:26:44 AM9/27/18
to IQ-TREE



I submit iq-tree job to a slurm cluster environment with this command:


#!/bin/bash


#SBATCH --nodes=16

#SBATCH --cpus-per-task=24

#SBATCH --partition=work



srun
-n 8 -N 8 -c 24 iqtree -nt AUTO -s file1.fa  -bb 2000 &

srun
-n 8 -N 8 -c 24 iqtree -nt AUTO -s file2.fa  -bb 2000 &


The iqtree binary is compiled with omp-mpi option.

I expect iq-tree to use 8*24 = 192 (CPUs), but iqtree show this message in log file.


NOTE: 1665 MB RAM (1 GB) is required!


Measuring multi-threading efficiency up to 24 CPU cores

2 trees examined

Threads: 1 / Time: 38.875 sec / Speedup: 1.000 / Efficiency: 100% / LogL: -602418

Threads: 2 /
Time: 62.595 sec / Speedup: 0.910 / Efficiency: 46% / LogL: -708891

BEST NUMBER OF THREADS
: 1


After submit the job, I login to the computation node find out the CPU load is ultra low. It seems that iqtree is not speedup on mpi run.


DeepinScreenshot_select-area_20180927140933.png

Minh Bui

unread,
Sep 28, 2018, 4:57:30 AM9/28/18
to IQ-TREE, Chang Ye
Hi Chang,

The student who initiated the MPI feature left the project, so it’s not well tested. I’m not sure if -nt AUTO option works with MPI… Please specify the number of threads.

Thanks, Minh


--
You received this message because you are subscribed to the Google Groups "IQ-TREE" group.
To unsubscribe from this group and stop receiving emails from it, send an email to iqtree+un...@googlegroups.com.
To post to this group, send email to iqt...@googlegroups.com.
Visit this group at https://groups.google.com/group/iqtree.
For more options, visit https://groups.google.com/d/optout.
<DeepinScreenshot_select-area_20180927140933.png>

Chang Ye

unread,
Sep 28, 2018, 5:44:31 AM9/28/18
to Minh Bui, IQ-TREE
Thanks for the info. 

But I wonder why the speedup fold value is lower than 1 when multiple thread is used.

Speedup: 0.910

Minh Bui

unread,
Sep 28, 2018, 6:15:41 AM9/28/18
to Chang Ye, IQ-TREE
Yes it looks weird indeed, but as said the combination of -nt AUTO and MPI might not work.

Cheers, Minh

Chang Ye

unread,
Sep 28, 2018, 6:21:27 AM9/28/18
to Minh Bui, IQ-TREE

Ok, I’ll adjust the -nt argument and report the performance here.

Reply all
Reply to author
Forward
0 new messages