严重错误C1083:无法打开包含文件:'CL/cl.h' [英] fatal error C1083: Cannot open include file: 'CL/cl.h'
问题描述
我阅读了本网站上提供的所有解决方案以解决此问题,但是仍然存在.
当我在Windows 10 C:\pyopencl-2016.2.1>setup.py install
的cmd中运行此命令时,将显示此错误:
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
此外,上述路径中没有cl.exe
和CL/
.
非常感谢您的关注.
Also, there is no cl.exe
and CL/
in the paths mentioned above.
I would really appreciate your attention.
我也在cmd Command "pip install --global-option=build_ext --global-option="-DHAVE_GL=1" pyopencl
中运行了此命令,问题是相同的:
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\
推荐答案
似乎您没有安装任何OpenCL SDK.
Seems you don't have any OpenCL SDK installed.
来自不同提供商的SDK有所不同:
There are different SDK from different providers:
- NVIDIA – CUDA工具包
- AMD – AMD APP SDK
- 英特尔- OpenCL SDK
- NVIDIA – CUDA Toolkit
- AMD – AMD APP SDK
- Intel - OpenCL SDK
首先,安装OpenCL SDK,不要忘记设置正确的环境变量INCLUDE指向您的OpenCL包含库(例如:INCLUDE = C:\Program Files (x86)\Intel\OpenCL SDK\6.3\include
).
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
).
这篇关于严重错误C1083:无法打开包含文件:'CL/cl.h'的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!