Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cannot instrument with -optTrackIO #4

Open
antonl321 opened this issue Sep 24, 2021 · 1 comment
Open

cannot instrument with -optTrackIO #4

antonl321 opened this issue Sep 24, 2021 · 1 comment

Comments

@antonl321
Copy link

Hi All,

I trying to instrument a code with with IO wrappers buy using
export TAU_OPTIONS=-optTrackIO...

I'm using intel 2021.2 and hpcx2.9.0

I have configured tau with I wrappers. At the compile stag I get the following error

Executing> ifort t2.o @/home/atosla/Tools/TAU/tau/x86_64/lib/wrappers/io_wrapper/link_options.tau -L/home/atosla/Tools/TAU/tau/x86_64/lib/shared-hpcx2.9.0-intel2021.2-iow-icpc-mpi-pthread -lTAU -lTAU-pthread -Wl,-rpath,/home/atosla/Tools/TAU/tau/x86_64/lib/shared-hpcx2.9.0-intel2021.2-iow-icpc-mpi-pthread -L/home/atosla/Tools/TAU/tau/x86_64/lib -lTauMpi-hpcx2.9.0-intel2021.2-iow-icpc-mpi-pthread -I/lus/h1resw02/bm/atosla/builds/SP-2-2021-08-31-082046/ECMWF-2017/RAPS18/flexbuild/external/pe/hpcx-v2.9.0-gcc-MLNX_OFED_LINUX-5.1-0.6.6.0-redhat8.1-x86_64/ompi-icc/include -I/lus/h1resw02/bm/atosla/builds/SP-2-2021-08-31-082046/ECMWF-2017/RAPS18/flexbuild/external/pe/hpcx-v2.9.0-gcc-MLNX_OFED_LINUX-5.1-0.6.6.0-redhat8.1-x86_64/ompi-icc/lib -L/usr//lib64 -Wl,-rpath -Wl,/usr//lib64 -Wl,-rpath -Wl,/lus/h1resw02/bm/atosla/builds/SP-2-2021-08-31-082046/ECMWF-2017/RAPS18/flexbuild/external/pe/hpcx-v2.9.0-gcc-MLNX_OFED_LINUX-5.1-0.6.6.0-redhat8.1-x86_64/ompi-icc/lib -Wl,--enable-new-dtags -L/lus/h1resw02/bm/atosla/builds/SP-2-2021-08-31-082046/ECMWF-2017/RAPS18/flexbuild/external/pe/hpcx-v2.9.0-gcc-MLNX_OFED_LINUX-5.1-0.6.6.0-redhat8.1-x86_64/ompi-icc/lib
-lmpi_usempif08 -lmpi_usempi_ignore_tkr -lmpi_mpifh -lmpi -L/home/atosla/Tools/TAU/tau/x86_64/lib -lTauMpi-hpcx2.9.0-intel2021.2-iow-icpc-mpi-pthread -L/lus/h1resw02/bm/atosla/builds/SP-2-2021-08-31-082046/ECMWF-2017/RAPS18/flexbuild/external/pe/hpcx-v2.9.0-gcc-MLNX_OFED_LINUX-5.1-0.6.6.0-redhat8.1-x86_64/ompi-icc/lib -lmpi -lmpi_cxx -Wl,-rpath,/lus/h1resw02/bm/atosla/builds/SP-2-2021-08-31-082046/ECMWF-2017/RAPS18/flexbuild/external/pe/hpcx-v2.9.0-gcc-MLNX_OFED_LINUX-5.1-0.6.6.0-redhat8.1-x86_64/ompi-icc/lib -lpthread -ldl -L/home/atosla/Tools/TAU/tau/x86_64/binutils-2.36/lib -L/home/atosla/Tools/TAU/tau/x86_64/binutils-2.36/lib64 -Wl,-rpath,/home/atosla/Tools/TAU/tau/x86_64/binutils-2.36/lib -Wl,-rpath,/home/atosla/Tools/TAU/tau/x86_64/binutils-2.36/lib64 -lbfd -liberty -lz -Wl,--export-dynamic -lrt -L/home/atosla/Tools/TAU/tau/x86_64/libunwind-1.3.1-icc/lib -lunwind -Wl,-rpath,/home/atosla/Tools/TAU/tau/x86_64/libunwind-1.3.1-icc/lib -L/home/atosla/Tools/TAU/tau/x86_64/otf2-icc/lib -lotf2 -lotf2 -Wl,-rpath,/home/atosla/Tools/TAU/tau/x86_64/otf2-icc/lib -L/home/atosla/Tools/TAU/tau/x86_64/libdwarf-icc/lib -Wl,-rpath,/home/atosla/Tools/TAU/tau/x86_64/libdwarf-icc/lib -ldwarf -lz -lelf -L/home/atosla/Tools/TAU/tau/x86_64/lib -lTauMpi-hpcx2.9.0-intel2021.2-iow-icpc-mpi-pthread -L/home/atosla/Tools/TAU/tau/x86_64/lib -lTauMpi-hpcx2.9.0-intel2021.2-iow-icpc-mpi-pthread -I/lus/h1resw02/bm/atosla/builds/SP-2-2021-08-31-082046/ECMWF-2017/RAPS18/flexbuild/external/pe/hpcx-v2.9.0-gcc-MLNX_OFED_LINUX-5.1-0.6.6.0-redhat8.1-x86_64/ompi-icc/include/openmpi -I/lus/h1resw02/bm/atosla/builds/SP-2-2021-08-31-082046/ECMWF-2017/RAPS18/flexbuild/external/pe/hpcx-v2.9.0-gcc-MLNX_OFED_LINUX-5.1-0.6.6.0-redhat8.1-x86_64/ompi-icc/include/openmpi/opal/mca/hwloc/hwloc201/hwloc/include -I/lus/h1resw02/bm/atosla/builds/SP-2-2021-08-31-082046/ECMWF-2017/RAPS18/flexbuild/external/pe/hpcx-v2.9.0-gcc-MLNX_OFED_LINUX-5.1-0.6.6.0-redhat8.1-x86_64/ompi-icc/include -pthread -L/usr//lib64 -Wl,-rpath -Wl,/usr//lib64 -Wl,-rpath -Wl,/lus/h1resw02/bm/atosla/builds/SP-2-2021-08-31-082046/ECMWF-2017/RAPS18/flexbuild/external/pe/hpcx-v2.9.0-gcc-MLNX_OFED_LINUX-5.1-0.6.6.0-redhat8.1-x86_64/ompi-icc/lib -Wl,--enable-new-dtags -L/lus/h1resw02/bm/atosla/builds/SP-2-2021-08-31-082046/ECMWF-2017/RAPS18/flexbuild/external/pe/hpcx-v2.9.0-gcc-MLNX_OFED_LINUX-5.1-0.6.6.0-redhat8.1-x86_64/ompi-icc/lib -lmpi_cxx -lmpi -L/lus/h1resw02/bm/atosla/builds/SP-2-2021-08-31-082046/ECMWF-2017/RAPS18/flexbuild/external/pe/hpcx-v2.9.0-gcc-MLNX_OFED_LINUX-5.1-0.6.6.0-redhat8.1-x86_64/ompi-icc/lib -lmpi -lmpi_cxx -Wl,-rpath,/lus/h1resw02/bm/atosla/builds/SP-2-2021-08-31-082046/ECMWF-2017/RAPS18/flexbuild/external/pe/hpcx-v2.9.0-gcc-MLNX_OFED_LINUX-5.1-0.6.6.0-redhat8.1-x86_64/ompi-icc/lib -L/usr/lib/gcc/x86_64-redhat-linux/8/ -L/usr/bin/../lib64 -lstdc++ -lgcc_s -L/home/atosla/Tools/TAU/tau/x86_64/lib/static-hpcx2.9.0-intel2021.2-iow-icpc-mpi-pthread -Wl,-rpath,/home/atosla/Tools/TAU/tau/x86_64/lib/shared-hpcx2.9.0-intel2021.2-iow-icpc-mpi-pthread @/home/atosla/Tools/TAU/tau/x86_64/lib/wrappers/io_wrapper/link_options.tau -o t2.x-tau
/usr/local/apps/intel/oneAPI_2021_update2/compiler/2021.2.0/linux/bin/intel64/../../compiler/lib/intel64_lin/libifcoremt.a(for_rseq.o): In function `for_read_seq':
for_rseq.c:(.text+0xe0b): undefined reference to `__wrap_lseek64'
for_rseq.c:(.text+0xf4d): undefined reference to `__wrap_write'
for_rseq.c:(.text+0xfae): undefined reference to `__wrap_write'
/usr/local/apps/intel/oneAPI_2021_update2/compiler/2021.2.0/linux/bin/intel64/../../compiler/lib/intel64_lin/libifcoremt.a(for_wseq.o): In function `for_write_seq':
...
$ env | grep TAU
TAU_OPTIONS=-optTrackIO -optPdtF95Opts="-R free" -optVerbose -optCompInst -optShared -optRevert -optTauIncludes=-I/home/atosla/builds/intel2021.2/RAPS18/flexbuild/external/pe/hpcx-v2.9.0-gcc-MLNX_OFED_LINUX-5.1-0.6.6.0-redhat8.1-x86_64/ompi-icc/lib
TAU_MAKEFILE=/home/atosla/Tools/TAU/tau/x86_64/lib/Makefile.tau-hpcx2.9.0-intel2021.2-iow-icpc-mpi-pthread

Any hints? It seems that I miss a library..

Lucian Anton

@wspear
Copy link
Contributor

wspear commented Sep 27, 2021

There appears to be an issue with linking optTrackIo and Fortran. It happens with gnu as well as Intel. We're looking into it.

Reproducer:

./configure -iowrapper -bfd=download
export TAU_OPTIONS=-optTrackIO -optVerbose
tau_f90.sh foo.f90

foo.f90:


export

        PROGRAM main
         IMPLICIT NONE

         INTEGER :: A = 123456789
         REAL    :: F = 123.456789
         double precision :: D = 123.456789123456789D0

         print *, "======== Using PRINT format string ========"

         print '(I4, X, F7.2, X, E30.19)', A, F, D

        END

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants