This is the simple MPI program (test.c) I was talking about: #include <mpi.h> #include <stdio.h>
int main(int argc, char* argv[]) { int my_rank; /* rank of process */ int p; /* number of processes */ /* start up MPI */ MPI_Init(&argc, &argv); /* find out process rank */ MPI_Comm_rank(MPI_COMM_WORLD, &my_rank); /* find out number of processes */ MPI_Comm_size(MPI_COMM_WORLD, &p); printf("Hello MPI World! Num processes: %d\n", p); /* shut down MPI */ MPI_Finalize(); return 0; } Issued commands: $ mpicc test.c $ orterun -np 4 a.exe Everything compiles ok. The second command doesn't work as expected on either open-mpi-1.7.4-1 or open-mpi-1.7.5-1. Under openmpi-1.7.4-1 the output for the second command is (and the program hangs): [cryb:00820] [[46167,1],1] ORTE_ERROR_LOG: Bad parameter in file /pub/devel/openmpi/openmpi-1.7.4-1/src/openmpi-1.7.4/orte/mca/oob/tcp/oob_tcp.c at line 291 [cryb:00820] [[46167,1],1] ORTE_ERROR_LOG: Data for specified key not found in file /pub/devel/openmpi/openmpi-1.7.4-1/src/openmpi-1.7.4/orte/runtime/orte_globals.c at line 503 [cryb:02392] [[46167,1],0] ORTE_ERROR_LOG: Bad parameter in file /pub/devel/openmpi/openmpi-1.7.4-1/src/openmpi-1.7.4/orte/mca/oob/tcp/oob_tcp.c at line 291 [cryb:02392] [[46167,1],0] ORTE_ERROR_LOG: Data for specified key not found in file /pub/devel/openmpi/openmpi-1.7.4-1/src/openmpi-1.7.4/orte/runtime/orte_globals.c at line 503 [cryb:05708] [[46167,1],2] ORTE_ERROR_LOG: Bad parameter in file /pub/devel/openmpi/openmpi-1.7.4-1/src/openmpi-1.7.4/orte/mca/oob/tcp/oob_tcp.c at line 291 [cryb:05708] [[46167,1],2] ORTE_ERROR_LOG: Data for specified key not found in file /pub/devel/openmpi/openmpi-1.7.4-1/src/openmpi-1.7.4/orte/runtime/orte_globals.c at line 503 [cryb:06352] [[46167,1],3] ORTE_ERROR_LOG: Bad parameter in file /pub/devel/openmpi/openmpi-1.7.4-1/src/openmpi-1.7.4/orte/mca/oob/tcp/oob_tcp.c at line 291 [cryb:06352] [[46167,1],3] ORTE_ERROR_LOG: Data for specified key not found in file /pub/devel/openmpi/openmpi-1.7.4-1/src/openmpi-1.7.4/orte/runtime/orte_globals.c at line 503 Under openmpi-1.7.5-1 the output for the second command is (and the program exists): ------------------------------------------------------- Primary job terminated normally, but 1 process returned a non-zero exit code.. Per user-direction, the job has been aborted. ------------------------------------------------------- -------------------------------------------------------------------------- orterun detected that one or more processes exited with non-zero status, thus ca using the job to be terminated. The first process to do so was: Process name: [[33371,1],1] Exit code: 65 -------------------------------------------------------------------------- On Sunday, April 13, 2014 7:33 PM, Marco Atzeri <marco.atz...@gmail.com> wrote: On 12/04/2014 18:42, Cristian Butincu wrote: > Hello. > > The latest precompiled version to date of openmpi for cygwin is 1.7.4-1. 1.7.5 will be uploaded shortly. I don't plan to upload 1.8 until 1.8.1, but I will built it just to check. > Because I got some runtime errors when trying to run simple MPI > programs, I have decided to upgrade to openmpi-1.8. which errors ? 1.8 should be almost identical to 1.7.5, except the oshmem default, so unlike to make any difference > When trying to compile openmpi-1.8 under cygwin I get the following > error during "make all" and the build process halts: > Error: symbol `Lhwloc1' is already defined > > The commands issued: > ./configure --prefix=$HOME/Apps/openmpi-1.8 > make all cygwin package is currently built with --disable-mca-dso \ --disable-sysv-shmem \ --without-udapl \ --enable-cxx-exceptions \ --with-threads=posix \ --without-cs-fs \ --enable-heterogeneous \ --with-mpi-param_check=always \ --enable-contrib-no-build=vt,libompitrace \ --enable-mca-no-build=paffinity,installdirs-windows,timer-windows,shmem-sysv > > Platform: > Operating system: Windows 8, 32 bits > CPU: Intel Core2 Duo > Memory: 4 GB > Cygwin version: 1.7.29 > > I have attached to this message an archive containing the output of > config and build processes. > Thank you. > > _______________________________________________ users mailing list us...@open-mpi.org http://www.open-mpi.org/mailman/listinfo.cgi/users