Hi Vasco Costa,

Yes -z 1 did it. :)

Now fopen() throws an error! Function clt_read_code() in primitiive_util.c
fopen() returns a NULL. I included <errno.h> and printed the error as
described here

http://stackoverflow.com/questions/8633909/what-is-the-reason-for-fopens-failure-to-open-a-file

The error is 2 which means "No such file or directory" according to

http://www.thegeekstuff.com/2010/10/linux-error-codes/

This is rather puzzling because I can see solver.cl present in the same
directory as primitive_util.c. Moreover, fopen() is a function that I've
used time and time again and I haven't this kind of error before. I also
verified that the file has read access.

Thank you for your patience! I'm just running into issue after issue. I
really appreciate your guidance.

Best,
Param

On Thu, Mar 17, 2016 at 1:15 AM Vasco Alexandre da Silva Costa <
vasco.co...@gmail.com> wrote:

> On Wed, Mar 16, 2016 at 7:36 PM, Vasco Alexandre da Silva Costa <
> vasco.co...@gmail.com> wrote:
>
>> On Wed, Mar 16, 2016 at 7:28 PM, Param Hanji <param.catchch...@gmail.com>
>> wrote:
>>
>>> Hi,
>>>
>>> Installing the AMD SDK gave me OpenCL 1.2 support. I managed to
>>> configure cmake using cmake-gui and built successfully. But raytrace still
>>> doesn't happen on my GPU. By adding fprintf statements, I found out that
>>> execution does indeed enter the #ifdef USE_OPENCL block at rt/main.c.
>>> However the if following block (if (opencl_mode)) is not entered.
>>>
>>> opencl_mode is set at opt.c at case: 'z'. I still don't know why its
>>> value doesn't change even if use -z option.
>>>
>>
>> I think it is '-z 1'. The '-z' option currently requires a numeric
>> argument.
>> '1' to enable OpenCL mode and '0' to disable it.
>>
>
> The code is like this (opt.c):
>
>           case 'z':
>               opencl_mode = atoi( bu_optarg );
>               break;
>
> I did it this way because I added a toggle button in the MGED File ->
> Raytrace panel where you can enable or disable OpenCL mode. The toggle is
> either '0' or '1' depending on its status.
>
> --
> 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