Issues warnings about potential parallel programming related problems that may cause incorrect results when using OpenMP or Sun parallel directives and pragmas.
Use with -xopenmp and OpenMP API directives, or with -xexplicitpar and MP parallelization directives.
Warnings are issued when the compiler detects the following situations:
Loops that are parallelized using MP directives when there are data dependencies between different loop iterations
Problematic use of OpenMP data sharing attributes clauses, such as declaring a variable "shared" whose accesses in an OpenMP parallel region may cause data race, or declaring a variable "private" whose value in a parallel region is used after the parallel region.
No warnings appear if all parallelization directives are processed without problems.
cc -xopenmp -vpara any.c
Sun Studio compilers support OpenMP 2.5 API parallelization. Consequently, the MP pragmas directives are deprecated and are no longer supported. See the OpenMP API User’s Guide for information on migrating to the OpenMP API.