Open GoogleCodeExporter opened 9 years ago
Can you please also send us your CMakeCache.txt? My guess would be that for
some reason the AMD OpenCL library location was not properly detected by
FindOpenCL.cmake. Please look in the cmake-gui and see if it determined the
right path for you OpenCL library.
Original comment by dginsb...@upsamplesoftware.com
on 4 Aug 2011 at 9:11
File enclosed. Thank you for your help.
- Chris
Original comment by cnatha...@gmail.com
on 4 Aug 2011 at 9:54
Attachments:
Sorry, I meant for you to send the root level CMakeCache.txt. In any case,
please look in cmake-gui at the values for OPENCL_INCLUDE_DIRS and
OPENCL_LIBRARIES (switch to "Advanced" mode if you did not see the options). It
looks to me like those are not set. They should have values something like the
following:
//Path to a file.
OPENCL_INCLUDE_DIRS:PATH=C:/Program Files (x86)/ATI Stream/include
//Path to a library.
OPENCL_LIBRARIES:FILEPATH=C:/Program Files (x86)/ATI Stream/lib/x86/OpenCL.lib
Since it is compiling but not linking, chances are that your include directory
is set but the library path is not. If you can confirm this is the problem,
please post the value of your ATISTREAMSDKROOT environment variable and what
the correct location of your OpenCL.lib is. I have not tried the AMD SDK in a
while, so maybe they changed something which is causing FindOpenCL.cmake not to
find the library.
Original comment by dginsb...@upsamplesoftware.com
on 4 Aug 2011 at 10:21
One comment is that it is now AMD APP SDK and not ATI Stream, so you should
check you install path is correct.
Original comment by benedict...@gmail.com
on 4 Aug 2011 at 10:35
I am able to compile and link by making the changes manually.
I have attached a file that shows the results when I tried to set it through
the cmake-gui.
Thanks for your help.
Chris
Original comment by cnatha...@gmail.com
on 5 Aug 2011 at 12:51
Attachments:
Thanks for the detailed error report. Unfortunately, I don't at the moment
have a Windows-based system with AMD GPU to test this on. Ben, are you able to
reproduce this problem with the latest AMD APP SDK? I'm wondering if the issue
is with FindOpenCL.cmake depending on an environment variable that is no longer
set by the SDK.
Original comment by dan.r.gi...@gmail.com
on 6 Aug 2011 at 12:39
Original comment by dginsb...@upsamplesoftware.com
on 6 Aug 2011 at 12:55
Original comment by dginsb...@upsamplesoftware.com
on 6 Aug 2011 at 12:55
Original issue reported on code.google.com by
cnatha...@gmail.com
on 4 Aug 2011 at 9:00Attachments: