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
Related
I have a DMP from an application running on my system. This is a .NET Core application. I'm trying to use WinDbg to look at memory issues. From reading around it appears that I need to get the SOS.DLL file that matches the runtime used and it appears a lot harder than expected.
The application appear to be running on a runtime on my PC that does not match a released SDK:
WinDbg: lmDvmcoreclr shows
Loaded symbol image file: coreclr.dll
Image path: C:\Program Files\WindowsApps\Microsoft.NET.CoreRuntime.2.2_2.2.27404.2_x86__8wekyb3d8bbwe\coreclr.dll
Image name: coreclr.dll
Browse all global symbols functions data
Timestamp: Tue Jan 22 18:40:54 2019 (5C47AA06)
CheckSum: 004573F9
ImageSize: 00460000
File version: 4.6.27322.1
Product version: 4.6.27322.1
I download the SDKs from https://dotnet.microsoft.com/download/dotnet-core/2.2 to try and find a matching coreclr.dll so I can use the SOS.dll for it.
SDK 2.2.3 -> build 27414
SDK 2.2.2 -> build 27317
So this 4.6.27322.1 appears to be a release that is somehow on my system as between these builds.
Any ideas how this can happen and how I can get the SOS.DLL for it?
To give an example of the issue I am really showing (which is making me believe I should get the exact SOS.DLL), it is this when I try and use SOS:
0:000> .loadby sos coreclr
0:000>
0:000> !dumpheap -stat
PDB symbol for coreclr.dll not loaded
Failed to load data access module, 0x80131c4f
Verify that 1) you have a recent build of the debugger (6.2.14 or newer)
2) the file mscordaccore.dll that matches your version of coreclr.dll is
in the version directory or on the symbol path
3) or, if you are debugging a dump file, verify that the file
mscordaccore_<arch>_<arch>_<version>.dll is on your symbol path.
4) you are debugging on supported cross platform architecture as
the dump file. For example, an ARM dump file must be debugged
on an X86 or an ARM machine; an AMD64 dump file must be
debugged on an AMD64 machine.
You can also run the debugger command .cordll to control the debugger's
load of mscordaccore.dll. .cordll -ve -u -l will do a verbose reload.
If that succeeds, the SOS command should work on retry.
If you are debugging a minidump, you need to make sure that your executable
path is pointing to coreclr.dll as well.
Thanks
Now I'm testing running OpenCL source code on intel cpu.
I used the source code on this page (http://lava.cs.virginia.edu/Rodinia/download_links.htm)
I selected 2.4 version and certainly used NW-algorithm source code located in ../opencl/nw/ .
My environment is Windows 7 64bit OS / Intel(R) Xeon(R) CPU W3530 / NVIDIA Quadro 600 .
I installed visual studio 2013 and NVIDIA 6.0 CUDA tookit .
At first, I could run this source on my gpu. And It operates very well.
But when I set use_gpu = 0 (this means CL_DEVICE_TYPE_CPU), program stoped at the first of opencl API function line. (maybe clGetPlatformIDs)
So I installed 64bit CPU only runtime on (https://software.intel.com/en-us/vcsource/tools/opencl-sdk) and Intel SDK for OpenCL Applications 2014 Beta version on (https://software.intel.com/en-us/vcsource/tools/opencl-sdk-beta).
But when I ran this file again, I got
'OpenCLProject2.exe' (Win32): Loaded 'C:\Windows\System32\ntmarta.dll'. Symbols loaded.
'OpenCLProject2.exe' (Win32): Loaded 'C:\Windows\System32\Wldap32.dll'. Symbols loaded.
'OpenCLProject2.exe' (Win32): Loaded 'C:\Program Files (x86)\Common Files\Intel\OpenCL\bin\x64\cpu_device64.dll'. Cannot find or open the PDB file.
'OpenCLProject2.exe' (Win32): Loaded 'C:\Program Files (x86)\Common Files\Intel\OpenCL\bin\x64\tbb\tbb.dll'. Cannot find or open the PDB file.
The thread 0x1438 has exited with code -1 (0xffffffff).
The program '[4480] OpenCLProject2.exe' has exited with code -1 (0xffffffff).
this messages and clCreateContextFromType API returns error.
At this point I can't proceed my work.
I wonder why error lines include (Win32) or (x86) or System32 although I installed windows7 64bit OS and 64bit version of CPU only runtime.
Give me some advice. Thx.
I installed BlackBerry NDK including IDE and downloaded the SDK. Now, I already set up Qt-Creator 2.8.1, 2.8.0, 2.6.2... In every version there is another problem with the build settings. The most appropriate try was with 2.6.2 and manually setting up the BB10 integration.
BB10 NDK Version: 10.1 for Target 10.1.0.4633 armv7le-v7
Creator is always started with bbnk-env.bat called before.
2.6.2:
Compiler set to GCC with custom-arm-linux-generic-elf-32bit as proposed by https://developer.blackberry.com/native/documentation/core/qt_porting_tools.html
(I do have a second compiler set to unix instead of linux)
QT-Version provided by Blackberry NDK, Qt 4.8.5 within %BBNDK%\host_10_1_0_238\win32\x86\usr\bin\qmake.exe.
Devices: BBZ10 is connected and accessible. QtCreator successfully connects and can use the debugToken.
Now the problem is within the Kits: Created a kit for BBZ10, having the bbZ10 Device, bbndk\target_10_1_0_4633\qnx6\armle-v7 as sysroot, compiler (set for linux), gdb to ntoarm-gdb.exe, QT-Version to configured 4.8.5. I can now try any mkspec it always gives me the error (translated from german)
No mkspec found for given QT Version
Für diese QT Version wurde keine mkspec gefunden
I think the mkspecs are set to compile to unix-target, while the 4.5qt supplied with the sdk requires to be linux target (where in reality target is QNX)
Somehow i can compile with this version, but first i am not sure if this creates a correct executable, even more i cannot deploy the executable, since QT-Creator does not create the bar-descriptor.xml file...
2.8.1:
Using the same setup as in 2.6 (after having 2.6 QT Version configured) i am able to get to the same error. Using the "new" configuration system under "BlackBerry" page in settings i cannot correctly set up NDK Path. Will always tell me (translated from german)
Following problems were encountered during BB10 configuration:
No QT-Version found
No GCC compiler found
No GDB Debugger for BB10 Comiler found
No GDB Debugger for BB10 Simulator found
Has anyone successfully configured bb10 ndk to use with qt-creator (2.6/2.8.1) and encountered similar trouble?
How can i solve this issue?
Solved:
After 24 hours trying, installing, reinstalling, editing, crying... I reinstalled complete NDK and QtCreator 2.8 and edited bbndk-env_10_1_0_4633.bat.
I removed every Variable from batch file and set it to corresponding values, e.g. replace every %BASE_DIR% with your acutal base-dir (i.e. D:\bbndk).
For conveniance usage i craeted another batchfile, calling the bbndk-env batch and starting qt-creator.
Set Compiler, Qt-Version, Kits in Creator-Settings as described in https://developer.blackberry.com/native/documentation/core/qt_porting_tools.html
Keep mkspecs line under Kits-tab empty
Thank You
I would like to write an application for Windows CE. I have already followed all the relevant steps, and started to write the application with Qt Creator.
However, when I started to build the code, there was the following error message:
QtCored4.lib(QtCored4.dll) : fatal error LNK1112: module machine type 'X86' conflicts with target machine type 'THUMB'
Maybe some more details:
I downloaded the library for Windows CE and I configured Qt-Opensource-Version 4.8.3 with following parameters:
configure -platform win32-msvc2008 -xplatform wince50standard-armv4i-msvc2008
All went well. Qt Creator did recognize the new version and added Windows CE as supported platform.
Now, I guess, that there will be the same problem with QtGuid4.lib. Does anybody know, where I get a compatible file?
The import library for a DLL - the .LIB file - contains machine code stubs that are linked into your program, that call through the import table for the EXE. Therefore, they have to match the processor family that you're compiling for.
You need to obtain the .lib file for the Windows CE ARMv4I build of QtCored4.dll. Try these instructions for building Qt for Windows CE.
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