Intel® Fortran Compiler 17.0 Developer Guide and Reference
Controls the display of diagnostic information during compilation.
Linux and macOS: | -diag-type=diag-list |
Windows: | /Qdiag-type:diag-list |
type |
Is an action to perform on diagnostics. Possible values are:
|
||||||||||||||||||||
diag-list |
Is a diagnostic group or ID value. Possible values are:
The diagnostic messages generated can be affected by certain options, such as [Q]x, /arch (Windows) or -m (Linux and OS X). |
OFF |
The compiler issues certain diagnostic messages by default. |
This option controls the display of diagnostic information during compilation. Diagnostic messages are output to stderr unless the [Q]diag-file option is specified.
The [Q]diag options do not control diagnostics emitted at run-time. For more information about run-time errors and diagnostics, see Handling Run-Time Errors.
To control the diagnostic information reported by the vectorizer, use options [q or Q]opt-report and [q or Q]opt-report-phase, phase vec.
To control the diagnostic information reported by the auto-parallelizer, use options [q or Q]opt-report and [q or Q]opt-report-phase, phase par.
Visual Studio: Diagnostics > Disable Specific Diagnostics
Eclipse: None
Xcode: Diagnostics > Disable Specific Diagnostics
enable vec |
Linux and OS X: -qopt-report; -qopt-report -qopt-report-phase=vec Windows: /Qopt-report; /Qopt-report /Qopt-report-phase:vec |
disable vec |
Linux and OS X: -qopt-report=0 -qopt-report-phase=vec Windows: /Qopt-report:0 /Qopt-report-phase:vec |
enable par |
Linux and OS X: -qopt-report; -qopt-report -qopt-report-phase=par Windows: /Qopt-report; /Qopt-report /Qopt-report-phase:par |
disable par |
Linux and OS X: -qopt-report=0 -qopt-report-phase=par Windows: /Qopt-report:0 /Qopt-report-phase:par |
The following example shows how to enable diagnostic IDs 117, 230 and 450:
-diag-enable=117,230,450 ! Linux and OS X systems
/Qdiag-enable:117,230,450 ! Windows systems
The following example shows how to change vectorizer diagnostic messages to warnings:
-diag-enable=vec -diag-warning=vec ! Linux and OS X systems
/Qdiag-enable:vec /Qdiag-warning:vec ! Windows systems
Note that you need to enable the vectorizer diagnostics before you can change them to warnings.
The following example shows how to disable all auto-parallelizer diagnostic messages:
-diag-disable=par ! Linux and OS X systems
/Qdiag-disable:par ! Windows systems
The following example shows how to change all diagnostic warnings and remarks to errors:
-diag-error=warn,remark ! Linux and OS X systems
/Qdiag-error:warn,remark ! Windows systems
The following example shows how to get a list of only vectorization diagnostics:
-diag-dump -diag-disable=all -diag-enable=vec ! Linux and OS X systems
/Qdiag-dump /Qdiag-disable:all /Qdiag-enable:vec ! Windows systems