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

No Data Shown After Compilation of C Source Code with OpenMP

CWhit10
Beginner
297 Views

Hi,

I'm now using Intel VTune Amplifier XE 2015. Also, I have no problem in running Tachyon (sample code).

I was trying to analyze an executable file generated after complilation of a C source code with OpenMP API.

When I run Advanced Hotspots Analysis, I can't view the result of analysis at OpenMP region. It stated "No Data To Show".

Below are the steps that I'd taken to run the analysis:

1) source /opt/intel/vtune_amplifier_xe_2015/amplxe-vars.sh

2) gcc -fopenmp -g Matrix.c -O2 -o Matrix.exe

3) export EDITOR=gedit

4) ./amplxe-gui

Thank you.

0 Kudos
1 Solution
Peter_W_Intel
Employee
296 Views

I cannot reproduce this issue...

# amplxe-cl -version
Intel(R) VTune(TM) Amplifier XE 2015 Update 2 (build 393444) Command Line Tool
Copyright (C) 2009-2014 Intel Corporation. All rights reserved.

# gcc --version
gcc (GCC) 4.4.6 20110731 (Red Hat 4.4.6-3)
Copyright (C) 2010 Free Software Foundation, Inc.

# gcc -g -fopenmp -O2 matrix.c -o matrix

# amplxe-cl -collect advanced-hotspots -- ./matrix

I suggest to improve this with two ways: (You can see OpenMP region)

1.1. # export KMP_FORKJOIN_FRAMES=1

1.2. # gcc -g -fopenmp -liomp5 -O2 matrix.c -o matrix

2. Use icc instead of gcc

 

 

 

 

View solution in original post

0 Kudos
1 Reply
Peter_W_Intel
Employee
297 Views

I cannot reproduce this issue...

# amplxe-cl -version
Intel(R) VTune(TM) Amplifier XE 2015 Update 2 (build 393444) Command Line Tool
Copyright (C) 2009-2014 Intel Corporation. All rights reserved.

# gcc --version
gcc (GCC) 4.4.6 20110731 (Red Hat 4.4.6-3)
Copyright (C) 2010 Free Software Foundation, Inc.

# gcc -g -fopenmp -O2 matrix.c -o matrix

# amplxe-cl -collect advanced-hotspots -- ./matrix

I suggest to improve this with two ways: (You can see OpenMP region)

1.1. # export KMP_FORKJOIN_FRAMES=1

1.2. # gcc -g -fopenmp -liomp5 -O2 matrix.c -o matrix

2. Use icc instead of gcc

 

 

 

 

0 Kudos
Reply