The SMP directives listed in the following table have been deprecated and might be removed in the future release. Use the corresponding OpenMP directives to obtain the same behavior.
| SMP directive name | OpenMP directive/clause name |
|---|---|
| #pragma ibm critical | #pragma omp critical |
| #pragma ibm parallel_loop | The #pragma omp parallel for pragma with the schedule clause. |
| #pragma ibm schedule |
The following examples show how to replace the deprecated SMP directives with their corresponding OpenMP ones.
For the critical pragma:
#pragma ibm critical(lck)
{
...
}
is replaced by
#pragma omp critical(lck)
{
...
}
For the schedule pragma:
#pragma ibm parallel_loop
#pragma ibm schedule(static, 5)
for (i=0; i<N; i++)
{
...
}
is replaced by
#pragma omp parallel for schedule(static, 5)
for (i=0; i<N; i++)
{
...
}