Hello Michael, I was using the newest version but look what is happening: First, the Makefile replace the -lpthread with -pthread: c...@hpcmaster:~/openmpi_ext/src$ mpicc --showme:compile -I/home/csi/openmpi-1.3.3/include -pthread c...@hpcmaster:~/openmpi_ext/src$ mpicc --showme:compile | sed -e "s/-pthread/-lpthread/g" -I/home/csi/openmpi-1.3.3/include -lpthread After this, more or less with the libdir: c...@hpcmaster:~/openmpi_ext/src$ mpicc -showme:link -pthread -L/home/csi/openmpi-1.3.3/lib -lmpi -lopen-rte -lopen-pal -libverbs -ldl -Wl,--export-dynamic -lnsl -lutil -lm -ldl c...@hpcmaster:~/openmpi_ext/src$ mpicc -showme:link | sed -e "s/-pthread/ /g" -L/home/csi/openmpi-1.3.3/lib -lmpi -lopen-rte -lopen-pal -libverbs -ldl -Wl,--export-dynamic -lnsl -lutil -lm -ldl and then, the result is: mkoctfile -s -I/home/csi/openmpi-1.3.3/include -L/home/csi/openmpi-1.3.3/lib -lmpi -lopen-rte -lopen-pal -libverbs -ldl -Wl,--export-dynamic -lnsl -lutil -lm -ldl That doesn't contains the -lmpi_cxx configure option that I need to run the openmpi_ext (the problem I had). Nevertheless using the Makefile.OPENMPI1.3.3 (modified) works fine because: MY_INC=`ompi_info -a | grep Incdir | cut -d: -f2 | sed -e 's/^[ \t]*//'` MY_LIBS=`ompi_info --path libdir | cut -d: -f2 | sed -e 's/^[ \t]*//'` MPIINC = -I$(MY_INC) MPILIBS = -lpthread -L$(MY_LIBS) -lmpi_cxx -lmpi -lopen-rte -lopen-pal -ldl -lnsl -lutil -lm -ldl MY_INC will be /home/csi/openmpi-1.3.3/include and MY_LIBS will be /home/csi/openmpi-1.3.3/lib (in my specific case), so the mkoctfile result is: mkoctfile -s -I/home/csi/openmpi-1.3.3/include -lpthread -L/home/csi/openmpi-1.3.3/lib -lmpi_cxx -lmpi -lopen-rte -lopen-pal -ldl -lnsl -lutil -lm -ldl That has included the -lmpi_cxx. The problem I see is that the mpicc -showme:compile doesn't include (for me?) the -lmpi_cxx. What do you think is happening?. Is it normal that my mpicc -showme:compile doesn't include it? Thanks, -- Eduardo Díaz Díaz Centre Tecnològic de Telecomunicacions de Catalunya Telecommunications Technological Center of Catalonia Parc Mediterrani de la Tecnologia Av. Carl Friedrich Gauss 7 (formerly, Av. Canal Olímpic SN) 08860 Castelldefels (Barcelona) Tel.: +34 93 645 29 26 Fax. +34 93 645 29 01 eduardo.d...@cttc.es http://www.cttc.es Michael Creel escribió: Hi all, |
------------------------------------------------------------------------------ SOLARIS 10 is the OS for Data Centers - provides features such as DTrace, Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW http://p.sf.net/sfu/solaris-dev2dev
_______________________________________________ Octave-dev mailing list Octave-dev@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/octave-dev