Quantcast
Channel: Intel Developer Zone Articles
Viewing all articles
Browse latest Browse all 3384

/Qopenmp-threadprivate:compat doesn't work with uninitialized threadprivate common blocks

$
0
0

Reference Number : dpd200246096

Version : Intel® Fortran Compiler Versions 12, 13 and 14.

Operating System : Windows*

Problem Description : The /Qopenmp-threadprivate:compat option may not create thread-safe code when the application program contains uninitialized threadprivate common blocks, leading to incorrect run-time behavior. This issue is only seen with the Intel(R) Fortran Compiler for Windows*.

Status : This issue is under investigation and may be addressed in a future compiler.

Workaround : Either build the application using the alternative option /Qopenmp-threadprivate:legacy, (this is the default), or ensure that each threadprivate common block gets initialized at some place in the application program. The initialization may be through a data statement in a single program unit, or it may be through a BLOCK DATA subprogram. It is not necessary to initialize all elements of the common block.


Viewing all articles
Browse latest Browse all 3384

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>