Logo by wmauzey - Contribute your own Logo!

END OF AN ERA, FRACTALFORUMS.COM IS CONTINUED ON FRACTALFORUMS.ORG

it was a great time but no longer maintainable by c.Kleinhuis contact him for any data retrieval,
thanks and see you perhaps in 10 years again

this forum will stay online for reference
News: Follow us on Twitter
 
*
Welcome, Guest. Please login or register. April 25, 2024, 02:18:14 PM


Login with username, password and session length


The All New FractalForums is now in Public Beta Testing! Visit FractalForums.org and check it out!


Pages: [1]   Go Down
  Print  
Share this topic on DiggShare this topic on FacebookShare this topic on GoogleShare this topic on RedditShare this topic on StumbleUponShare this topic on Twitter
Author Topic: "cannot combine with previous 'type-name' declaration specifier"  (Read 2231 times)
0 Members and 1 Guest are viewing this topic.
vitke
Forums Newbie
*
Posts: 2


« on: January 30, 2016, 12:54:43 PM »

I installed the mandelbulber-opencl 1.21-1 package in Arch linux. I have a laptop with a hybrid graphics, so I'm runing mandelbulber-opencl with primusrun or optirun commands, which work fine with other programs.
Mandelbulber also works fine unless I try to enable OpenCL, in which case my card gets correctly recognized but I get the following OpenCL build error:

Code:
OpenCL Platform number is: 1
OpenCL Platform is by: NVIDIA Corporation
nVidia OpenCL library is detected
OpenCL contexts created
OpenCL Number of compute units: 5
OpenCL Max work item dimmensions: 3
OpenCL Max work group size: 1024
OpenCL Max clock frequency  1124 MHz
OpenCL Memory size  4095 MB
OpenCL Max size of memory object allocation 1023 MB
OpenCL Max constant buffer size  64 kB
OpenCL Constant buffer used  2 kB
Custom formulas path: /home/vitke/.mandelbulber/custom_ocl_formulas
OpenCL progHeader: #define INCLUDE_PATH_CL_DATA "/usr/share/mandelbulber/cl/mandelbulber_cl_data.h"
OpenCL Number of loaded sources 9
OpenCL build params:-w -cl-single-precision-constant -cl-denorms-are-zero
OpenCL Build log: <kernel>:323:10: error: cannot combine with previous 'type-name' declaration specifier
                float3 half = lightVector - viewVector;
                       ^
<kernel>:323:15: error: expected identifier or '('
                float3 half = lightVector - viewVector;
                            ^
<kernel>:324:8: error: expected identifier or '('
                half = fast_normalize(half);
                     ^
<kernel>:325:32: error: expected expression
                float specular = dot(normal, half);
                                             ^

ERROR: Program::build() (-11)

(mandelbulber-opencl:20936): Gtk-CRITICAL **: gtk_text_buffer_emit_insert: assertion 'g_utf8_validate (text, len, NULL)' failed

I can see hat this refers to the cl_engine_fast.cl file, but I don't see what's wrong.


















9
Logged
visual.bermarte
Fractal Fertilizer
*****
Posts: 355



« Reply #1 on: January 30, 2016, 04:41:20 PM »

You should edit the name of that variable, half. Change it into something else.
Logged
vitke
Forums Newbie
*
Posts: 2


« Reply #2 on: January 30, 2016, 05:16:01 PM »

Thanks, that helps. However, if I choose one of the Mandelbox fractals and enable OpenCL, the program shows Mandelbulb, not Mandelbox. Besides, some parts of the Mandelbulb are smoothed out.
Logged
Pages: [1]   Go Down
  Print  
 
Jump to:  


Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2015, Simple Machines

Valid XHTML 1.0! Valid CSS! Dilber MC Theme by HarzeM
Page created in 0.287 seconds with 26 queries. (Pretty URLs adds 0.008s, 2q)