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