-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problems setting up OpenCL environment #2
Comments
I tried compiling test_Opencl.cpp on Cygwin but to no avail as well. The problem is somehow linked to CL\cl.hpp and it gives the following error: mkdir -p bin Any ideas on how to fix this? |
After spending 2 days fiddling around with this issue, I finally managed to compile the test_opencl code under Cygwin. The problem was that I was using a 32 bit version rather than the 64 bit version of Cygwin. Apparently, using the 32 bit Cygwin does not work even though I linked it to the 32 bit OpenCL library. This is a very strange problem indeed! However, when I ran test_opencl.exe on my home laptop, it gave: $ ./test_opencl Could it be because I do not have the appropriate OpenCL drivers installed on my home Windows 7 laptop? |
Hrmm, my sympathies - the OpenCL stuff should be somewhat easier to compile than the TBB stuff. Going through the things you tried:
so the I'm beginning to suspect that there is something wrong with cl.hpp. I updated it to a newer Ok, anyway, let's focus on getting things working now it compiles. Yes, the crash could be caused by the lack of an OpenCL support library, as your On my (64-bit, Win 7) machine I can see OpenCL.dll in C:\Windows\System32. Is Things to try would be:
|
Try installing the Intel OpenCL SDK. It looks like it's running on your CPU and not your nvidia card. |
I agree with @yuchen-w Additionally, the pdb only contains debugging information, and shouldn't |
It just "break" stating the pdb files are missing. What I've done so far is to change the system variable in the test_opencl.cpp so that it has to use my Nvidia chip and that seemed to be a work around solution (although totally not legit I suppose) |
I was not able to run OpenCL code on my CPU until I installed the Intel CPU run-time. Did you install that? https://software.intel.com/en-us/articles/opencl-drivers @m8pple has posted about this previously. |
I am having massive problems setting up my OpenCL environment for Windows 7.
I set up the "Additional Include Directories" under C/C++->General to point to the "include" directory in the opencl_sdk which you gave. However, Visual Studio always cannot find certain header files:
1>H:\VS2013\opencl_sdk\include\CL/cl.h(33): fatal error C1083: Cannot open include file: 'CL/cl_platform.h': No such file or directory
I am pretty sure I setup the include dependencies correct on VS:
I used the following Makefile to try and compile the test_opencl program:
all: addition
addition:
g++ -std=gnu++0x -c -I "H:\VS2013\opencl_sdk\include" test_opencl.cpp -o test_opencl.o
g++ test_opencl.o -o test_opencl.exe -L "H:\VS2013\opencl_sdk\lib\windows\x86" -lOpenCL
However, it throws me the following error:
I am at a complete loss of what to do next. Could you perhaps provide steps to show how to correctly setup the OpenCL environment on Windows?
Thanks for your help in advance.
The text was updated successfully, but these errors were encountered: