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

associate construct with openmp

tracyx
New Contributor I
336 Views
ifort Version 12.0.3.174 Build 20110309

I'm using the associate construct to make code look somewhat more readable. I have something like:

associate ( a=>s%a, ... , j=>s%j, ..., z=>s%z )

...
call subroutine(j,...)
...

end associate

If code is compiled with openmp then in some regions of my code I get segmentation faults when calling the subroutine with an associated variable. However, if I were to replace the call by subroutine(s%j,...), then the code works as expected.

If code is compiled without openmp then it works either with call subroutine(j,...) or call subroutine(s%j,...).

My code is quite long and I do not have a simple test case for this. Is this a known issue?


0 Kudos
1 Reply
Steven_L_Intel1
Employee
336 Views
Not known to me, at least. Can you provide a small test case?
0 Kudos
Reply