installing TensorFlow on the IBM power8

后端 未结 2 744
野的像风
野的像风 2021-01-14 06:44

I have access to a large IBM Power8 machine, and would like to install TensorFlow on it. Naturally, I tried the quick pip install, but it failed:

sudo pip i         


        
2条回答
  •  夕颜
    夕颜 (楼主)
    2021-01-14 07:09

    Using miniconda:

    Installing miniconda:

    wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux--ppc64le.sh -O miniconda.sh
    
    bash miniconda.sh
    

    Accept the condition and allow conda to be added to PATH

    rm miniconda.sh
    echo export IBM_POWERAI_LICENSE_ACCEPT=yes >> ~/.bashrc
    source ~/.bashrc
    

    This sould add (base) on terminal. Add the correct channel as first priority

    conda config --add default_channels https://repo.anaconda.com/pkgs/main
    conda config --prepend channels https://public.dhe.ibm.com/ibmdl/export/pub/software/server/ibm-ai/conda/
    

    Create environment (it is good practice not to install packages on base)

    conda create -n ai python=3.7
    conda activate ai
    conda install --strict-channel-priority tensorflow-gpu
    

    For more information on miniconda on IBM Power 8 and Anaconda: IBM Source & Anaconda Source

提交回复
热议问题