Intel® Moderncode for Parallel Architectures
Support for developing parallel programming applications on Intel® Architecture.
Announcements
This community is designed for sharing of public information. Please do not share Intel or third-party confidential information here.

OpenMP Access violation problem

elad_golan
Beginner
149 Views

Hi,

I am trying to parallelise my code, but I get an access violation error, and my program crashes.

here is my code snippet :

#pragma omp parallel for

for (i=0 ; i

{

if (!EmptyDct)

{

/* Using Intel's IPPi IDCT */

ippiDCT8x8Inv_16s_C1I(DiffMB);

}

}

I am using Intel compiler and Intel Performance Primitives ver 4.1.

Please help,

Elad

0 Kudos
2 Replies
TimP
Black Belt
149 Views
If your IPP function itself is threaded,that threading would have to be disabled. If IPP were OpenMP threaded, it would be taken care of automatically, but I don't believe this is the case. If your IPP docs don't cover this, you might ask in the IPP forum.
TimP
Black Belt
149 Views

I note that the IPP dynamic libraries are claimed to be thread safe, not the static ones.

ippiDCT functions are not listed as being OpenMP enabled. In case of doubt about library thread safety, it may be possible to run with Intel Thread Checker, to see if a thread safety problem is found.

Reply