>
> I guess Cmake isn't detecting OpenCL on your system. You might have to
run 'cmake-gui' in order to point to the place where the OpenCL include
files (e.g. CL/cl.h) and libraries (libOpenCL.so) are located in your
system.
> Did you do basic tests to see if OpenCL is correctly installed? You can
check that out with the 'clinfo' command (there's a Debian package for it
and if you don't have a package its easy to compile).
>

I used cmake-gui to explicitly point to the OpenCL files and libraries as
you said. I have certainly performed basic tests. Over the past few weeks
I've also compiled several OpenCL programs as part of my coursework. I use

'gcc file_name.c -lOpenCL'

to compile. Compilation fails if the -l comes before filename.

> Unless BRLCAD_ENABLE_OPENCL is ON the OpenCL host code will be #ifdefd
out and won't be compiled at all.
>>
>> I'm guessing that's why my OpenCL files don't compile. How do I change
this?
>
> OpenCL 1.2 loads the .cl device code source files at runtime and compiles
them at runtime. This is often done by the driver kind of like compiling
GLSL shaders.
>

However clinfo gives an error -30 with a message saying no version
information available even though I'm able to compile programs. I tried
looking for reasons but most webpages just suggested making links directly
which is rather crude. And rt still fails  obviously.
>>
>>
------------------------------------------------------------------------------
>> Transform Data into Opportunity.
>> Accelerate data analysis in your applications with
>> Intel Data Analytics Acceleration Library.
>> Click to learn more.
>> http://pubads.g.doubleclick.net/gampad/clk?id=278785231&iu=/4140
>> _______________________________________________
>> BRL-CAD Developer mailing list
>> brlcad-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/brlcad-devel
>>
>
>
>
> --
> Vasco Alexandre da Silva Costa
> PhD in Computer Engineering (Computer Graphics)
> Instituto Superior Técnico/University of Lisbon, Portugal
>
>
------------------------------------------------------------------------------
> Transform Data into Opportunity.
> Accelerate data analysis in your applications with
> Intel Data Analytics Acceleration Library.
> Click to learn more.
> http://pubads.g.doubleclick.net/gampad/clk?id=278785231&iu=/4140
> _______________________________________________
> BRL-CAD Developer mailing list
> brlcad-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/brlcad-devel
>
------------------------------------------------------------------------------
Transform Data into Opportunity.
Accelerate data analysis in your applications with
Intel Data Analytics Acceleration Library.
Click to learn more.
http://pubads.g.doubleclick.net/gampad/clk?id=278785231&iu=/4140
_______________________________________________
BRL-CAD Developer mailing list
brlcad-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/brlcad-devel

Reply via email to