IBM Support

LI82404: OMP_IS_INITIAL_DEVICE() NOT DEFINED IN OMP.H SHIPPED WITH XLSMP

Subscribe to this APAR

By subscribing, you receive periodic emails alerting you to the status of the APAR, along with a link to the fix after it becomes available. You can track this item individually or track all items by product.

Notify me when this APAR changes.

Notify me when an APAR for this component changes.

 

APAR status

  • Closed as program error.

Error description

  • When compiling with the omp.h shipped with IBM XLSMP and making
    use of the omp_is_initial_device(), clients get a 'Undefined
    reference to 'omp_is_initial_device' error.
    
    
    =====TESTCASE:
    $ cat testcode.cc
    #include <omp.h>
    
    int main(int argc, char* argv[])
    {
        int gpu_id = 0;
        /* Pick GPU to use */
        omp_set_default_device(gpu_id);
    
    
    
        int runningOnGPU = 0;
    
    
    #pragma omp target map(from:runningOnGPU)
        {
            if (omp_is_initial_device() == 0)
                runningOnGPU = 1;
        }
    
        return(0);
    }
    $
    
    ===== ACTUAL OUTPUT:
    Undefined reference to 'omp_is_initial_device' in
    <my_pgm>.cubin
    

Local fix

  • N/A
    

Problem summary

  • USERS AFFECTED:
    Users compiling with omp.h might be affected by this issue.
    
    PROBLEM DESCRIPTION:
    The omp_is_initial_device() was not defined in omp.h.
    

Problem conclusion

  • The missing omp_is_initial_device() was added to the omp.h
    shipped with IBM XLSMP
    

Temporary fix

Comments

APAR Information

  • APAR number

    LI82404

  • Reported component name

    XL C/C++ LINUX

  • Reported component ID

    5725C7310

  • Reported release

    G11

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2022-02-28

  • Closed date

    2022-02-28

  • Last modified date

    2022-02-28

  • 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

    XL C/C++ LINUX

  • Fixed component ID

    5725C7310

Applicable component levels

[{"Line of Business":{"code":"LOB57","label":"Power"},"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Product":{"code":"SSXVZZ","label":"XL C\/C++ for Linux"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"G11"}]

Document Information

Modified date:
01 March 2022