OpenCL configuration settings - opencl

I have a project which requires OpenCL. I have installed CUDA and OpenCL on my machine but when I 'make' my project the following error occurs:
CL/cl.h: No such file or directory
I'm using windows7 and Visual Studio 2008.

This error indicates that the compiler is not able to find the CL/cl.h header file. Find out where the OpenCL SDK you are using is installed and the directory that contains the OpenCL header files inside it.
On my computer for example, the Intel OpenCL SDK header files are in: C:\Program Files (x86)\Intel\OpenCL SDK\1.5\include\CL And the NVIDIA OpenCL header files are in: C:\Program Files (x86)\NVIDIA GPU Computing Toolkit\CUDA\v4.1\include\CL
To compile with the Intel OpenCL SDK, I would add C:\Program Files (x86)\Intel\OpenCL SDK\1.5\include to the Visual Studio project. That is, add this path to Project -> Properties -> C/C++ -> General -> Additional Include Directories

Related

Buildroot: annoying false error architecture for "/root/foo/bar.aocx" is "Advanced Micro Devices X86-64", should be "ARM"

I have a buildroot-based project, for an Intel FPGA SoC, using OpenCL. There are some precompiled OpenCL binaries for the FPGA in the overlay source directory with the file extension .aocx that should be copied to the resulting file system image.
However, those FPGA binaries are for some reasons recognizes as AMD X86-64 binaries and trigger an error when rebuilding the root file system.
Can I configure Buildroot to not check files with the .aocx extension?
Files from a rootfs overlay are not directly checked, so I assume you mean that you are installing these files from a custom package instead? You can add them to the ignore list using the _BIN_ARCH_EXCLUDE variable. See the manual for details: https://buildroot.org/downloads/manual/manual.html#generic-package-reference

How to build a project in qt 5.2.1 for amd64 (setup cl.exe and missing mspdb110.dll file)?

I have installed qt 5.2.1 and Visual Studio 2012 in Windows 7 x64 (I have codepage 1251 if it matters). I use vs11 compiler.
Firstly I tried to run 'Rebuild all' action and I have received an error connected with cl.exe.
Then I added the path to vs11/bin to PATH variable (where cl.exe file is located; strange but it is in Program Files x86 folder) and have received the error: mspdb110.dll is missing. What should I do next? How to build the project?
Add to PATH path of directory with this dll. It's in something like C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\bin\amd64. If you have not such file in entire system, I guess you should reinstall Visual Studio.

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

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:
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 )
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 ?

CL/cl.h not found in windows intel opencl sdk?

I have installed intel opencl sdk in windows 8. All the files are located as they have to according to user guide but whenever I am trying to compile any code it is showing error that Cl/cl.h not found. Also, the user manual says that application needs to be linked to the libraries , but that option is nowhere to be found in the IDE.
This is the error I am getting at console
Setting target instruction set architecture to: Default (Advanced Vector Extension (AVX))
OpenCL Intel CPU device was found!
Device name: Intel(R) Core(TM) i5-3210M CPU # 2.50GHz
Device version: OpenCL 1.2 (Build 82248)
Device vendor: Intel(R) Corporation
Device profile: FULL_PROFILE
Compilation started
1:2:9: fatal error: 'CL/cl.h' file not found
Compilation failed
Build failed!
Any help would be welcomed...Thanks
I guess you have not configured your visual studio for OpenCL.
Check whether INTELOCLSDKROOT is got added in environment variable if not add it or else
configure visual studio to find header file and openCL library files.
Configuring visual studio ->
CL Header file
Properties -> All Configurations -> Configuration Properties-> C/C++ -> General -> Additional Include Directories -> SPECIFY_THE_PATH_OF_CL_INCLUDE_DIRECTORY
Linking CL Library
Properties -> All Configurations -> Configuration Properties-> C/C++ -> Linker -> General -> Additional Dependencies ->SPECIFY_THE_PATH_OF_CL_LIBRARY_BASED_ON_64/32_BIT_MACHINE
in linker -> input -> add OpenCL.lib
you will need to install the OpenCL runtime, it is another file other than the SDK file
This is OpenCL runtime 64-bit link

Qt Creator issue : Cannot open include file: ‘windows.h’

I have installed ‘Qt Creator 2.4.1 Based on Qt 4.7.4 (32 bit)’ on Windows 7 with Visual studio 2008. But on creating the basic project am getting following error :
c:\qtsdk\desktop\qt\4.8.1\msvc2008\mkspecs\win32-msvc2008\..\win32-msvc2005\qplatformdefs.h:67:
error: C1083: Cannot open include file: 'windows.h': No such file or directory
Also I checked the windows.h its present in following location : C:\Program Files\Microsoft SDKs\Windows\v7.0A\Include\
I would like to mention that I can’t use the MinGW target due to project specifications.
Requesting everyone to help me out of this situation.
in Qt Creator, Tools--Options, Build&Run, Kits, choose a kit and edit its attributes, change the Compiler from "Microsoft Windows SDK ..." to "Microsoft Visual C++ Compiler 9.0 (x86)".
I solved the same problem by this way.
Check Qt creator's Projects/Build Environment and edit variables
(INCLUDE, LIB, OSINCLUDES, OSLIBRARIES, PROGRAMFILES, SDKDIR, SDKTOOLS, WINDOWSSDKDIR)
that contains Windows SDK 7.1 path(C:\Program Files **(x86)\Microsoft SDKs\Windows\v7.1**).
Maybe Windows SDK 7.1 is installed at "C:\Program Files\Microsoft SDKs\Windows\v7.1"

Resources