# prof-src-dir, Qprof-src-dir

Determines whether directory information of the source file under compilation is considered when looking up profile data records. This feature is only available for ifort.

## Syntax

Linux: | -prof-src-dir -no-prof-src-dir

macOS: | -prof-src-dir -no-prof-src-dir

Windows: | /Qprof-src-dir /Qprof-src-dir-

## Arguments

None

## Default

[Q]prof-src-dir | Directory information is used when looking up profile data records in the .dpi file.

## Description

This option determines whether directory information of the source file under compilation is considered when looking up profile data records in the .dpi file. To use this option, you must also specify the [Q]prof-use option.

If the option is enabled, directory information is considered when looking up the profile data records within the .dpi file. You can specify directory information by using one of the following options:

- Linux and macOS: -prof-src-root or -prof-src-root-cwd

- Windows: /Qprof-src-root or /Qprof-src-root-cwd

If the option is disabled, directory information is ignored and only the name of the file is used to find the profile data record.

Note that option [Q]prof-src-dir controls how the names of the user's source files get represented within the .dyn or .dpi files. Option [Q]prof-dir specifies the location of the .dyn or the .dpi files.

## IDE Equivalent

None

## Alternate Options

None

Parent topic: Profile Guided Optimization Options

## See Also

prof-use, Qprof-use compiler option
prof-src-root, Qprof-src-root compiler option
prof-src-root-cwd, Qprof-src-root-cwd compiler option