Intel® Advisor Help

Specifying Directories

There are several options that let you specify directories when using the Intel® Advisor command line tools.

Search Directory

Use the search-dir option to specify which directories store the source, symbol and binary files that should be used during analysis. It is a good practice to always specify your search directories when using collect action to ensure that the source code annotations are found.

Multiple search directories can be specified, as in this example.

$ advixe-cl -collect suitability -project-dir ./advi -search-dir src:=./src1,./src2 -- myApplication

Project Directory

By default, the project directory is your current working directory. When you want a result written to a different directory, use the project-dir option to specify the project directory you want.

This command surveys the application to determine hotspots, writing the result to the specified project directory.

$ advixe-cl -collect survey -project-dir ./advi -search-dir all:=./src -- myApplication

This example generates a Survey report from the hotspots survey result in the specified project directory.

$ advixe-cl -report survey -project-dir ./advi -format=text -report-output ./out/survey.txt

User Data Directory

Use the user-data-dir option when you want to write result files to a directory other than project-dir, which is the default. For example, if you want the result stored in a remote directory, or if there is not enough space in project-dir to hold the data collections.

This example collects Suitability data, storing the data collection results in the location specified by user-data-dir.

$ advixe-cl -collect suitability -project-dir ./advi -user-data-dir <PATH> -search-dir src:=./src -- myApplication

See Also