Cannot run OpenCL on an NVIDIA Card ( 'CL/cl_platform.h': No such file or directory)

这一生的挚爱 提交于 2019-12-11 09:59:17

问题


I am trying to run code written in OpenCL on an NVIDIA GPU.

  • I installed NVIDIA GPU Computing Tool Kit
  • I added the include and lib path to my project properties
  • I set the environment variable by the path of bin

But I get this error:

CL/cl_platform.h': No such file or directory

I notice my project confused between these paths:

  1. C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v4.1\include
    (which has Cl/cl_platform.h but project do not see it although I set it in include properties )

  2. C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\CL

I need the first path but it only sees the second path. What should I do ?

来源:https://stackoverflow.com/questions/23793748/cannot-run-opencl-on-an-nvidia-card-cl-cl-platform-h-no-such-file-or-direct

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!