Cannot run OpenCL on an NVIDIA Card ( 'CL/cl_p

2019-08-01 21:55发布

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 ?

标签: opencl
0条回答
登录 后发表回答