Tensorflow Amd Cpu Support Installation in Ubuntu 20.04

February 28, 2023 | By the+gnu+linux+evangelist.

Installing

  1. 3. Installing Dependencies

    Then to Install Required Python Software
    Run one by one:

    pip install --upgrade pyparsing
    pip install --upgrade appdirs
    pip install --upgrade --no-deps --force-reinstall --no-cache-dir numpy==1.24.0 absl-py
    pip install -U pip six wheel importlib-metadata setuptools mock future
    pip install -U keras_applications --no-deps
    pip install -U keras_preprocessing --no-deps

    Possibly take into account to Amend also the Numpy Version cause there is a recommended one for every Python Release. As for Python 3.7 it was “1.21.6”.

  2. 4. Downloading ZenDNN Library

    Download ZenDNN Library for Ubuntu GNU/Linux

    ZenDDN Tensorflow .Zip Library for Ubuntu

    Grab the Tensorflow supporting Library.

  3. 5. Extracting ZenDNN Library

    Then Extract Tensorflow ZenDNN Library into /tmp Directory
    First, if needed to Install Unzip:

    sudo apt install unzip

    Then if it does Not Open automatically then Double-Click/Right-Click to Open with Archive Manager:
    Extracting
    Or from Command Line:

    unzip -d ~ ~/Downloads/*ZenDNN*.zip

    Finally, if yuo are in Trouble to Find Out it on Terminal See: How to Access Downloads Folder from Browser.

  4. 6. Installing ZenDNN Library

    Then to Install Tensorflow ZenDNN Library
    To Setup the TensorFlow wheel Package.
    Access the Target:

    cd ~/TF*ZenDNN*

    And run:

    source ./scripts/TF_ZenDNN_setup_release.sh
    Installation
  5. 7. Amending User’s Env Vars

    (Optional) In case of Issue in Benchmark Testing
    You may be needed to Set the Environment Variables indicated in the Setup Output.
    For further insight you should see the Official TensorFlow ZenDNN Docs.
    First, you may try some TensorFlow Benchmark Testing.
    In case to find out the Number of CPUs Cores in your System:

    nproc --all

    And consequently you may then Set the Variable:

    echo "export GOMP_CPU_AFFINITY=0-[CPUSNUM]" >> ~/.bashrc

    Replace [CPUSNUM] with the Output of the previous Command in the above.
    Last, to Reload the Path simply:

    bash
  6. 8. TensorFlow Getting-Started Guide

    Getting-Started with TensorFlow on Ubuntu GNU/Linux

    TensorFlow Quick Start Guide

Contents


Tags: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,

QuickChic Theme • Powered by WordPress