<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
<div class="">Hi Ye,</div>
<div class=""><br class="">
</div>
<div class="">Thank you for your suggestion. I tried it and when I ran the code, it seg-faulted. I put flags in the code to see where the segmentation faults occurs. It happens as the code calls mp_sum. It seems that mp_sum may not</div>
<div class="">be able to handle this reduction.</div>
<div class=""><br class="">
</div>
<div class="">Cheers,</div>
<div class="">Vahid</div>
<br class="">
<div>
<blockquote type="cite" class="">
<div class="">On Oct 28, 2016, at 2:51 PM, Ye Luo <<a href="mailto:xw111luoye@gmail.com" class="">xw111luoye@gmail.com</a>> wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div dir="ltr" class="">
<div class="">
<div class="">In Fortran, whatever-D array is 1-D array. mp_sum should be fine.<br class="">
</div>
I saw something strange in your code that you were not copying the right things as you expected.<br class="">
How about the following?<br class="">
output(1:3,1:nbnds,(k_pool*pool_<wbr class="">id+1:k_pool*pool_id+k_pool))=<wbr class="">input(1:3,1:nbnds,1:k_pool)<br class="">
</div>
<br class="">
Ye<br class="">
<div class="">
<div class="gmail_extra"><br clear="all" class="">
<div class="">
<div class="gmail_signature" data-smartmail="gmail_signature">
<div dir="ltr" class="">===================<br class="">
Ye Luo, Ph.D.<br class="">
Leadership Computing Facility<br class="">
Argonne National Laboratory</div>
</div>
</div>
<br class="">
<div class="gmail_quote">2016-10-28 12:29 GMT-05:00 Vahid Askarpour <span dir="ltr" class="">
<<a href="mailto:vh261281@dal.ca" target="_blank" class="">vh261281@dal.ca</a>></span>:<br class="">
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Dear QE Users,<br class="">
<br class="">
I am working on some modifications to the QE-6.0 code using symmetry. When I try to combine a 3-D array scattered across nodes, I use the following:<br class="">
<br class="">
output(3,nbnds,(k_pool*pool_<wbr class="">id+1:k_pool*pool_id+k_pool))=<wbr class="">input(3,nbnds,1:k_pool)<br class="">
<br class="">
Here, nbnds is the number of bands, k_pool is the number of k points/pool, and pool_id is the id of the pool. Here I am assuming the the number of k points is divisible by the number of pools.<br class="">
<br class="">
Then I call mp_sum(output,inter_pool_comm) to put all the segments of input across the nodes into one output file.<br class="">
<br class="">
When I run the modified QE code in parallel, the output file is different from the serial run.<br class="">
<br class="">
Does the QE's mp_sum allow the above operation for a three-D array?<br class="">
<br class="">
Any hints or suggestions would be greatly appreciated.<br class="">
<br class="">
Vahid<br class="">
<span class="HOEnZb"><font color="#888888" class=""><br class="">
Vahid Askarpour<br class="">
Department of Physics and Atmospheric Science<br class="">
Dalhousie University,<br class="">
Halifax, NS, Canada<br class="">
______________________________<wbr class="">_________________<br class="">
Pw_forum mailing list<br class="">
<a href="mailto:Pw_forum@pwscf.org" class="">Pw_forum@pwscf.org</a><br class="">
<a href="http://pwscf.org/mailman/listinfo/pw_forum" rel="noreferrer" target="_blank" class="">http://pwscf.org/mailman/<wbr class="">listinfo/pw_forum</a><br class="">
</font></span></blockquote>
</div>
<br class="">
</div>
</div>
</div>
_______________________________________________<br class="">
Pw_forum mailing list<br class="">
<a href="mailto:Pw_forum@pwscf.org" class="">Pw_forum@pwscf.org</a><br class="">
http://pwscf.org/mailman/listinfo/pw_forum</div>
</blockquote>
</div>
<br class="">
</body>
</html>