Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
29279 Discussions

Array constructor is not thread safe

Andrew_Smith
Valued Contributor I
439 Views
If you assign an array using an array constructor such as [1.2, 3.0, 4.0] or the older (/1.2, 3.0, 4.0/) then it assigns random number occasionally when run under openMP. My support number is 551578.

Attached example. Please run in debug mode.

No error occures in release mode which makes me think that some temporary memory is used in debug mode that gets optimised out in release mode.
0 Kudos
1 Reply
Steven_L_Intel1
Employee
438 Views
Andrew,

We'll continue this through Intel Premier Support.
0 Kudos
Reply