Community
cancel
Showing results for 
Search instead for 
Did you mean: 
LevD
Beginner
58 Views

Is it well known OpenMP bug?

I used OpenMP pragmas in DLL and it causes programm crush. DLL has not manual initialization function and load dynamicaly. I used icl 6.0 and icl 7.0. Today I use win32 API directly. Which compiler version hands OpenMP in DLLs appropriate?
0 Kudos
6 Replies
Henry_G_Intel
Employee
58 Views

Hello,
Putting OpenMP pragmas in a DLL should not cause problems for either the 6.0 or 7.0 compilers. What are the symptoms of the program crash? Are there any error messages?

Are you sure the OpenMP is correct? I suggest analyzing the DLL with the Intel Thread Checker. It might help if you posted a code fragment showing the OpenMP.

Best regards,
Henry
LevD
Beginner
58 Views


Ops it even not compile.

static int buf[1024];

#pragma omp parallel for
for (i=0; i<1024; i++)
buf=i;

PreAnalysis$.cpp(233) : (col. 3) remark: OpenMP DEFINED LOOP WAS PARALLELIZED.
PreAnalysis$.cpp(234) : (col. 3) remark: LOOP WAS VECTORIZED.
PreAnalysis$.cpp(233): (col. 3) internal error: 0_1546
compilation aborted for PreAnalysis$.cpp (code 4)
bronx
Beginner
58 Views

a good way to post code here is to use the "Attach Files" button to upload your code snippets, you will be even allowed to update the files after posting
Henry_G_Intel
Employee
58 Views

I couldn't reproduce the internal error with this simple code (compiled 'icl -c -Qopenmp -QxKW simple.cpp'):
static int buf[1024];
 
void func ()
{
   int j;
 
   #pragma omp parallel for
   for (j = 0; j < 1024; j++)
      buf = j;
}

The compiler will either parallelize or vectorize the loop but I can't force it to do both. My code is probably too simple. An internal compiler error is something that must be fixed. Do you have a small code that reproduces the error? If not, please submit this issue to Intel Premier Support and provide your Package ID and the error number. To get the Package ID, type 'icid' at the compiler command prompt or go to Start Programs Intel Software Development Tools Registration and Support Get Package ID.

Thanks,
Henry
LevD
Beginner
58 Views


HenryG

I download icl7.1 and I have to notice that this bag disappears in version 7.1. However, version 6.0 has it still.
Henry_G_Intel
Employee
58 Views

Thanks for letting us know that the problem is fixed in the current release.

Henry
Reply