getting “pygpu was configured but could not be imported” error while trying with OpenCL+Theano on AMD Radeon

前端 未结 2 1830
孤独总比滥情好
孤独总比滥情好 2021-01-11 20:31

I have followed the instructions from this:

https://gist.github.com/jarutis/ff28bca8cfb9ce0c8b1a

But then when I tried : THEANO_FLAGS=device=opencl0:0 python

2条回答
  •  隐瞒了意图╮
    2021-01-11 21:04

    Installing the blas library seems enough. I'm doing tests for the same problem.

    cd ~
    git clone https://github.com/clMathLibraries/clBLAS.git
    cd clBLAS/
    mkdir build
    cd build/
    sudo apt-cache search openblas
    sudo apt-get install libopenblas-base libopenblas-dev
    sudo apt-get install liblapack3gf liblapack-doc liblapack-dev
    cmake ../src
    make
    sudo make install
    

    And after that

    git clone https://github.com/Theano/libgpuarray.git
    cd libgpuarray
    mkdir Build
    cd Build
    cmake .. -DCMAKE_BUILD_TYPE=Release
    
    make
    sudo make install
    cd ..
    sudo apt-get install cython
    sudo apt-get install python-numpy python-scipy python-dev python-pip python-nose g++ libopenblas-dev git
    

    Building and Installing with regard to python3

    python3 setup.py build
    sudo -H python3 setup.py install
    

    I hope it can help you. Now just the dev version of theano is missing for me.

提交回复
热议问题