<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; color: rgb(0, 0, 0); font-size: 14px; font-family: Calibri, sans-serif;">
<div>Hello,</div>
<div><br>
</div>
<div>I am having trouble running a fortran code sung the NAG fortran compiler and various versions of mpich.  All fail in the same way:</div>
<div>First the error I’ getting:</div>
<div><br>
</div>
<div style="font-family: Consolas;">Fatal error in PMPI_Comm_rank: Invalid argument, error stack:</div>
<div style="font-family: Consolas;">PMPI_Comm_rank(110): MPI_Comm_rank(MPI_COMM_WORLD, rank=(nil)) failed</div>
<div style="font-family: Consolas;">PMPI_Comm_rank(82).: Null pointer in parameter rank</div>
<div style="font-family: Consolas;">Makefile.spicer:414: recipe for target 'initial0' failed</div>
<div><span style="font-family: Consolas;">make: *** [initial0] Error 1</span></div>
<div><span style="font-family: Consolas;"><br>
</span></div>
<div>This comes from the first call to an MPI function after MPI_INIT().</div>
<div><br>
</div>
<div>I am attempting to run the code on a Linux (Ubuntu) machine with AMD processor.  </div>
<div>The code does run successfully on other systems with the same combination of compilers (A Mac for instance).</div>
<div>Here are the specs for the compilers  used. </div>
<div><br>
</div>
<div style="font-family: Consolas;">NAG Fortran Compiler Release 6.0(Hibiya) Build 1064</div>
<div style="font-family: Consolas;">Product NPL6A60NA for x86-64 Linux</div>
<div style="font-family: Consolas;">Copyright 1990-2015 The Numerical Algorithms Group Ltd., Oxford, U.K.</div>
<div style="font-family: Consolas;"><br>
</div>
<div style="font-family: Consolas;"><br>
</div>
<div style="font-family: Consolas;"><br>
</div>
<div style="font-family: Consolas;"><br>
</div>
<div style="font-family: Consolas;">Using built-in specs.</div>
<div style="font-family: Consolas;">COLLECT_GCC=gcc</div>
<div style="font-family: Consolas;">COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/4.9/lto-wrapper</div>
<div style="font-family: Consolas;">Target: x86_64-linux-gnu</div>
<div style="font-family: Consolas;">Configured with: ../src/configure -v --with-pkgversion='Ubuntu </div>
<div style="font-family: Consolas;">4.9.2-10ubuntu13' </div>
<div style="font-family: Consolas;">--with-bugurl=<a href="file:///usr/share/doc/gcc-4.9/README.Bugs">file:///usr/share/doc/gcc-4.9/README.Bugs</a></div>
<div style="font-family: Consolas;">--enable-languages=c,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr </div>
<div style="font-family: Consolas;">--program-suffix=-4.9 --enable-shared --enable-linker-build-id </div>
<div style="font-family: Consolas;">--libexecdir=/usr/lib --without-included-gettext --enable-threads=posix </div>
<div style="font-family: Consolas;">--with-gxx-include-dir=/usr/include/c++/4.9 --libdir=/usr/lib </div>
<div style="font-family: Consolas;">--enable-nls --with-sysroot=/ --enable-clocale=gnu </div>
<div style="font-family: Consolas;">--enable-libstdcxx-debug --enable-libstdcxx-time=yes </div>
<div style="font-family: Consolas;">--enable-gnu-unique-object --disable-vtable-verify --enable-plugin </div>
<div style="font-family: Consolas;">--with-system-zlib --disable-browser-plugin --enable-java-awt=gtk </div>
<div style="font-family: Consolas;">--enable-gtk-cairo </div>
<div style="font-family: Consolas;">--with-java-home=/usr/lib/jvm/java-1.5.0-gcj-4.9-amd64/jre </div>
<div style="font-family: Consolas;">--enable-java-home </div>
<div style="font-family: Consolas;">--with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-4.9-amd64 </div>
<div style="font-family: Consolas;">--with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-4.9-amd64 </div>
<div style="font-family: Consolas;">--with-arch-directory=amd64 </div>
<div style="font-family: Consolas;">--with-ecj-jar=/usr/share/java/eclipse-ecj.jar --enable-objc-gc </div>
<div style="font-family: Consolas;">--enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 </div>
<div style="font-family: Consolas;">--with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic </div>
<div style="font-family: Consolas;">--enable-checking=release --build=x86_64-linux-gnu </div>
<div style="font-family: Consolas;">--host=x86_64-linux-gnu --target=x86_64-linux-gnu</div>
<div style="font-family: Consolas;">Thread model: posix</div>
<div style="font-family: Consolas;">gcc version 4.9.2 (Ubuntu 4.9.2-10ubuntu13)</div>
<div style="font-family: Consolas;"><br>
</div>
<div style="font-family: Consolas;">Is there an inconsistency with the compilers on such a system?  Do you have any other suggestions?</div>
<div style="font-family: Consolas;">Thanks!</div>
<div style="font-family: Consolas;"><br>
</div>
<div>Kevin Olson</div>
<div>
<div id="">
<div>HPC Software Developer</div>
<div>Numerical Algorithms Group, Inc</div>
<div>801 Warrenville Road, Suite 185</div>
<div>Lisle, Illinois 60532-4332</div>
<div>T 267-664-9913</div>
<div>F 630-971-2706</div>
<div>www.nag.com</div>
</div>
</div>
<div>Kevin Olson</div>
<div>
<div id="MAC_OUTLOOK_SIGNATURE">
<div>HPC Software Developer</div>
<div>Numerical Algorithms Group, Inc</div>
<div>801 Warrenville Road, Suite 185</div>
<div>Lisle, Illinois 60532-4332</div>
<div>T 267-664-9913</div>
<div>F 630-971-2706</div>
<div>www.nag.com</div>
<div><br>
</div>
<div><br>
</div>
</div>
</div>
</body>
</html>