AnsweredAssumed Answered

OpenCL Samples Visual Studio Compile Errors

Question asked by watkinsp on Mar 26, 2014
Latest reply on Feb 6, 2015 by evo

I just downloaded the the AMD OpenCL SDK and tried compiling one of the samples in Visual Studio 2010. These are the errors I get:

Error 1 error C1083: Cannot open include file: 'CL/cl.hpp': No such file or directory C:\Users\watkinsp\AMD APP SDK\2.9\samples\opencl\cl\DynamicOpenCLDetection\VectorAddition\VectorAddition.cpp 20 1 VectorAddition

Error 2 error C1083: Cannot open include file: 'CL/cl.h': No such file or directory c:\users\watkinsp\amd app sdk\2.9\samples\opencl\cl\template\Template.hpp 24 1 Template

Error 3 error C1083: Cannot open include file: 'CL/opencl.h': No such file or directory C:\Users\watkinsp\AMD APP SDK\2.9\include\SDKUtil\CLUtil.hpp 24 1 BufferImageInterop

Error 4 error LNK1104: cannot open file 'OpenCL.lib' C:\Users\watkinsp\AMD APP SDK\2.9\samples\opencl\cl\DynamicOpenCLDetection\LINK DynamicOpenCLDetection

Error 5 error C1083: Cannot open include file: 'CL/opencl.h': No such file or directory C:\Users\watkinsp\AMD APP SDK\2.9\include\SDKUtil\CLUtil.hpp 24 1 TransferOverlap

Error 6 error C1083: Cannot open include file: 'CL/opencl.h': No such file or directory C:\Users\watkinsp\AMD APP SDK\2.9\include\SDKUtil\CLUtil.hpp 24 1 URNG

Error 7 error C1083: Cannot open include file: 'CL/opencl.h': No such file or directory C:\Users\watkinsp\AMD APP SDK\2.9\include\SDKUtil\CLUtil.hpp 24 1 SobelFilter

Error 8 error C1083: Cannot open include file: 'CL/opencl.h': No such file or directory C:\Users\watkinsp\AMD APP SDK\2.9\include\SDKUtil\CLUtil.hpp 24 1 SimpleImage

 

I haven't modified anything. I guess I just assumed I could open the provided Visual Studio 2010 solution and compile one of the samples out of the box. Did I miss an installation step?

Outcomes