[mpich-discuss] discuss Digest, Vol 8, Issue 37

Antonio J. Peña apenya at mcs.anl.gov
Sun Jun 23 18:54:38 CDT 2013


Sufeng,

The correct way is to use the MPI_Init_thread function with 
MPI_THREAD_MULTIPLE. This will tell the MPI implementation to be thread 
safe. It supports OpenMP and Posix Threads (OpenMP primitives in most 
systems are likely to be implemented on top of PThreads).

Antonio


On Sunday, June 23, 2013 11:13:31 AM Sufeng Niu wrote:


Hi, Antonio


Thanks a lot for your reply, I just figure out that is the firewall issue. after I 
set the firewall. it works now. Thanks again. 


But I still got a few questions on MPI and multithreads mixed programming. 
Currently, I try to run each process on each server, and each process 
using thread pool to run multiple threads (pthread lib). I am not sure 
whether it is the correct way or not. I wrote it as: 


MPI_Init()
.... 
...
/* create thread pool and initial */
...... 
/* fetch job into thread pool */
......


MPI_Finalize();


When I check the book and notes, I found people use


MPI_Init_thread() with MPI_THREAD_MULTIPLE


but the some docs said it supported OpenMP, is that possible to use it 
with pthread library?
I am new guy to this hybrid programming. I am not sure which is the proper 
way to do it. Any suggestions are appreciate. Thank you!


Sufeng




On Sat, Jun 22, 2013 at 12:12 PM, <discuss-request at mpich.org[1]> wrote:


Send discuss mailing list submissions to        discuss at mpich.org[2]
https://lists.mpich.org/mailman/listinfo/discuss[3]
discuss-request at mpich.org[1]
discuss-owner at mpich.org[4]
sniu at hawk.iit.edu[5]>To: discuss at mpich.org[2]
CAFNNHkwpqdGfZXctL0Uz3hpeL25mZZMtB93qGXjc_+tjnV4csA at mail.gmail.c
om[6]>Content-Type: text/plain; charset="iso-8859-1"

Hi,

Sorry to bother you guys on this stupid question. last time I re-install OSfor 
all blades to keep them the same version. after I mount, set keylessssh, 
the terimnal gives the error below:

[proxy:0:1 at iocfccd3.aps.anl.gov[7]] 
HYDU_sock_connect(./utils/sock/sock.c:174): unable to connect from 
"iocfccd3.aps.anl.gov[8]" to"iocfccd1.aps.anl.gov[9]" (No route to host)
[proxy:0:1 at iocfccd3.aps.anl.gov[7]] main (./pm/pmiserv/pmip.c:189): 
unable toconnect to server iocfccd1.aps.anl.gov[9] at port 38242 (check 
for firewalls!)

I can ssh from iocfccd1 to iocfccd3 without password. Should I shut downall 
firewalls on each server? I cannot find out where is the problem. Thankyou

--Best Regards,Sufeng NiuECASP lab, ECE department, Illinois Institute of 
TechnologyTel: 312-731-7219[10]
http://lists.mpich.org/pipermail/discuss/attachments/20130621/5503b1bc/a
ttachment-0001.html[11]>

------------------------------

Message: 2Date: Fri, 21 Jun 2013 10:58:26 -0500From: Antonio J. Pe?a 
<apenya at mcs.anl.gov[12]>To: discuss at mpich.org[2]
iocfccd1.aps.anl.gov[9]" from iocfccd3?[1]

Antonio


On Friday, June 21, 2013 10:51:50 AM Sufeng Niu wrote:


Hi,


Sorry to bother you guys on this stupid question. last time I re-install OS 
forall blades to keep them the same version. after I mount, set keyless 
ssh,the terimnal gives the error below:


proxy:0:1 at iocfccd3.aps.anl.gov[7][2]] 
HYDU_sock_connect(./utils/sock/sock.c:174): unable to connect from 
"iocfccd3.aps.anl.gov[8][3]"to "iocfccd1.aps.anl.gov[9][1]" (No route to 
host)[proxy:0:1 at iocfccd3.aps.anl.gov[7][2]] main 
(./pm/pmiserv/pmip.c:189):unable to connect to server 
iocfccd1.aps.anl.gov[9][1] at port 38242 (checkfor firewalls!)



I can ssh from iocfccd1 to iocfccd3 without password. Should I shut downall 
firewalls on each server? I cannot find out where is the problem. Thankyou




-- Best Regards,Sufeng NiuECASP lab, ECE department, Illinois Institute of 
TechnologyTel: 312-731-7219[4]


--------[1] _http://iocfccd1.aps.anl.gov_
proxy%3A0%3A1 at iocfccd3.aps.anl.gov[13]
http://iocfccd3.aps.anl.gov[8]
312-731-7219[10]
http://lists.mpich.org/pipermail/discuss/attachments/20130621/01b37902/
attachment-0001.html[14]>

------------------------------

Message: 3Date: Sat, 22 Jun 2013 12:49:10 -0400From: Jiri Simsa 
<jsimsa at cs.cmu.edu[15]>To: discuss at mpich.org[2]
CAHs9ut-_6W6SOHTJ_rD+shQ76bo4cTCuFVAy1f9x-
J0gioakHg at mail.gmail.com[16]>Content-Type: text/plain; 
charset="iso-8859-1"

Hi,
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mpich.org/pipermail/discuss/attachments/20130623/a6104115/attachment.html>


More information about the discuss mailing list