Title: Tglad's Formula crash error v1.21 Post by: geomagnet on February 08, 2014, 05:38:04 PM OpenCL Build log: :1733:1: error: expected expression
float tgladDE = 1.0f; ^ :1759:3: error: use of undeclared identifier 'tgladDE' tgladDE = tgladDE * fabs(m) + 1.0f; ^ :1770:20: error: use of undeclared identifier 'tgladDE' dist = r / fabs(tgladDE); Hello, I got this error trying to render Tglad's formula in OpenCL mode. I'm sure it's looking for the declaration in the init file but I can't find which one it is. How can I fix this? Thanks. PS...great job on the latest upgrades. the png alpha channel in OpenCL is very exciting. Allows for some interesting compositions. Title: Re: Tglad's Formula crash error v1.21 Post by: Pauldelbrot on February 09, 2014, 07:43:17 AM The declaration is there, but the first error shows it's not parsing it for some reason. If the actual file has a tab character at the start of that line, try changing it to spaces and see if that helps. It may be that whatever reads that file is allergic to tabs. If that doesn't do it then it's probably a problem that requires more context (more of the lines around the declaration) to figure out, and/or specific knowledge of OpenCL that I don't possess.
Title: Re: Tglad's Formula crash error v1.21 Post by: mclarekin on February 09, 2014, 08:29:13 AM Hmmm, I don't have that problem ??. Its declared in cl_mandelbox_fullInit at the beginning
Code: float tgladDE = 1.0f; Title: Re: Tglad's Formula crash error v1.21 Post by: quaz0r on February 09, 2014, 08:44:39 AM i just tried tglad in opencl mode with 1.21-1 on linux/nvidia and it completed a render without error. however i just looked and cl_mandelbox_fullInit.cl does have actual tabs at the beginning of each line. it would be typical Fisher-Price-OS fashion to fail on something like a tab.
Title: Re: Tglad's Formula crash error v1.21 Post by: geomagnet on February 15, 2014, 03:34:57 PM Okay, so you're saying that if I open the "Fractal" tab and select "Tglad's formula (Mandelbox)" from the drop down and then
open the "Open CL" tab and Enable "OpenCL Kernel" and render, it uses the "cl_mandelbox_full*" files. I'm using notepad++. I've tried ANSII and UTF-8. I've tried removing the tab and replacing with space. It doesn't seem to be happy with anything I do. Am I looking in the right place? C://Program Files/Mandelbulber/cl/ Thanks James Title: Re: Tglad's Formula crash error v1.21 Post by: mclarekin on February 15, 2014, 11:53:53 PM Either the "cl_mandelbox_ full" or the "cl_mandelbox", I am not sure if the mandelbox_full is only initiated when the "Enable Rotation" is ticked.
C://Program Files/Mandelbulber/cl/ is the correct location. However from my little knowledge I suspect there is nothing really wrong with the code as it seems to work for most people, but with minor glitches that are more individual computer specific (ie driver software, GPU etc) I guess you have tried reinstalling the programme and/or earlier versions to see if there is you get the same error? Title: Re: Tglad's Formula crash error v1.21 Post by: geomagnet on February 18, 2014, 07:02:53 PM I haven't gone to an older version, but as I recall a majority of the formulas didn't work with OpenCL mode on my system so I either dealt with the long rendering times of the fractal I wanted, or found fast rendering fractals the work in OpenCL. Nothing new, I was hoping to be able to use OpenCL on all the fractals. I guess the biggest problem with the error is that previous versions would crash but leave the program running in normal CPU mode. Now it reports the error and then exits mandelbulber completely (not giving you the chance to save any settings). FYI - I'm running Win 7 Ultimate 64-bit on Intel core-i7 3770 with Intel motherboard DZ77-BH55 and Nvidia GTX650Ti Not sure if that helps. Thanks anyhow, we'll worry about it later. I'll just stay away from the things that don't work. |