diag-enable sc-parallel, Qdiag-enable:sc-parallel

Enables analysis of parallelization in source code (parallel lint diagnostics).

IDE Equivalent

Windows: Diagnostics > Level of Source Code Parallelization Analysis

Linux: None

Mac OS X: None

Architectures

IA-32, Intel® 64 architectures

Syntax

Linux and Mac OS X:

-diag-enable sc-parallel[n]

Windows:

/Qdiag-enable:sc-parallel[n]

Arguments

n

Is the level of analysis to perform. Possible values are:

1

Produces the diagnostics with severity level set to all critical errors.

2

Tells the compiler to generate a report with the medium level of detail. Produces the diagnostics with severity level set to all errors. This is the default if n is not specified.

3

Produces the diagnostics with severity level set to all errors and warnings.

Default

OFF

The compiler does not analyze parallelization in source code.

Description

This option enables analysis of parallelization in source code (parallel lint diagnostics). Currently, this analysis uses OpenMP pragmas, so this option has no effect unless option /Qopenmp (Windows) or option -openmp (Linux and Mac OS X) is set.

Parallel lint performs interprocedural source code analysis to identify mistakes when using parallel pragmas. It reports various problems that are difficult to find, including data dependency and potential deadlocks.

Source Checker diagnostics (enabled by /Qdiag-enable:sc on Windows* OS or -diag-enable sc on Linux* OS and Mac OS* X) are a superset of parallel lint diagnostics. Therefore, if Source Checker diagnostics are enabled, the parallel lint option is not taken into account.

Alternate Options

None

See Also