Skip to main content
Josema Fernández Palacios
New Participant
Oct 14, 2024 7:15 AM UTC

Python & ZIIP

After applying PH52983: New Function: Added z Integrated Information Processor eligibility in IBM Open Enterprise SDK for Python 3.11, IBM Python supports deriving workload to ZIIP processors.

However, we are using the Python supplied with Rocket z/OS Miniconda. 

Does it support the use of ZIIP? If not... Is any enhanced planned for this?.



------------------------------
Josema Fernández Palacios
Rocket Forum Shared Account
------------------------------

    2 replies

    Vladimir Kudriakov
    Rocketeer
    Oct 14, 2024 1:44 PM UTC

    After applying PH52983: New Function: Added z Integrated Information Processor eligibility in IBM Open Enterprise SDK for Python 3.11, IBM Python supports deriving workload to ZIIP processors.

    However, we are using the Python supplied with Rocket z/OS Miniconda. 

    Does it support the use of ZIIP? If not... Is any enhanced planned for this?.



    ------------------------------
    Josema Fernández Palacios
    Rocket Forum Shared Account
    ------------------------------

    Hello Josema,

    Python supplied with Rocket z/OS Miniconda is just an IBM Python that is repackaged to Conda package format. Miniconda installer version 2.0.8 (miniconda-zos-2.0.8-2024-04-12.run) contains IBM Python 3.11.5, that allows to offload Python workload to the zIIP specialty processor.

    To take advantage of the zIIP, APF authorization must be set for the shared library "libpyzutil" after IBM Python installation.

    To set APF authorization for the required shared library, you should run the command:

    extattr +a <path_to_python_install>/lib/python3.11/lib-dynload/libpyzutil.cpython-311.so

    To verify that APF authorization is correctly set, you can run the command:

    extattr <path_to_python_install>/lib/python3.11/lib-dynload/libpyzutil.cpython-311.so

    Regards,



    ------------------------------
    Vladimir Kudriakov
    Software Engineer
    Rocket Software
    ------------------------------
    Josema Fernández Palacios
    New Participant
    Oct 15, 2024 2:00 AM UTC

    Hello Josema,

    Python supplied with Rocket z/OS Miniconda is just an IBM Python that is repackaged to Conda package format. Miniconda installer version 2.0.8 (miniconda-zos-2.0.8-2024-04-12.run) contains IBM Python 3.11.5, that allows to offload Python workload to the zIIP specialty processor.

    To take advantage of the zIIP, APF authorization must be set for the shared library "libpyzutil" after IBM Python installation.

    To set APF authorization for the required shared library, you should run the command:

    extattr +a <path_to_python_install>/lib/python3.11/lib-dynload/libpyzutil.cpython-311.so

    To verify that APF authorization is correctly set, you can run the command:

    extattr <path_to_python_install>/lib/python3.11/lib-dynload/libpyzutil.cpython-311.so

    Regards,



    ------------------------------
    Vladimir Kudriakov
    Software Engineer
    Rocket Software
    ------------------------------

    Thanks @Vladimir Kudriakov 

    Indeed, the python version is the one you indicate:

    P083598:/u/P083598:>python3 -V 
    Python 3.11.5                  

    And (now) is APF:

    P083598:/u/P083598:>extattr /usr/lpp/ported/lib/python3.11/lib-dynload/libpyzutil.cpython-311.so                                                                
    /usr/lpp/ported/lib/python3.11/lib-dynload/libpyzutil.cpython-311.so            
    APF authorized = YES                                                            
    Program controlled = NO                                                         
    Shared address space = YES                                                      
    Shared library = NO                                                             
                                                        



    ------------------------------
    Josema Fernández Palacios
    Rocket Forum Shared Account
    ------------------------------