Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Beginner
99 Views

Use Intel Advisor on Linux cloud and analyze locally on Windows?

Jump to solution

I use Intel VTune Profiler 2020 on Linux in the cloud using the command line, then download the analysis files for local analysis using the VTune Windows GUI.

I would like to do the same thing with Intel Advisor -- run analyses on Linux in the cloud and analyze locally using the Windows GUI. I have been reading the Advisor documentation but I haven't see any information on doing that with Advisor.

How can I use Advisor on Linux in the cloud and analyze the results locally using the Windows GUI, like I do with VTune? Do I need two separate copies of Advisor, one for Linux and the other for Windows?

Thanks.

 

0 Kudos

Accepted Solutions
Highlighted
70 Views

Re: Use Intel Advisor on Linux cloud and analyze locally on Windows?

Jump to solution

Dear Jones,

In general, it is exactly like for your VTune usage. You need 2 versions of Advisor installed on Windows (for viewing) and Linux (for data  collection in cloud). Advisor only adds one extra feature called "snapshot" (see links below).

 

On the other hand, if all you need from Advisor is basic Roofline (CPU or GPU) or e.g. "Offload Advisor" data, then you don't need to install Advisor on Windows. Instead you can generate Roofline or Offload Advisor data as self-containing dynamic HTML file; so you generate it via command line in cloud and then copy HTML file to arbitrary device (even cell phone) with HTML browser and view the roofline data here.

Here is an example of self-containing HTML generation flow


advixe-cl --collect=roofline --project-dir=/user/test/vec_project -- <sample_dir>/vec_sample/vec_samples

advixe-cl --report=roofline --project-dir=/user/test/vec_project --report-output=./roofline.html​
 
This topic is covered in more details at given Advisor "Cookbooks" and articles: 

 

1) [this is linux to MAC, but you can do the same for Windows, just use Windows version]  https://software.intel.com/content/www/us/en/develop/documentation/advisor-cookbook/top/analyze-perf...

2) MPI-specific, see first part regarding "remote flow": https://software.intel.com/content/www/us/en/develop/articles/analyzing-intel-mpi-applications-using...

View solution in original post

5 Replies
Highlighted
71 Views

Re: Use Intel Advisor on Linux cloud and analyze locally on Windows?

Jump to solution

Dear Jones,

In general, it is exactly like for your VTune usage. You need 2 versions of Advisor installed on Windows (for viewing) and Linux (for data  collection in cloud). Advisor only adds one extra feature called "snapshot" (see links below).

 

On the other hand, if all you need from Advisor is basic Roofline (CPU or GPU) or e.g. "Offload Advisor" data, then you don't need to install Advisor on Windows. Instead you can generate Roofline or Offload Advisor data as self-containing dynamic HTML file; so you generate it via command line in cloud and then copy HTML file to arbitrary device (even cell phone) with HTML browser and view the roofline data here.

Here is an example of self-containing HTML generation flow


advixe-cl --collect=roofline --project-dir=/user/test/vec_project -- <sample_dir>/vec_sample/vec_samples

advixe-cl --report=roofline --project-dir=/user/test/vec_project --report-output=./roofline.html​
 
This topic is covered in more details at given Advisor "Cookbooks" and articles: 

 

1) [this is linux to MAC, but you can do the same for Windows, just use Windows version]  https://software.intel.com/content/www/us/en/develop/documentation/advisor-cookbook/top/analyze-perf...

2) MPI-specific, see first part regarding "remote flow": https://software.intel.com/content/www/us/en/develop/articles/analyzing-intel-mpi-applications-using...

View solution in original post

Highlighted
Beginner
49 Views

Re: Use Intel Advisor on Linux cloud and analyze locally on Windows?

Jump to solution

I ran the following on Linux in the cloud and downloaded the result folders to my local WIndows machine:

 

advixe-cl --collect=survey ./My_Program.exe
advixe-cl --collect=map ./My_Program .exe
advixe-cl --collect=dependencies ./My_Program .exe

