On Jul 16, 2008, at 9:43 AM, Lenny Verkhovsky wrote:
I succeded to compile and run simple C++ app with PathScale 3.2
evaluation version. look below.
Maybe you had some installation / licence problems.
Nope -- it still fails for me with 3.1.99 on the trunk today; it's not
a license problem (I have purchased licenses). I can run C and
Fortran programs; just not C++ MPI apps. There's something not firing
in constructors in MPI C++ predefined handles (e.g.,
MPI::COMMW_WORLD), so the back-end MPI_COMM_RANK function reports an
invalid communicator. E.g.:
[19:28] svbu-mpi:~/mpi % mpiCC hello.cc -o hello -g
[19:29] svbu-mpi:~/mpi % mpirun -np 2 hello
Calling MPI::Init
Calling MPI::Init
[svbu-mpi.cisco.com:10991] *** An error occurred in MPI_Comm_rank
...etc.
I was in touch with Ben v...@pathscale.com from PathScale support who
helped me with installation.
#head config.log
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by Open MPI configure 1.4a1, which was
generated by GNU Autoconf 2.61. Invocation command line was
$ ../configure --with-memory-manager=ptmalloc2 --with-openib --
prefix=/home/USERS/lenny/OMPI_COMP_PATH CC=pathcc CXX=pathCC
FC=pathf90 F77=pathf90 F90=pathf90
## --------- ##
## Platform. ##
/home/USERS/lenny/OMPI_COMP_PATH/bin/mpiCC -o hello_c_plus hello++.cc
In file included from /usr/include/c++/4.1.2/backward/iostream.h:31,
from hello++.cc:34:
/usr/include/c++/4.1.2/backward/backward_warning.h:32:2: warning:
#warning This file includes at least one deprecated or antiquated
header. Please consider using one of the 32 headers found in section
17.4.1.2 of the C++ standard. Examples include substituting the <X>
header for the <X.h> header for C++ includes, or <iostream> instead
of the deprecated header <iostream.h>. To disable this warning use -
Wno-deprecated.
witch1:/home/USERS/lenny/TESTS/COMPILERS # /home/USERS/lenny/
OMPI_COMP_PATH/bin/mpirun -np 2 -H witch16,witch17 ./hello_c_plus
Hello World! I am 0 of 2
Hello World! I am 1 of 2
<hello++.cc>
--
Jeff Squyres
Cisco Systems