I read all the solutions provided in this website in order to solve this problem, but it still exits.
When I run this command in cmd in windows 10 C:\pyopencl-2016.2.1>setup.py install
, this error will be shown:
c:\pyopencl-2016.2.1\src\c_wrapper\clinfo_ext.h(10) : fatal error C1083:
Cannot open include file: 'CL/cl.h': No such file or directory
error: command 'C:\\Users\\Neda\\AppData\\Local\\Programs\\Common\\Microsoft\\Visual C++ for Python\\9.0\\VC\\Bin\\amd64\\cl.exe' failed with exit status 2
Also, there is no cl.exe
and CL/
in the paths mentioned above.
I would really appreciate your attention.
EDITED:
I also ran this command in cmd Command "pip install --global-option=build_ext --global-option="-DHAVE_GL=1" pyopencl
and the problem was the same:
c:\users\neda\appdata\local\temp\pip-build-ugbqq9\pyopencl\src\c_wrapper\clinfo_ext.h(10) : fatal error C1083: Cannot open include file: 'CL/cl.h': No such file or directory
error: command '
C:\\Users\\Neda\\AppData\\Local\\Programs\\Common\\Microsoft\\Visual C++ for Python\\9.0\\VC\\Bin\\amd64\\cl.exe' failed with exit status 2
----------------------------------------
Command "c:\users\neda\appdata\local\enthought\canopy\user\python.exe -u -c "import setuptools, tokenize;__file__='c:\\users\\neda\\appdata\\local\\temp\\pip-build-ugbqq9\\pyopencl\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" build_ext -DHAVE_GL=1 install --record c:\users\neda\appdata\local\temp\pip-l6bnzf-record\install-record.txt --single-version-externally-managed --compile --install-headers c:\users\neda\appdata\local\enthought\canopy\user\include\site\python2.7\pyopencl" failed with error code 1 in c:\users\neda\appdata\local\temp\pip-build-ugbqq9\pyopencl\
Seems you don't have any OpenCL SDK installed.
There are different SDK from different providers:
At first, install OpenCL SDK, and don't forget to setup right environment variable INCLUDE to point to your OpenCL include library (for example: INCLUDE = C:\Program Files (x86)\Intel\OpenCL SDK\6.3\include
).