Then I opened my Windows GUI for Advisor. I clicked the "Open Result" icon and opened the advixeproj file. It correctly shows sub-folders for survey, map and dependencies. When I open any of them, all I see in each of the window panes is:

     No Data
     To collect data about your application's performance, compile your application in Release Build settings and run Survey analysis.

My application is a C program (My_Program.exe) that calls a shared object written in assembly language (NASM). I assume Advisor can work with assembly language programs and shared objects because VTune does, so I don't think that's the problem.

Next to the Application field I click "Browse" and browse to the My_Program.exe, but Advisor says the file "is not an executable binary." Maybe that's because this is Windows and the binary is for Linux.

In your answer above you said this should work basically like VTune, so my question is: how do I view results from a Linux cloud server downloaded to my local Windows machine for analysis with the Windows GUI?

 

 

 

0 Kudos
Highlighted
29 Views

Re: Use Intel Advisor on Linux cloud and analyze locally on Windows?

Jump to solution

Hi Jones,

What is the wallclock time of your program (how much time it takes to execute, just very roughly speaking)?  Survey analysis is based on TPSS time sampling, so if your hot loops/functions should take at least ~0.01-0.1 seconds, otherwise the data may be not so statistically representative and can partially be abandoned by that reason

Also, for non-NASM part, do you have any time-consuming functions written in C ? Most importantly, did you compile your program (eg specifically C part) with -g to enable debug info in the application binary?

As for your original question – looks like you did it right  (although strictly speaking - for Advisor - it is better to explicitly specify –project-dir option, making sure it is the same across analysis types). Also to figure out what’s going on – it is enough to start from just doing survey analysis and checking if you can open corresponding data on Windows.

If all is good (-g, expect long wallclock in particular in c-part etc), but No Data issue persists – then please share the project-dir you’ve copied to the windows.

Zakhar.

0 Kudos
Highlighted
Beginner
23 Views

Re: Use Intel Advisor on Linux cloud and analyze locally on Windows?

Jump to solution

Hi Zakhar,

The C part is just a wrapper that reads a data file and passes a pointer to NASM. The bulk of the run time is spent in the NASM shared object. Everything is assembled/compiled with debug symbols (I use Clang for C and it's gfull in Clang).

However, the wall clock time may be the issue. I will try it again with a longer run (10x as much input data) and see if that works. If not I'll post the project-dir data here.

 

0 Kudos
Highlighted
Beginner
17 Views

Re: Use Intel Advisor on Linux cloud and analyze locally on Windows?

Jump to solution

I ran the survey analysis again with 10x more input data than my previous run:

advixe-cl --collect=survey ./My_Program.exe

I downloaded the collection folder (hs002) into a new project folder, but the Windows GUI would not open it as a new project because it uses the same advixeproj file. So I put it in the same project folder as before and opened it. Unfortunately, same problem (no data).

Here is what I got at the end of the run:

advixe: Collection stopped.
advixe: Warning: The application returned a non-zero exit value.
advixe: Opening result 24 % Resolving information for `libtpsstool.so'
advixe: Warning: Cannot locate debugging information for file `/opt/intel/adr_2020.1.0.605410/lib64/libtpsstool.so'.
advixe: Opening result 100 % done
advixe: Preparing frequently used data 0 % done
advixe: Preparing frequently used data 100 % done

Elapsed Time: 5.13s
Total CPU time: 8.51997

I would like to upload the hs002 folder but your site does not allow me to select an entire folder. Are there specific files in that folder that I should upload?

Also, how can I create a new project with a new advixeproj file? Do I need to delete or rename the old one?

It would help if Intel had some documentation about how to view results from a Linux cloud test using the local Windows GUI. I haven't found anything on the Intel site and very little on Stack Overflow. I think a lot of developers would be using my workflow, so it would help us to have some guidance in this area.

0 Kudos