Analyzers
Talk to fellow users of Intel Analyzer tools (Intel VTune™ Profiler, Intel Advisor)

source viewing problem with Vtune GUI

MARK_A_2
Beginner
777 Views

I am only able to view assembly in the Vtune GUI. I see the assembly but the "Source" button is grayed out and not active.  I compile with 

-g -O3 -fp-model fast -xMIC-AVX512 -qopt-report=5 -dynamic --vtune

I run with

 amplxe-cl -no-auto-finalize -collect hotspots -r res_dir 

I finalize with 

amplxe-cl -finalize -search-dir /global/u2/m/madams/petsc/arch-knl-opt64-ma64-simd/lib/ -source-search-dir /global/u2/m/madams/petsc/src/dm/impls/picell -source-search-dir . -search-dir . -source-search-dir /global/u2/m/madams/petsc/src/dm/dt/interface

The function that I want to view is in a c file in this ...dm/dt/interface directory.

 

0 Kudos
4 Replies
Denis_M_Intel
Employee
777 Views

Are there any warnings related to your application binary or symbol files in VTune finalization output?
Can you check with the addr2line Linux utility that first address of the function has source file and source line information?
 

0 Kudos
MARK_A_2
Beginner
777 Views

Denis Mochanov (Intel) wrote:

Are there any warnings related to your application binary or symbol files in VTune finalization output?

amplxe: Using result path `/global/u2/m/madams/petsc/src/dm/impls/picell/examples/tutorial/res_dir.cc06'
amplxe: Executing actions 45 % Resolving module symbols
amplxe: Warning: Cannot locate file `/lib64/libc.so.6'.
amplxe: Warning: Cannot locate file `/usr/common/software/intel/compilers_and_libraries_2016.3.210/linux/mpi/intel64/lib/libmpi.so.12'.
amplxe: Warning: Cannot locate file `/usr/common/software/intel/compilers_and_libraries_2016.3.210/linux/mpi/intel64/lib/libmpifort.so.12'.
amplxe: Executing actions 45 % Resolving information for `libc.so.6'
amplxe: Warning: Cannot locate file `/usr/common/software/memkind/1.0.0/carl/gnu/lib/libmemkind.so'.
amplxe: Executing actions 45 % Resolving information for `libmpi.so.12'
amplxe: Warning: Cannot locate file `/usr/common/software/intel/vtune_amplifier_xe_2016.3.0.463186/lib64/pinruntime/glibc/libc-2.3.4.so'.
amplxe: Executing actions 45 % Resolving information for `libc-2.3.4.so'
amplxe: Warning: Cannot locate file `/lib64/libpthread.so.0'.
amplxe: Executing actions 45 % Resolving information for `libpthread.so.0'
amplxe: Warning: Cannot locate file `/usr/common/software/numactl/2.0.11/carl/bin/numactl'.
amplxe: Executing actions 45 % Resolving information for `numactl'
amplxe: Warning: Cannot locate file `/usr/common/software/intel/vtune_amplifier_xe_2016.3.0.463186/lib64/runtime/libittnotify_collector.so'.
amplxe: Executing actions 46 % Resolving information for `libittnotify_collecto
amplxe: Warning: Cannot locate file `/lib64/libdl.so.2'.
amplxe: Executing actions 46 % Resolving information for `libdl.so.2'
amplxe: Warning: Cannot locate file `/lib64/ld-linux-x86-64.so.2'.
amplxe: Executing actions 46 % Resolving information for `ld-linux-x86-64.so.2'
amplxe: Warning: Cannot locate file `/usr/common/software/intel/vtune_amplifier_xe_2016.3.0.463186/lib64/pinruntime/libstdc++.so.6.0.13'.
amplxe: Executing actions 47 % Resolving information for `[vdso]'
amplxe: Warning: Cannot locate file `/usr/common/software/intel/compilers_and_libraries_2016.3.210/linux/mkl/lib/intel64/libmkl_intel_lp64.so'.
amplxe: Executing actions 47 % Resolving information for `libmkl_intel_lp64.so'
amplxe: Warning: Cannot locate file `/usr/common/software/intel/compilers_and_libraries_2016.3.210/linux/mkl/lib/intel64/libmkl_core.so'.
amplxe: Executing actions 48 % Resolving information for `libmkl_core.so'
amplxe: Warning: Cannot locate file `/usr/common/software/intel/vtune_amplifier_xe_2016.3.0.463186/bin64/pinbin'.
amplxe: Executing actions 48 % Resolving information for `pinbin'
amplxe: Warning: Cannot locate file `/usr/common/software/intel/compilers_and_libraries_2016.3.210/linux/mkl/lib/intel64/libmkl_sequential.so'.
amplxe: Executing actions 49 % Resolving information for `libmkl_sequential.so'
amplxe: Warning: Cannot locate file `/usr/common/software/numactl/2.0.11/carl/lib/libnuma.so.1'.
amplxe: Warning: Cannot locate file `/usr/common/software/intel/compilers_and_libraries_2016.3.210/linux/mkl/lib/intel64/libmkl_avx512_mic.so'.
amplxe: Executing actions 50 % Resolving information for `libmkl_avx512_mic.so'
amplxe: Warning: Cannot locate file `/usr/common/software/intel/vtune_amplifier_xe_2016.3.0.463186/lib64/libtpsstool.so'.
amplxe: Executing actions 50 % Resolving information for `libtpsstool.so'
amplxe: Warning: Cannot locate file `/usr/common/software/intel/compilers_and_libraries_2016.3.210/linux/compiler/lib/intel64/libirc.so'.
amplxe: Executing actions 100 % done

Can you check with the addr2line Linux utility that first address of the function has source file and source line information?
 

My KNL is down but I will check this when I have a chance.

0 Kudos
MARK_A_2
Beginner
777 Views

Denis Mochanov (Intel) wrote:

Are there any warnings related to your application binary or symbol files in VTune finalization output?

note, the listing that I showed before did not list the library (petsc) that I want to look into.

Can you check with the addr2line Linux utility that first address of the function has source file and source line information?

I took the address as listed in the GUI for a method in my source file ex2.c (ie, not in the library). 

$ addr2line -a 0x40ff50 -e ex2.arch-knl-opt64-ma64-simd
0x000000000040ff50
??:?

Here is my compile and link line:

mpiicc -o ex2.o -c -fPIC  -wd1572 -g -O3 -fp-model fast -xMIC-AVX512 -qopt-report=5   -I/global/homes/m/madams/p                                                                                       etsc/include -I/global/homes/m/madams/petsc/arch-knl-opt64-intel/include -I/usr/common/software/intel/compilers_                                                                                       and_libraries_2016.3.210/linux/mpi/intel64/include    `pwd`/ex2.c                                                                                                                                      
icc: remark #10397: optimization reports are generated in *.optrpt files in the output location                                                                                                        
mpiicc -fPIC  -wd1572 -g -O3 -fp-model fast -xMIC-AVX512 -qopt-report=5  -o ex2.arch-knl-opt64-intel ex2.o ....

0 Kudos
MARK_A_2
Beginner
777 Views

Oh Damn, it looks like I screwed up my makefiles and I am not actually using -g.

Sorry,

Thanks,

Mark

0 Kudos
Reply