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.
Related
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 ?
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
windows 8.1 64 Bit , Aptana 3.4.2 , Java 64 Bit
Error:
Java :
Must you have 32-bit version of java, or may be you have both version [32-bit 64-bit] of java on same computer.
Make sure you have 32-bit version then must you specify the version that using in Aptana studio to do this :
1-Go to apatana folder and find the AptanaStudio3.ini file
"C:\Users\[YourUser]\AppData\Roaming\Appcelerator\Aptana Studio"
2- Add the java 32-bit version path to AptanaStudio3.ini using notepad
Package arch is 32-bit only for Windows OS. The 32-bit version of the JDK is required regardless of whether it is running on a 32-bit or 64-bit Windows system. You can download here from the official website.
I got the exact same error but I was on Windows 10 64-bit, Aptana 3.6.1, with only 64-bit JDKs.
After I downloaded 32-bit 1.7 JDK, I was able to open and run Aptana just fine.
I didn't need to modify the .ini file as AbuSitta had suggested.
I'll agree it might be misleading to some if you don't take a sharper look and see the "x86, x64" description at the download page.
In Windows OS, Aptana Only runs using Java 32 bit (JRE or JDK)
Am I late to the party ? Just started on ruby yesterday..and this was the recommended IDE in 3 of the 4 tutorials i saw..Spent the whole day trying to configure this.
Aptana Studio needs 32 bit jdk to be installed even on a 64 bit processor.. The "compatibility" suggested is a bit misleading..I just had to install the 32 bit jdk.. Did not modify the .ini file as #Osama Abusitta said. Just restarted the pc post installation for the effect to take place.
I got the Same Error. just install Java jdk.1.8 x86 (32bit) Version.
modify the .ini file
C:\Users\YOUR_USER\AppData\Roaming\Appcelerator\Aptana Studio\AptanaStudio3.ini
-startup
plugins/org.eclipse.equinox.launcher_1.4.0.v20161219-1356.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.551.v20171108-1834
--launcher.defaultAction
openFile
-vm
C:\Program Files (x86)\Java\jdk1.8.0_202\bin\javaw.exe
-name
Aptana Studio 3
--launcher.appendVmargs
-vmargs
-Dosgi.requiredJavaVersion=1.8
-Xms256m
-Xmx1024m
--add-modules=ALL-SYSTEM
-Declipse.p2.unsignedPolicy=allow
-Declipse.log.size.max=10000
-Declipse.log.backup.max=5
-Dfile.encoding=UTF-8
-Djava.awt.headless=true
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
We have a project that compiles to a 32-bit COM DLL and to a 64-bit COM DLL (the same one from my earlier question). When I register both on my Windows 7 machine, both register successfully. When I register both on a Windows Server 2003 machine, both register successfully.
But when I try to register the DLLs on a Windows Server 2008 R2 standard SP1 machine, the 64-bit DLL registers successfully, but the 32-bit DLL fails with the message (sic):
The module ""%1"" may not compatible with the version of Windows that you're running.
Check if the module is compatible with an x86 (32-bit) or x64 (64-bit) version of regsvr32.exe.
I don't think a 32-bit DLL can be compatible with WS2003 and Win7 but not WS2008. That makes no sense.
What might be happening?
The version of Regsvr32.exe must match the 32-/64-bitness of the dll you're trying to register. The 64-bit regsvr32 cannot load a 32-bit dll, and vice versa.
You may need explicitly call the 32-bit version of regsrv32 located in %systemroot%\SysWoW64\regsvr32.exe.
From http://support.microsoft.com/kb/249873
Regsvr32.exe is included with Microsoft Internet Explorer 3.0 or later versions, Windows 95 OEM Service Release 2 (OSR2) or later versions, and Windows NT 4.0 Service Pack 5 (SP5) or later versions. Regsvr32.exe is installed in the System (Windows Me/Windows 98/Windows 95) or System32 (Windows NT/Windows XP/Windows Vista/Windows 7) folder.
Note On a 64-bit version of a Windows operating system, there are two versions of the Regsv32.exe file:
The 64-bit version is %systemroot%\System32\regsvr32.exe.
The 32-bit version is %systemroot%\SysWoW64\regsvr32.exe.
Regsvr32.exe usage
RegSvr32.exe has the following command-line options:
Regsvr32 [/u] [/n] [/i[:cmdline]] dllname
/u - Unregister server
/i - Call DllInstall passing it an optional [cmdline]; when used with /u calls dll uninstall
/n - do not call DllRegisterServer; this option must be used with /i
/s – Silent; display no message boxes (added with Windows XP and Windows Vista)
When you use Regsvr32.exe, it attempts to load the component and call its DLLSelfRegister function. If this attempt is successful, Regsvr32.exe displays a dialog box that indicates success. If the attempt is unsuccessful, Regsvr32.exe returns an error message. This may include a Win32 error code. For more information, click the following article number to view the article in the Microsoft Knowledge Base:
193625 WinInet error codes (12001 through 12156)
This isn't likely to be the problem in your case, but might be useful for others who find this question by searching on the same error message:
I had a similar problem: a DLL that wouldn't register with either the 32-bit or 64-bit version of RegSvr32. I loaded the DLL the Dependency Walker (depends.exe, http://www.dependencywalker.com/) and got a much more useful message:
Error: At least one file was not a 32-bit or 64-bit Windows module.
Scanning the CPU column in the Module List identified the offending module. (In my case, it said "No DOS or PE signature found. This file is not a valid 32-bit or 64-bit Windows module.")
Moral: The Dependency Walker might give you a more useful error message than RegSvr32.exe.
I got it registered by moving the dll to the c:\windows\syswow64\ directory (it wouldn't work in the system32 directory) and then explicitly calling syswow64\regsvr32, eg
c:\windows\syswow64\regsvr32 yourdll.dll
btw it wouldn't work when calling c:\windows\syswow64\regsvr32 c:\windows\syswow64\yourdll.dll
Use Process Monitor from SysInternals.
1. Filter by "Process Name" = regsvr32.exe.
2. Try to register your DLL file from the correct version of regsvr32.exe (the 32-bit version is in the SysWow64 folder)
3. Process Monitor will trace EVERYTHING that is happening on your computer.
4. First start your analysis by eliminating the registry events (for now):
5. You may be able to see which DLL file is found and not found.
Here a (very) partial screenshot of regsvr32.exe of Threed32.ocx where we can see some of the required DLL files:
6. Your work is just starting. From now.
I have the same problem, but I resolve it with commands
CD \windows\syswow64
regsvr32 c:\filename. dll
Running the command prompt as administrator fixed my issue.