Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.

OMP abort problem

wong_david-c
Beginner
681 Views
Hi,

I am using ifc 9.0. The code does not have any common block. When I ran the code with two threads, I got the following abort message:

OMP abort: Inconsistent THREADPRIVATE common block declarations are non-conforming and are unsupported.
Either all threadprivate common blocks must be declared identically, or the largest instance of each threadprivate common block must be referenced first during the run.
Abort

Does any one have the same problem or know what is going on?

Thanks,
David
0 Kudos
2 Replies
Michael_R_Intel4
Employee
681 Views
What things do you have declared as THREADPRIVATE in your program?
Can you give an example of your declarations, or a small reproducer?
Mike R.
0 Kudos
wong_david-c
Beginner
681 Views
Hi Mike,

threadprivate variable includes real, integer, allocatable, and character. When I construct some tiny test programs, they all work. But in the small subset (at this point it contains of more than thirty subroutines) of my application, it fails. It failed at this type of formatted write statement:

WRITE(TITLE1,130)
130 FORMAT(68(' '))

TITLE1 is declared as character*68. When I replace the write statement with

TITLE1 = ' '

It works but it failed later at a deallocation statement. I have checked the variable has been allocated properly and with the right size. All these failures do not make any sense. My thought was some memory location was being stumped on. I turned on all the run time array bound checking and nothing turned up.

Thanks,
David
0 Kudos
Reply