From: Giuseppe G. <gg9...@un...> - 2005-12-14 16:29:29
|
Dear Rick, I am following to try to use perfsuite with mpi, but without success. What I do is editing the file cpi-mpif.f present in the folder /examples/cpi/ by inserting calls to the four subroutine of psrun. It makes the object file but does not links correctly. What I am doing is the following % /usr/local/mpich-1.2.7/build/linux_intel/bin/mpif90 cpi-mpif.f -static -o cpi -I/opt/perfsuite_intel/include -L/opt/perfsuite_intel/lib -L/usr/local/lib -lpshwpc_mpi -lpapi The answer is IPO Error: unresolved : psf_hwpc_init_ Referenced in cpi-mpif.o IPO Error: unresolved : psf_hwpc_start_ Referenced in cpi-mpif.o IPO Error: unresolved : psf_hwpc_stop_ Referenced in cpi-mpif.o IPO Error: unresolved : psf_hwpc_shutdown_ Referenced in cpi-mpif.o IPO Error: unresolved : ps_hwpc_init Referenced in libpshwpc_mpi.a(libpshwpc_mpi_a-hwpc-mpi.o) IPO Error: unresolved : ps_hwpc_start Referenced in libpshwpc_mpi.a(libpshwpc_mpi_a-hwpc-mpi.o) IPO Error: unresolved : _ps_malloc Referenced in libpshwpc_mpi.a(libpshwpc_mpi_a-hwpc-mpi.o) IPO Error: unresolved : ps_hwpc_stop Referenced in libpshwpc_mpi.a(libpshwpc_mpi_a-hwpc-mpi.o) IPO Error: unresolved : ps_hwpc_shutdown Referenced in libpshwpc_mpi.a(libpshwpc_mpi_a-hwpc-mpi.o) IPO Error: unresolved : _ps_getargs Referenced in libpshwpc_mpi.a(libpshwpc_mpi_a-hwpc-mpi.o) cpi-mpif.o(.text+0x3d): In function `MAIN__': : undefined reference to `psf_hwpc_init_' cpi-mpif.o(.text+0x10e): In function `MAIN__': : undefined reference to `psf_hwpc_start_' cpi-mpif.o(.text+0x1a7): In function `MAIN__': : undefined reference to `psf_hwpc_stop_' cpi-mpif.o(.text+0x1c0): In function `MAIN__': : undefined reference to `psf_hwpc_shutdown_' /opt/perfsuite_intel/lib/libpshwpc_mpi.a(libpshwpc_mpi_a-hwpc-mpi.o)(.text+0x2d): In function `MPI_Init': /opt/perfsuite-0.6.1/src/libpshwpc/hwpc-mpi.c:88: undefined reference to `ps_hwpc_init' /opt/perfsuite_intel/lib/libpshwpc_mpi.a(libpshwpc_mpi_a-hwpc-mpi.o)(.text+0x36):/opt/perfsuite-0.6.1/src/libpshwpc/hwpc-mpi.c:90: undefined reference to `ps_hwpc_start' /opt/perfsuite_intel/lib/libpshwpc_mpi.a(libpshwpc_mpi_a-hwpc-mpi.o)(.text+0xc3): In function `MPI_Finalize': /opt/perfsuite-0.6.1/src/libpshwpc/hwpc-mpi.c:122: undefined reference to `_ps_malloc' /opt/perfsuite_intel/lib/libpshwpc_mpi.a(libpshwpc_mpi_a-hwpc-mpi.o)(.text+0xf0):/opt/perfsuite-0.6.1/src/libpshwpc/hwpc-mpi.c:131: undefined reference to `ps_hwpc_stop' /opt/perfsuite_intel/lib/libpshwpc_mpi.a(libpshwpc_mpi_a-hwpc-mpi.o)(.text+0x10d):/opt/perfsuite-0.6.1/src/libpshwpc/hwpc-mpi.c:133: undefined reference to `ps_hwpc_shutdown' /opt/perfsuite_intel/lib/libpshwpc_mpi.a(libpshwpc_mpi_a-hwpc-mpi.o)(.text+0x137): In function `mpi_init_': /opt/perfsuite-0.6.1/src/libpshwpc/hwpc-mpi.c:155: undefined reference to `_ps_getargs' Thanks, Giuseppe. |