<div dir="ltr"><div>Hi Arash,<br><br></div><div>I'm fairly sure this is an openmpi issue and not a DiFX issue, hence the number of threads should not be important - it is barfing well before the stage of trying to start processing threads.  For some reason, openmpi thinks there are not enough CPUs available to bind processes on your first machine (although there should be, given that you're only allocating 5 processes to it and it has 20 cores).  I know Lupin Liu posted a similar problem about 2 years ago, but when I Iook at that thread there was never a resolution - perhaps Lupin can comment?  (You can search through the difx-users archive for "While computing bindings", and you'll see it).  <br><br></div><div>If you change C.txt to only have one machine enabled (first fringes-difx0, then fringes-difx1), does it work in both cases?  Do you have any funny networking infrastructure like infiniband in parallel with ethernet?  Sometimes mpi gets confused when multiple interfaces are present.<br></div><div><br></div><div>If you can easily do so, I also suggest trying a different version of openmpi.  <br><br></div><div>Cheers,<br></div><div>Adam<br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On 29 June 2017 at 09:21, Arash Roshanineshat <span dir="ltr"><<a href="mailto:arashroshani92@gmail.com" target="_blank">arashroshani92@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Thank you Chris.<br>
<br>
I reduced the number of threads to 5 in the cluster configuration file (C.txt) and the same problem is still there.<br>
<br>
As per your request, I have attached the files to this email.<br>
<br>
"errormon2" does not report anything when I execute startdifx. I mean the output of errormon2 is blank.<br>
<br>
It might be useful to say that, executing "mpispeed", as it was suggested in an archived mail-list email, using the following command and the same configuration files, works correctly. It uses 6 cpus in total in both cluster nodes and returns "done" outputs.<br>
<br>
$ mpirun -np 6 --hostfile /home/arash/Shared_Examples/Ex<wbr>ample2/e17d05-Sm-Sr_1000.machi<wbr>nes /home/arash/difx/bin/mpispeed<br>
<br>
Regarding the large number of threads, If I have understood correctly from NRAO's difx tutorial, MPI should handle the threads(and hyperthreads) automatically. So I chose a large number to use whole system's resources and speed up the difx.<br>
<br>
Best Regards<span class="HOEnZb"><font color="#888888"><br>
<br>
Arash Roshanineshat</font></span><div class="HOEnZb"><div class="h5"><br>
<br>
<br>
On 06/28/2017 07:03 PM, Chris.Phillips@csiro.au wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi Arash,<br>
<br>
Without the full setup, it is basically impossible to debug such problems. We would need to see the .input file and preferably the .v2d and .vex file also.  Also the full output from DIFX for the entire run (use errormon or errormon2)<br>
<br>
Specifically how many antennas are being correlated? Maybe you just have too few DIFX processes.<br>
<br>
Given you are running all the DataStream processes in a single node, I would suggest you probably have too many threads running per core. I doubt that is the problem you are seeing though.<br>
<br>
Actually maybe it is - stardifx maybe is being clever (I don't use it) and not being willing to allocate more than 20 processes (ignore hyperthreads, they tend to be useless for DIFX).  Try changing # threads to, say, 5.<br>
<br>
Cheers<br>
Chris<br>
<br>
______________________________<wbr>__________<br>
From: Difx-users <<a href="mailto:difx-users-bounces@listmgr.nrao.edu" target="_blank">difx-users-bounces@listmgr.nr<wbr>ao.edu</a>> on behalf of Arash Roshanineshat <<a href="mailto:arashroshani92@gmail.com" target="_blank">arashroshani92@gmail.com</a>><br>
Sent: Thursday, 29 June 2017 7:34 AM<br>
To: <a href="mailto:difx-users@listmgr.nrao.edu" target="_blank">difx-users@listmgr.nrao.edu</a><br>
Cc: <a href="mailto:arash.roshanineshat@cfa.harvard.edu" target="_blank">arash.roshanineshat@cfa.harvar<wbr>d.edu</a><br>
Subject: [Difx-users] mpicorrdifx cannot be loaded correctly on more than a     single node<br>
<br>
Hi,<br>
<br>
I could install difx but it can only be run on a single node cluster.<br>
<br>
The *.machines and *.threads files are attached to this email.<br>
<br>
Openmpi is installed on all nodes and difx folder and data folder is<br>
shared among the clusters using NFS filesystem. Difx works perfectly<br>
with correct output on single machines.<br>
<br>
executing "startdifx -v -f e17d05-Sm-Sr_1000.input" returns the<br>
following error:<br>
<br>
DIFX_MACHINES -> /home/arash/Shared_Examples/Ex<wbr>ample2/C.txt<br>
Found modules:<br>
Executing:  mpirun -np 6 --hostfile<br>
/home/arash/Shared_Examples/Ex<wbr>ample2/e17d05-Sm-Sr_1000.machi<wbr>nes --mca<br>
mpi_yield_when_idle 1 --mca rmaps seq  runmpifxcorr.DiFX-2.5<br>
/home/arash/Shared_Examples/Ex<wbr>ample2/e17d05-Sm-Sr_1000.input<br>
------------------------------<wbr>------------------------------<wbr>--------------<br>
While computing bindings, we found no available cpus on<br>
the following node:<br>
<br>
    Node:  fringes-difx0<br>
<br>
Please check your allocation.<br>
------------------------------<wbr>------------------------------<wbr>--------------<br>
Elapsed time (s) = 0.50417590141<br>
<br>
and executing<br>
<br>
$ mpirun -np 6 --hostfile<br>
/home/arash/Shared_Examples/Ex<wbr>ample2/e17d05-Sm-Sr_1000.machi<wbr>nes<br>
/home/arash/difx/bin/mpifxcorr<br>
/home/arash/Shared_Examples/Ex<wbr>ample2/e17d05-Sm-Sr_1000.input<br>
<br>
seems to be working but by observing the cpu usage, I see only 6 cpus<br>
involving "5 in fringes-difx0 and 1 in fringes-difx1". I was expecting<br>
it to use the number of cpus equal to the number in "*.threads" file.<br>
How can I solve this issue?<br>
<br>
the specification of the cluster is Socket=2, Core per Socket=10 and<br>
Threads per core=2.<br>
<br>
Best Regards<br>
<br>
Arash Roshanineshat<br>
<br>
<br>
<br>
<br>
</blockquote>
<br>
</div></div><br>______________________________<wbr>_________________<br>
Difx-users mailing list<br>
<a href="mailto:Difx-users@listmgr.nrao.edu">Difx-users@listmgr.nrao.edu</a><br>
<a href="https://listmgr.nrao.edu/mailman/listinfo/difx-users" rel="noreferrer" target="_blank">https://listmgr.nrao.edu/<wbr>mailman/listinfo/difx-users</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr" style="font-size:12.8000001907349px"><div dir="ltr" style="font-size:12.8px"><div dir="ltr" style="font-size:12.8px"><div dir="ltr" style="font-size:12.8px"><div dir="ltr" style="font-size:12.8px">!=============================================================!<br>Dr. Adam Deller         </div><div dir="ltr" style="font-size:12.8px">ARC Future Fellow, Senior Lecturer</div><div style="font-size:12.8px">Centre for Astrophysics & Supercomputing </div><div dir="ltr" style="font-size:12.8px">Swinburne University of Technology    <br>John St, Hawthorn VIC 3122 Australia</div><div style="font-size:12.8px">phone: +61 3 9214 5307</div><div style="font-size:12.8px">fax: +61 3 9214 8797</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">office days (usually): Mon-Thu<br>!=============================================================!</div></div></div></div></div></div></div></div></div></div></div></div></div></div></div>
</div>