IBM Support

IY37699: "LOOP IS NOT COUNTABLE" BUT #PRAGMA OMP PARALLEL FOR ACCEPTS IT

A fix is available

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • The customer sent a testcase:
    -----------------------------
    #include <iostream.h>
    #include <omp.h>
    int main()
    {
      omp_lock_t l;
      int i,j;
      i=10;
      omp_init_lock(&l);
      #pragma omp parallel
      {
        #pragma omp for
        for (j=0; j<i;j++)
        {
          int tid;
          tid=omp_get_thread_num();
          omp_set_lock(&l);
          cerr << "j=" <<j << ", tid=" << tid << endl;
          omp_unset_lock(&l);
        }
      }
    }
    When compiling: xlC_r test.cpp -qsmp=omp, we get a warning
    message"test.cpp", line 13: 1586-352 (W) Loop is not countable.
    Loop not parallelized"
    I noticed if we combine the two pragmas with #pragma omp
    parallel for, the compiler doesn't issue a warning message.
    Error was reproduced on V6 latest which ipa is 021126
    

Local fix

Problem summary

  •  same as submitter's text
    

Problem conclusion

Temporary fix

Comments

APAR Information

  • APAR number

    IY37699

  • Reported component name

    VA C++ PROF FOR

  • Reported component ID

    5765F5600

  • Reported release

    600

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2002-11-28

  • Closed date

    2003-03-31

  • Last modified date

    2007-04-30

  • APAR is sysrouted FROM one or more of the following:

  • APAR is sysrouted TO one or more of the following:

Fix information

  • Fixed component name

    VA C++ PROF FOR

  • Fixed component ID

    5765F5600

Applicable component levels

  • R600 PSN U811609

       UP07/04/30 I 1000

Fix is available

  • Select the PTF appropriate for your component level. You will be required to sign in. Distribution on physical media is not available in all countries.

[{"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Product":{"code":"SSO198","label":"IBM Visualage C++ Professional for AIX"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"6.0","Edition":"","Line of Business":{"code":"LOB57","label":"Power"}}]

Document Information

Modified date:
19 August 2024