On Tue, Mar 15, 2016 at 10:20 AM, Param Hanji <param.catchch...@gmail.com>
wrote:

> 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.
>
So you can compile OpenCL/C programs. But can you run them? If you can run
them then clinfo should run as well. Try running clinfo as root with sudo.
In the past I had issues with the NVIDIA GPU driver not initializing OpenCL
services unless you ran an OpenCL program as root first.

You can also try installing the AMD APP SDK as I suggested in the other
post.

-- 
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

Reply via email to