Intel® Moderncode for Parallel Architectures
Support for developing parallel programming applications on Intel® Architecture.

OpenMP Access violation problem

elad_golan
Beginner
541 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
Honored Contributor III
541 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.
0 Kudos
TimP
Honored Contributor III
541 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.

0 Kudos
Reply