jroose / pyclblas

Python Bindings for clBLAS library
http://pyclblas.readthedocs.io/en/latest/
6 stars 3 forks source link

Installation error : can't find ' clBLAS.h ' #1

Open wreckdump opened 6 years ago

wreckdump commented 6 years ago

I am having problem installing pyclblas with the following error messages.

Collecting pyclblas
  Using cached pyclblas-0.8.5.tar.gz
Installing collected packages: pyclblas
  Running setup.py install for pyclblas ... error
    Complete output from command /usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-u75stllk/pyclblas/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-221wwvjq-record/install-record.txt --single-version-externally-managed --compile:
    running install
    running build
    running build_ext
    building '_pyclblas_swig' extension
    swigging src/pyclblas_swig.i to src/pyclblas_swig_wrap.c
    swig -python -o src/pyclblas_swig_wrap.c src/pyclblas_swig.i
    creating build
    creating build/temp.linux-x86_64-3.6
    creating build/temp.linux-x86_64-3.6/src
    gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -fPIC -I/usr/include/python3.6m -c src/pyclblas_swig_wrap.c -o build/temp.linux-x86_64-3.6/src/pyclblas_swig_wrap.o
    src/pyclblas_swig_wrap.c:3034:10: fatal error: clBLAS.h: No such file or directory
     #include <clBLAS.h>
              ^~~~~~~~~~
    compilation terminated.
    error: command 'gcc' failed with exit status 1

    ----------------------------------------
Command "/usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-u75stllk/pyclblas/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-221wwvjq-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-u75stllk/pyclblas/

Apparently, it can not find " clBLAS.h " header file. I do have clBLAS installed and working on my machine. Any idea what could be the problem?

Thank you.

seanboothm commented 3 years ago

On Ubuntu 18.04 I was able to resolve this by installing libclblas-dev.

sudo apt install libclblas-dev