[Q-e-developers] 'mpif.h' vs. 'include mpi' and regression tests

Paolo Giannozzi paolo.giannozzi at uniud.it
Tue Nov 22 21:32:50 CET 2016


On Tue, Nov 22, 2016 at 7:42 PM, Paul Kapinos <kapinos at itc.rwth-aachen.de>
wrote:

Not sure how to set $ESPRESSO_TMPDIR to a unique value in a simple way.
>>
>
> Well, you can
> - use a subpath of ESPRESSO_ROOT
>

in my opinion, this is the best solution. I think that this is what
examples do: they run by default in $ESPRESSO_ROOT/tempdir or something
like that

- use (a subpath of) $TMP envvar which is often set in 'good' environments


I wouldn't bet on this one

- use '$$' aka PID if actual shell as distinguisher...
>

it doesn't seem to work, at least not in a straightforward way

But: my try to change ESPRESSO_TMPDIR horribly failed as at first stage you
> have to test-suite directory and when I changed ESPRESSO_TMPDIR after first
> 'make test-suite' the subsequent calls lead to all-failure (due to not
> found some stuff - yes ESPRESSO_TMPDIR has been changed!).
>

I am not sure I understand.  Thank you anyway for reporting this.

@Filippo:  I am not implying that we should replace all "include 'mpif.h'"
with "use mpi" at once: I just think that it is easier to deal with 1 line
of code than with 62 copies of it. There might be many machines around that
do not have a suitable "mpi.mod"

Paolo

Paolo
-- 
Paolo Giannozzi, Dip. Scienze Matematiche Informatiche e Fisiche,
Univ. Udine, via delle Scienze 208, 33100 Udine, Italy
Phone +39-0432-558216, fax +39-0432-558222
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.quantum-espresso.org/pipermail/developers/attachments/20161122/324a6421/attachment.html>


More information about the developers mailing list